Searched refs:bpf_ops (Results 1 – 3 of 3) sorted by relevance
/netbsd-src/sys/net/ |
H A D | bpf.h | 442 struct bpf_ops { struct 463 extern struct bpf_ops *bpf_ops; argument 468 bpf_ops->bpf_attach(_ifp, _dlt, _hdrlen, &_ifp->if_bpf); in bpf_attach() 474 bpf_ops->bpf_attach(_ifp, _dlt, _hdrlen, _dp); in bpf_attach2() 484 bpf_ops->bpf_mtap(_ifp->if_bpf, _m, _direction); in bpf_mtap() 493 bpf_ops->bpf_mtap2(_bpf, _data, _dlen, _m, _direction); in bpf_mtap2() 500 bpf_ops->bpf_mtap(_bpf, _m, _direction); in bpf_mtap3() 508 bpf_ops->bpf_mtap_af(_ifp->if_bpf, _af, _m, _direction); in bpf_mtap_af() 514 bpf_ops->bpf_change_type(_ifp, _dlt, _hdrlen); in bpf_change_type() 530 bpf_ops->bpf_detach(_ifp); in bpf_detach() [all …]
|
H A D | bpf_stub.c | 59 struct bpf_ops bpf_ops_stub = { 73 struct bpf_ops *bpf_ops; variable 100 KASSERT(bpf_ops != &bpf_ops_stub); /* revisit when unloadable */ in bpf_stub_attach() 101 bpf_ops->bpf_attach(ifp, dlt, hlen, drvp); in bpf_stub_attach() 141 KASSERT(bpf_ops != &bpf_ops_stub); /* revisit when unloadable */ in bpf_stub_detach() 142 bpf_ops->bpf_detach(ifp); in bpf_stub_detach() 170 bpf_ops = &bpf_ops_stub; in bpf_setops() 182 bpf_ops_handover_enter(struct bpf_ops *newops) in bpf_ops_handover_enter()
|
H A D | bpf.c | 1959 bpf_ops->bpf_mtap(bp, m, BPF_D_IN); in _bpf_mtap_softint() 2663 struct bpf_ops bpf_ops_kernel = { 2702 atomic_swap_ptr(&bpf_ops, &bpf_ops_kernel); in bpf_modcmd()
|