Back out previous two commits, this caused some problems in the namespace
resulting in some build failures. Instead, to fix the problem of bpf not being present, check the pointer before dereferencing it. This is a temporary bandaid until we can decide on how we want to handle the bpf code not being present. This will be fixed shortly.
This commit is contained in:
parent
e1f2ab1542
commit
7686abec4a
@ -603,9 +603,6 @@ struct bpf_dltlist {
|
||||
};
|
||||
|
||||
#ifdef _KERNEL
|
||||
#include "opt_bpf.h"
|
||||
#include "opt_netgraph.h"
|
||||
|
||||
/*
|
||||
* Descriptor associated with each attached hardware interface.
|
||||
*/
|
||||
@ -633,11 +630,9 @@ static __inline int
|
||||
bpf_peers_present(struct bpf_if *bpf)
|
||||
{
|
||||
|
||||
#if defined(DEV_BPF) || defined(NETGRAPH_BPF)
|
||||
return (!LIST_EMPTY(&bpf->bif_dlist));
|
||||
#else
|
||||
if (bpf && !LIST_EMPTY(&bpf->bif_dlist))
|
||||
return (1);
|
||||
return (0);
|
||||
#endif /* DEV_BPF || NETGRAPH_BPF */
|
||||
}
|
||||
|
||||
#define BPF_TAP(_ifp,_pkt,_pktlen) do { \
|
||||
|
Loading…
Reference in New Issue
Block a user