mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Fixed `too many interfaces' cases.
This commit is contained in:
@@ -147,7 +147,7 @@ krt_if_scan(struct kif_proto *p)
|
|||||||
res = ioctl(if_scan_sock, SIOCGIFCONF, &ic);
|
res = ioctl(if_scan_sock, SIOCGIFCONF, &ic);
|
||||||
if (res < 0 && errno != EFAULT)
|
if (res < 0 && errno != EFAULT)
|
||||||
die("SIOCCGIFCONF: %m");
|
die("SIOCCGIFCONF: %m");
|
||||||
if (res < last_ifbuf_size)
|
if (res >= 0 && ic.ifc_len < last_ifbuf_size)
|
||||||
{
|
{
|
||||||
scan_ifs(r, ic.ifc_len);
|
scan_ifs(r, ic.ifc_len);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user