From 545d3919172d1069200acf1277ae6c3b9899fc9a Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 3 Jun 1995 22:00:38 +0000 Subject: [PATCH] added ENXIO like EADDRNOTAVAIL --- interfaces.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interfaces.c b/interfaces.c index 530331f02..4424c7e75 100644 --- a/interfaces.c +++ b/interfaces.c @@ -173,7 +173,7 @@ void load_interfaces() STRSET(SIOCGIFADDR, (caddr_t)ifr, sizeof(ifreq)); if (ioctl(sock, I_STR, &strioctl) < 0) { /* non-fatal error if interface is down or not supported */ - if (errno == EADDRNOTAVAIL || errno == EAFNOSUPPORT) + if (errno == EADDRNOTAVAIL || errno == ENXIO || errno == EAFNOSUPPORT) continue; (void) fprintf(stderr, "%s: Error, ioctl: SIOCGIFADDR ", Argv[0]); @@ -189,7 +189,7 @@ void load_interfaces() /* get the ip address */ if (ioctl(sock, SIOCGIFADDR, (caddr_t)(&ifreq))) { /* non-fatal error if interface is down or not supported */ - if (errno == EADDRNOTAVAIL || errno == EAFNOSUPPORT) + if (errno == EADDRNOTAVAIL || errno == ENXIO || errno == EAFNOSUPPORT) continue; (void) fprintf(stderr, "%s: Error, ioctl: SIOCGIFADDR ", Argv[0]); -- 2.40.0