Lines Matching refs:npc
82 npf_reassembly(npf_t *npf, npf_cache_t *npc, bool *mff) in npf_reassembly() argument
84 nbuf_t *nbuf = npc->npc_nbuf; in npf_reassembly()
91 if (npf_iscached(npc, NPC_IP4) && npf->ip4_reassembly) { in npf_reassembly()
93 } else if (npf_iscached(npc, NPC_IP6) && npf->ip6_reassembly) { in npf_reassembly()
94 error = ip6_reass_packet(&m, npc->npc_hlen); in npf_reassembly()
122 npc->npc_info = 0; in npf_reassembly()
124 if (npf_cache_all(npc) & (NPC_IPFRAG|NPC_FMTERR)) { in npf_reassembly()
147 npf_cache_t npc; in npfk_packet_handler() local
162 memset(&npc, 0, sizeof(npf_cache_t)); in npfk_packet_handler()
163 npc.npc_ctx = npf; in npfk_packet_handler()
164 npc.npc_nbuf = &nbuf; in npfk_packet_handler()
177 flags = npf_cache_all(&npc); in npfk_packet_handler()
188 error = npf_reassembly(npf, &npc, &mff); in npfk_packet_handler()
204 con = npf_conn_inspect(&npc, di, &error); in npfk_packet_handler()
222 rl = npf_ruleset_inspect(&npc, rlset, di, NPF_LAYER_3); in npfk_packet_handler()
257 con = npf_conn_establish(&npc, di, in npfk_packet_handler()
276 error = npf_do_nat(&npc, con, di); in npfk_packet_handler()
283 if (rp && !npf_rproc_run(&npc, rp, &mi, &decision)) { in npfk_packet_handler()
323 if (mi.mi_retfl && npf_return_block(&npc, mi.mi_retfl)) { in npfk_packet_handler()