From: Jouni Malinen Date: Sat, 24 Feb 2024 16:29:57 +0000 (+0200) Subject: l2_packet_freebsd: Fix macOS build X-Git-Tag: hostap_2_11~362 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3386e1327e57d0f3878bd39a32916b133d16bcca;p=thirdparty%2Fhostap.git l2_packet_freebsd: Fix macOS build ETHER_VLAN_ENCAP_LEN does not seem to be defined in macOS net/ethernet.h, so define that, if needed, to avoid build issues. Fixes: 5b21f4861c2e ("l2_packet_freebsd: Enable receiving priority tagged (VID=0) frames") Signed-off-by: Jouni Malinen --- diff --git a/src/l2_packet/l2_packet_freebsd.c b/src/l2_packet/l2_packet_freebsd.c index 3f0b29924a..481c8ca4d5 100644 --- a/src/l2_packet/l2_packet_freebsd.c +++ b/src/l2_packet/l2_packet_freebsd.c @@ -30,6 +30,9 @@ #include "eloop.h" #include "l2_packet.h" +#ifndef ETHER_VLAN_ENCAP_LEN +#define ETHER_VLAN_ENCAP_LEN 4 +#endif static const u8 pae_group_addr[ETH_ALEN] = { 0x01, 0x80, 0xc2, 0x00, 0x00, 0x03 };