Diff for /libaitio/src/bpf.c between versions 1.5.4.3 and 1.5.4.4

version 1.5.4.3, 2014/02/08 18:58:12 version 1.5.4.4, 2014/02/08 20:15:58
Line 213  io_etherOpen(const char *csIface, int flags, u_int whd Line 213  io_etherOpen(const char *csIface, int flags, u_int whd
                 return -1;                  return -1;
         }          }
   
        n = 1;        n = wdlt;
        if (ioctl(eth, BIOCIMMEDIATE, &n) == -1) {        if (wdlt && ioctl(eth, BIOCSDLT, &n) == -1) {
                 LOGERR;                  LOGERR;
                 close(eth);                  close(eth);
                 return -1;                  return -1;
         }          }
           n = 1;
         if (whdr && ioctl(eth, BIOCSHDRCMPLT, &n) == -1) {          if (whdr && ioctl(eth, BIOCSHDRCMPLT, &n) == -1) {
                 LOGERR;                  LOGERR;
                 close(eth);                  close(eth);
                 return -1;                  return -1;
         }          }
        if (wdlt && ioctl(eth, BIOCSDLT, &wdlt) == -1) {        if (ioctl(eth, BIOCIMMEDIATE, &n) == -1) {
                 LOGERR;                  LOGERR;
                 close(eth);                  close(eth);
                 return -1;                  return -1;

Removed from v.1.5.4.3  
changed lines
  Added in v.1.5.4.4


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>