version 1.1.2.9, 2013/06/25 08:55:02
|
version 1.1.2.10, 2013/06/25 09:29:34
|
Line 163 io_etherOpen(const char *csIface, int flags, int whdr,
|
Line 163 io_etherOpen(const char *csIface, int flags, int whdr,
|
io_etherClose(eth, zcbuf); |
io_etherClose(eth, zcbuf); |
return -1; |
return -1; |
} |
} |
|
memset(&ifr, 0, sizeof ifr); |
strlcpy(ifr.ifr_name, szStr, sizeof ifr.ifr_name); |
strlcpy(ifr.ifr_name, szStr, sizeof ifr.ifr_name); |
if (ioctl(eth, BIOCSETIF, &ifr) == -1) { |
if (ioctl(eth, BIOCSETIF, &ifr) == -1) { |
LOGERR; |
LOGERR; |