Lines Matching full:m0
121 ipfw_check_packet(struct mbuf **m0, struct ifnet *ifp, int flags, in ipfw_check_packet() argument
136 tag = m_tag_locate(*m0, MTAG_IPFW_RULE, 0, NULL); in ipfw_check_packet()
139 m_tag_delete(*m0, tag); in ipfw_check_packet()
145 args.m = *m0; in ipfw_check_packet()
150 *m0 = args.m; in ipfw_check_packet()
152 KASSERT(*m0 != NULL || ipfw == IP_FW_DENY || in ipfw_check_packet()
153 ipfw == IP_FW_NAT64, ("%s: m0 is NULL", __func__)); in ipfw_check_packet()
179 (*m0)->m_flags |= M_FASTFWD_OURS; in ipfw_check_packet()
180 (*m0)->m_flags |= M_IP_NEXTHOP; in ipfw_check_packet()
192 (*m0)->m_flags |= M_IP6_NEXTHOP; in ipfw_check_packet()
201 m_tag_find(*m0, PACKET_TAG_IPFORWARD, NULL); in ipfw_check_packet()
203 m_tag_unlink(*m0, tag); in ipfw_check_packet()
214 m_tag_prepend(*m0, tag); in ipfw_check_packet()
240 (*m0)->m_flags |= M_FASTFWD_OURS; in ipfw_check_packet()
258 (void )ip_dn_io_ptr(m0, &args); in ipfw_check_packet()
265 * dummynet normally eats the packet and sets *m0=NULL in ipfw_check_packet()
270 if (*m0 != NULL) in ipfw_check_packet()
282 (void )ipfw_divert(m0, &args, ipfw == IP_FW_TEE); in ipfw_check_packet()
284 if (*m0) in ipfw_check_packet()
296 (void )ng_ipfw_input_p(m0, &args, ipfw == IP_FW_NGTEE); in ipfw_check_packet()
320 if (*m0) in ipfw_check_packet()
321 FREE_PKT(*m0); in ipfw_check_packet()
322 *m0 = NULL; in ipfw_check_packet()
332 ipfw_check_frame_mbuf(struct mbuf **m0, struct ifnet *ifp, const int flags, in ipfw_check_frame_mbuf() argument
350 mtag = m_tag_locate(*m0, MTAG_IPFW_RULE, 0, NULL); in ipfw_check_frame_mbuf()
353 m_tag_delete(*m0, mtag); in ipfw_check_frame_mbuf()
358 args.m = *m0; in ipfw_check_frame_mbuf()
361 *m0 = args.m; in ipfw_check_frame_mbuf()
378 ip_dn_io_ptr(m0, &args); in ipfw_check_frame_mbuf()
388 (void )ng_ipfw_input_p(m0, &args, ipfw == IP_FW_NGTEE); in ipfw_check_frame_mbuf()
399 if (*m0) in ipfw_check_frame_mbuf()
400 FREE_PKT(*m0); in ipfw_check_frame_mbuf()
401 *m0 = NULL; in ipfw_check_frame_mbuf()
481 ipfw_divert(struct mbuf **m0, struct ip_fw_args *args, bool tee) in ipfw_divert() argument
489 struct ip *ip = mtod(*m0, struct ip *); in ipfw_divert()
494 clone = *m0; /* use the original mbuf */ in ipfw_divert()
495 *m0 = NULL; in ipfw_divert()
497 clone = m_dup(*m0, M_NOWAIT); in ipfw_divert()