diff options
author | Zhenlei Huang <zlei@FreeBSD.org> | 2023-02-08 04:35:02 +0000 |
---|---|---|
committer | Zhenlei Huang <zlei@FreeBSD.org> | 2023-02-08 10:05:21 +0000 |
commit | 9df6eeabb379b0816d58b05a4de24fc0478e1dba (patch) | |
tree | e89e71c99fb3760dbc251150f465630f2f7c2a23 | |
parent | 3662862f558f6afbdb53b1d6570c482c7d180580 (diff) | |
download | src-9df6eeabb379b0816d58b05a4de24fc0478e1dba.tar.gz src-9df6eeabb379b0816d58b05a4de24fc0478e1dba.zip |
bpf: Add missing NOP stubs
This fixes kernel build with nodevice bpf [1].
[1] https://lists.freebsd.org/archives/freebsd-current/2023-February/003178.html
Reported by: Gary Jennejohn <garyj@gmx.de>
Reviewed by: jhibbits
Fixes: 950cc1f44fbd bpf: Add "_if" tap APIs
Differential Revision: https://reviews.freebsd.org/D38432
-rw-r--r-- | sys/net/bpf.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c index ffac63ef95d9..43eed04375d7 100644 --- a/sys/net/bpf.c +++ b/sys/net/bpf.c @@ -3121,16 +3121,31 @@ bpf_tap(struct bpf_if *bp, u_char *pkt, u_int pktlen) } void +bpf_tap_if(if_t ifp, u_char *pkt, u_int pktlen) +{ +} + +void bpf_mtap(struct bpf_if *bp, struct mbuf *m) { } void +bpf_mtap_if(if_t ifp, struct mbuf *m) +{ +} + +void bpf_mtap2(struct bpf_if *bp, void *d, u_int l, struct mbuf *m) { } void +bpf_mtap2_if(if_t ifp, void *data, u_int dlen, struct mbuf *m) +{ +} + +void bpfattach(struct ifnet *ifp, u_int dlt, u_int hdrlen) { |