From: Roy Marples Date: Tue, 20 Aug 2019 18:18:47 +0000 (+0100) Subject: BSD: Fix compile with prior. X-Git-Tag: v8.0.3~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f399e5cc95ed73df7f7726175f7adb3dbc85ee5a;p=thirdparty%2Fdhcpcd.git BSD: Fix compile with prior. --- diff --git a/src/bpf.c b/src/bpf.c index d7b6814c..10404ffe 100644 --- 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. */