This is bug, isn't it?
This commit is contained in:
parent
e00115904f
commit
eac21b46f7
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ scan_ifs(struct ifreq *r, int cnt)
|
||||||
#ifdef SIOCGIFINDEX
|
#ifdef SIOCGIFINDEX
|
||||||
if (ioctl(if_scan_sock, SIOCGIFINDEX, r) >= 0)
|
if (ioctl(if_scan_sock, SIOCGIFINDEX, r) >= 0)
|
||||||
i.index = r->ifr_ifindex;
|
i.index = r->ifr_ifindex;
|
||||||
else if (errno != -EINVAL)
|
else if (errno != EINVAL)
|
||||||
DBG("SIOCGIFINDEX failed: %m\n");
|
DBG("SIOCGIFINDEX failed: %m\n");
|
||||||
else /* defined, but not supported by the kernel */
|
else /* defined, but not supported by the kernel */
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue