Commit 6f2960e039 for frr

commit 6f2960e039ee49d81167e5aa3d418c775f68cc31
Author: Vincent Jardin <vjardin@free.fr>
Date:   Mon Nov 9 19:11:07 2026 +0100

    zebra: do not log an error for interfaces without media on macOS

    The BSD link-detect code already ignores EINVAL from SIOCGIFMEDIA,
    which is what FreeBSD returns for interfaces that have no media.

    macOS returns EOPNOTSUPP instead, so every interface refresh logged an
    error for the loopback and each utun/bridge interface:

      ZEBRA: [EC 100663303] if_ioctl(SIOCGIFMEDIA lo0) failed: Operation not supported on socket

    Signed-off-by: Vincent Jardin <vjardin@free.fr>

diff --git a/zebra/ioctl.c b/zebra/ioctl.c
index de07bc59cf..c97e08e8aa 100644
--- a/zebra/ioctl.c
+++ b/zebra/ioctl.c
@@ -472,7 +472,7 @@ void if_get_flags(struct interface *ifp)
 	strlcpy(ifmr.ifm_name, ifp->name, sizeof(ifmr.ifm_name));

 	if (if_ioctl(SIOCGIFMEDIA, (caddr_t)&ifmr) == -1) {
-		if (errno != EINVAL)
+		if (errno != EINVAL && errno != EOPNOTSUPP)
 			flog_err_sys(EC_LIB_SYSTEM_CALL,
 				     "if_ioctl(SIOCGIFMEDIA %s) failed: %s",
 				     ifp->name, safe_strerror(errno));