]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
privsep: Fix getting interface VLANID on BSD (#58)
authorPhilip Paeps <philip@trouble.is>
Tue, 12 Oct 2021 08:07:28 +0000 (16:07 +0800)
committerGitHub <noreply@github.com>
Tue, 12 Oct 2021 08:07:28 +0000 (09:07 +0100)
Include relevant headers for the definition of SIOCGETVLAN.  This fixes
DHCPv6 Prefix Delegation where a prefix is delegated to several VLAN
interfaces on the same physical interface.

src/privsep-bsd.c

index f13d329fff1908dda9ea1e131424e3dee8062ad8..d8ca80639494ea0479d8212ce388fb9b55bcb6a5 100644 (file)
 #include <netinet/in.h>
 #include <netinet6/in6_var.h>
 #include <netinet6/nd6.h>
+#ifdef __NetBSD__
+#include <netinet/if_ether.h>
+#include <net/if_vlanvar.h> /* Needs netinet/if_ether.h */
+#elif defined(__DragonFly__)
+#include <net/vlan/if_vlan_var.h>
+#else
+#include <net/if_vlan_var.h>
+#endif
 #ifdef __DragonFly__
 #  include <netproto/802_11/ieee80211_ioctl.h>
 #else