Lines Matching refs:npc
82 npf_reassembly(npf_t *npf, npf_cache_t *npc, bool *mff)
84 nbuf_t *nbuf = npc->npc_nbuf;
91 if (npf_iscached(npc, NPC_IP4) && npf->ip4_reassembly) {
93 } else if (npf_iscached(npc, NPC_IP6) && npf->ip6_reassembly) {
94 error = ip6_reass_packet(&m, npc->npc_hlen);
122 npc->npc_info = 0;
124 if (npf_cache_all(npc) & (NPC_IPFRAG|NPC_FMTERR)) {
147 npf_cache_t npc;
162 memset(&npc, 0, sizeof(npf_cache_t));
163 npc.npc_ctx = npf;
164 npc.npc_nbuf = &nbuf;
177 flags = npf_cache_all(&npc);
188 error = npf_reassembly(npf, &npc, &mff);
204 con = npf_conn_inspect(&npc, di, &error);
222 rl = npf_ruleset_inspect(&npc, rlset, di, NPF_RULE_LAYER_3);
243 id_match = npf_rule_match_rid(rl, &npc, di);
251 error = npf_rule_reverse(&npc, &mi, error);
266 con = npf_conn_establish(&npc, di,
285 error = npf_do_nat(&npc, con, di);
292 if (rp && !npf_rproc_run(&npc, rp, &mi, &decision)) {
332 if (mi.mi_retfl && npf_return_block(&npc, mi.mi_retfl)) {
350 npf_cache_t npc;
362 memset(&npc, 0, sizeof(npc));
363 npc.npc_ctx = npf;
364 npc.npc_nbuf = &nbuf;
375 flags = npf_cache_ether(&npc);
392 rl = npf_ruleset_inspect(&npc, rlset, di, NPF_RULE_LAYER_2);