diff --git a/src/detection/localip/localip_linux.c b/src/detection/localip/localip_linux.c index 9dfea2537..9dd8aaeac 100644 --- a/src/detection/localip/localip_linux.c +++ b/src/detection/localip/localip_linux.c @@ -202,7 +202,7 @@ const char* ffDetectLocalIps(const FFLocalIpOptions* options, FFlist* results) #elif __FreeBSD__ || __APPLE__ struct ifmediareq ifmr = {}; strncpy(ifmr.ifm_name, iface->name.chars, IFNAMSIZ - 1); - if (ioctl(sockfd, SIOCGIFMEDIA, &ifmr) == 0) + if (ioctl(sockfd, SIOCGIFMEDIA, &ifmr) == 0 && (IFM_TYPE(ifmr.ifm_active) & IFM_ETHER)) { switch (IFM_SUBTYPE(ifmr.ifm_active)) {