mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
This is bug, isn't it?
This commit is contained in:
parent
e00115904f
commit
eac21b46f7
@ -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 New Issue
Block a user