]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
l2_packet_freebsd: Fix macOS build
authorJouni Malinen <j@w1.fi>
Sat, 24 Feb 2024 16:29:57 +0000 (18:29 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 24 Feb 2024 16:29:57 +0000 (18:29 +0200)
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 <j@w1.fi>
src/l2_packet/l2_packet_freebsd.c

index 3f0b29924a9814c3cb66ac05c2d92945f8420816..481c8ca4d5d6e4fe44002d254bdb85c08696c39a 100644 (file)
@@ -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 };