Diff for /libaitio/src/bpf.c between versions 1.1.2.12 and 1.1.2.13

version 1.1.2.12, 2013/06/25 16:42:41 version 1.1.2.13, 2013/06/25 19:28:48
Line 122  io_etherOpen(const char *csIface, int flags, int whdr, Line 122  io_etherOpen(const char *csIface, int flags, int whdr,
                 return -1;                  return -1;
         }          }
   
           if (ioctl(eth, BIOCIMMEDIATE, &n) == -1) {
                   LOGERR;
                   close(eth);
                   return -1;
           }
           if (whdr && ioctl(eth, BIOCSHDRCMPLT, &n) == -1) {
                   LOGERR;
                   close(eth);
                   return -1;
           }
   
         if (!zcbuf) {          if (!zcbuf) {
                 if (ioctl(eth, BIOCGBLEN, &n) == -1) {                  if (ioctl(eth, BIOCGBLEN, &n) == -1) {
                         LOGERR;                          LOGERR;
Line 162  io_etherOpen(const char *csIface, int flags, int whdr, Line 173  io_etherOpen(const char *csIface, int flags, int whdr,
                 if (buflen && *buflen)                  if (buflen && *buflen)
                         *buflen = n;                          *buflen = n;
 #endif  #endif
         }  
   
         if (ioctl(eth, BIOCIMMEDIATE, &n) == -1) {  
                 LOGERR;  
                 close(eth);  
                 return -1;  
         }  
         if (whdr && ioctl(eth, BIOCSHDRCMPLT, &n) == -1) {  
                 LOGERR;  
                 close(eth);  
                 return -1;  
         }          }
   
         if (csIface)          if (csIface)

Removed from v.1.1.2.12  
changed lines
  Added in v.1.1.2.13


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