Skip to content

Commit be11013

Browse files
committed
LocalIP (BSD): fix building
1 parent a84c4dc commit be11013

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/common/netif/netif_obsd.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#include <net/if_dl.h>
88
#include <net/route.h>
99
#include <netinet/in.h>
10-
#include <netinet6/in6.h>
1110
#include <sys/socket.h>
1211
#include <sys/sysctl.h>
1312

src/detection/localip/localip_linux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ static bool isIPv6AddressPreferred(const char* ifname, struct sockaddr_in6* addr
157157
if (ioctl(sockfd, SIOCGIFAFLAG_IN6, &ifr6) != 0)
158158
return true;
159159

160-
return !(ifr6.ifr_flags & IN6_IFF_DEPRECATED) && !(ifr6.ifr_flags & IN6_IFF_TEMPORARY);
160+
return !(ifr6.ifr_ifru.ifru_flags6 & IN6_IFF_DEPRECATED) && !(ifr6.ifr_ifru.ifru_flags6 & IN6_IFF_TEMPORARY);
161161
#elif __linux__
162162
FF_UNUSED(ifname);
163163

0 commit comments

Comments
 (0)