Home | History | Annotate | Download | only in libnpftest

Lines Matching defs:npf

2  * NPF initialisation and handler routines.
33 * Standalone NPF: we define the same struct ifnet members
65 npf_t *npf;
69 if ((npf = npf_getkernctx()) != NULL) {
70 npf_worker_discharge(npf);
74 npf = npfk_create(0, &npftest_mbufops, &npftest_ifops, NULL);
75 npfk_thread_register(npf);
76 npf_setkernctx(npf);
89 npf_t *npf = npf_getkernctx();
91 npfk_thread_unregister(npf);
92 npfk_destroy(npf);
116 npf_t *npf = npf_getkernctx();
127 npfk_ifmap_attach(npf, ifp);
129 npf_ifmap_register(npf, ifname);
176 npftest_ifop_getname(npf_t *npf __unused, ifnet_t *ifp)
182 npftest_ifop_lookup(npf_t *npf __unused, const char *ifname)
188 npftest_ifop_flush(npf_t *npf __unused, void *arg)
197 npftest_ifop_getmeta(npf_t *npf __unused, const ifnet_t *ifp)
203 npftest_ifop_setmeta(npf_t *npf __unused, ifnet_t *ifp, void *arg)
209 * State sampler - this routine is called from inside of NPF state engine.
224 npf_t *npf = npf_getkernctx();
229 error = npfk_packet_handler(npf, &m, ifp, forw ? PFIL_OUT : PFIL_IN);