version 1.5.4.4, 2014/02/08 20:15:58
|
version 1.5.4.5, 2014/02/08 21:33:09
|
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 = wdlt; |
|
if (wdlt && ioctl(eth, BIOCSDLT, &n) == -1) { |
|
LOGERR; |
|
close(eth); |
|
return -1; |
|
} |
|
n = 1; |
n = 1; |
if (whdr && ioctl(eth, BIOCSHDRCMPLT, &n) == -1) { |
if (whdr && ioctl(eth, BIOCSHDRCMPLT, &n) == -1) { |
LOGERR; |
LOGERR; |
Line 279 io_etherOpen(const char *csIface, int flags, u_int whd
|
Line 273 io_etherOpen(const char *csIface, int flags, u_int whd
|
if (ioctl(eth, BIOCSETIF, &ifr) == -1) { |
if (ioctl(eth, BIOCSETIF, &ifr) == -1) { |
LOGERR; |
LOGERR; |
io_etherClose(eth, zcbuf); |
io_etherClose(eth, zcbuf); |
|
return -1; |
|
} |
|
|
|
n = wdlt; |
|
if (wdlt && ioctl(eth, BIOCSDLT, &n) == -1) { |
|
LOGERR; |
|
close(eth); |
return -1; |
return -1; |
} |
} |
|
|