]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
BSD: Fix compile with prior.
authorRoy Marples <roy@marples.name>
Tue, 20 Aug 2019 18:18:47 +0000 (19:18 +0100)
committerRoy Marples <roy@marples.name>
Tue, 20 Aug 2019 18:18:47 +0000 (19:18 +0100)
src/bpf.c

index d7b6814ca1f3e741f8f4717ec240129233cde069..10404ffe9ec3bff8c787114be8ed36a848ab5d63 100644 (file)
--- a/src/bpf.c
+++ b/src/bpf.c
@@ -558,10 +558,14 @@ bpf_arp(struct interface *ifp, int fd)
 #define        BPF_M_UDP       3
 #define        BPF_M_UDPLEN    4
 
+#ifdef ARPHRD_NETROM
 static const struct bpf_insn bpf_bootp_netrom[] = {
+       /* Set the frame header length to zero. */
+       BPF_STMT(BPF_LD + BPF_IMM, 0),
        BPF_STMT(BPF_ST, BPF_M_FHLEN),
 };
 #define BPF_BOOTP_NETROM_LEN   __arraycount(bpf_bootp_netrom)
+#endif
 
 static const struct bpf_insn bpf_bootp_ether[] = {
        /* Make sure this is an IP packet. */