]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/ioctl.c
isisd: implement the 'lsp-too-large' notification
[mirror_frr.git] / zebra / ioctl.c
index 87e98032a21ec2647157ea917c8cf17988eed4e9..ebe1edcaef0a77b11ce5cf394269e254a38d5195 100644 (file)
@@ -415,7 +415,8 @@ void if_get_flags(struct interface *ifp)
                strncpy(ifmr.ifm_name, ifp->name, IFNAMSIZ);
 
                /* Seems not all interfaces implement this ioctl */
-               if (if_ioctl(SIOCGIFMEDIA, (caddr_t)&ifmr) < 0)
+               if (if_ioctl(SIOCGIFMEDIA, (caddr_t)&ifmr) == -1 &&
+                   errno != EINVAL)
                        flog_err_sys(EC_LIB_SYSTEM_CALL,
                                     "if_ioctl(SIOCGIFMEDIA) failed: %s",
                                     safe_strerror(errno));