mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-03 12:35:02 +00:00
Make sys/net/bpf_filter.c build cleanly on user land.
This commit is contained in:
parent
143a24dad7
commit
32688992ef
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=182184
@ -849,7 +849,6 @@ void bpfattach2(struct ifnet *, u_int, u_int, struct bpf_if **);
|
||||
void bpfdetach(struct ifnet *);
|
||||
|
||||
void bpfilterattach(int);
|
||||
u_int bpf_filter(const struct bpf_insn *, u_char *, u_int, u_int);
|
||||
|
||||
static __inline int
|
||||
bpf_peers_present(struct bpf_if *bpf)
|
||||
@ -878,6 +877,8 @@ bpf_peers_present(struct bpf_if *bpf)
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
u_int bpf_filter(const struct bpf_insn *, u_char *, u_int, u_int);
|
||||
|
||||
/*
|
||||
* Number of scratch memory words (for BPF_LD|BPF_MEM and BPF_ST).
|
||||
*/
|
||||
|
@ -39,7 +39,7 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
#include <sys/param.h>
|
||||
|
||||
#ifdef sun
|
||||
#if !defined(_KERNEL) || defined(sun)
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
@ -64,6 +64,8 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
#ifdef _KERNEL
|
||||
#include <sys/mbuf.h>
|
||||
#else
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
#include <net/bpf.h>
|
||||
#ifdef _KERNEL
|
||||
|
Loading…
Reference in New Issue
Block a user