Diff for /libaitio/example/bpf.c between versions 1.1.2.6 and 1.1.2.7

version 1.1.2.6, 2013/06/25 17:06:02 version 1.1.2.7, 2013/06/25 17:16:37
Line 300  main(int argc, char **argv) Line 300  main(int argc, char **argv)
                 strlcpy(szStr, *argv, sizeof szStr);                  strlcpy(szStr, *argv, sizeof szStr);
   
 #ifdef __FreeBSD__  #ifdef __FreeBSD__
        dev = io_etherOpen(szStr, O_RDWR, 42, (u_int*) &siz, &bz);        dev = io_etherOpen(szStr, O_RDWR | O_NONBLOCK, 42, (u_int*) &siz, (flg) ? &bz : NULL);
         if (dev == -1)          if (dev == -1)
                dev = io_etherOpen(szStr, O_RDWR, 42, (u_int*) &siz, NULL);                dev = io_etherOpen(szStr, O_RDWR | O_NONBLOCK, 42, (u_int*) &siz, NULL);
 #else  #else
         dev = io_etherOpen(szStr, O_RDWR, 42, (u_int*) &siz, NULL);          dev = io_etherOpen(szStr, O_RDWR, 42, (u_int*) &siz, NULL);
 #endif  #endif
Line 344  main(int argc, char **argv) Line 344  main(int argc, char **argv)
                         if (poll(&pfd, 1, -1) == -1)                          if (poll(&pfd, 1, -1) == -1)
                                 break;                                  break;
   
                        ret = io_etherRecv(dev, buffer, siz, bz);                        ret = io_etherRecv(dev, buffer, siz, NULL);
                         if (ret == -1)                          if (ret == -1)
                                 printf("%d) io_etherRecv(%d) #%d - %s\n", i, ret,                                   printf("%d) io_etherRecv(%d) #%d - %s\n", i, ret, 
                                                 io_GetErrno(), io_GetError());                                                  io_GetErrno(), io_GetError());

Removed from v.1.1.2.6  
changed lines
  Added in v.1.1.2.7


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