Lines Matching refs:npf

71 #define	m_freem(m)		npf->mbufops->free(m)
82 npf_reassembly(npf_t *npf, npf_cache_t *npc, bool *mff) in npf_reassembly() argument
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()
105 npf_stats_inc(npf, NPF_STAT_REASSFAIL); in npf_reassembly()
112 npf_stats_inc(npf, NPF_STAT_FRAGMENTS); in npf_reassembly()
121 nbuf_init(npf, nbuf, m, nbuf->nb_ifp); in npf_reassembly()
127 npf_stats_inc(npf, NPF_STAT_REASSEMBLY); in npf_reassembly()
144 npfk_packet_handler(npf_t *npf, struct mbuf **mp, ifnet_t *ifp, int di) in npfk_packet_handler() argument
161 nbuf_init(npf, &nbuf, *mp, ifp); in npfk_packet_handler()
163 npc.npc_ctx = npf; in npfk_packet_handler()
188 error = npf_reassembly(npf, &npc, &mff); in npfk_packet_handler()
208 npf_stats_inc(npf, NPF_STAT_PASS_CONN); in npfk_packet_handler()
219 int slock = npf_config_read_enter(npf); in npfk_packet_handler()
220 npf_ruleset_t *rlset = npf_config_ruleset(npf); in npfk_packet_handler()
224 const bool pass = npf_default_pass(npf); in npfk_packet_handler()
225 npf_config_read_exit(npf, slock); in npfk_packet_handler()
228 npf_stats_inc(npf, NPF_STAT_PASS_DEFAULT); in npfk_packet_handler()
231 npf_stats_inc(npf, NPF_STAT_BLOCK_DEFAULT); in npfk_packet_handler()
244 npf_config_read_exit(npf, slock); in npfk_packet_handler()
247 npf_stats_inc(npf, NPF_STAT_BLOCK_RULESET); in npfk_packet_handler()
250 npf_stats_inc(npf, NPF_STAT_PASS_RULESET); in npfk_packet_handler()