Home
last modified time | relevance | path

Searched refs:mtag (Results 1 – 15 of 15) sorted by relevance

/dragonfly/sys/net/dummynet3/
HDip_dummynet3_glue.c214 struct m_tag *mtag; in ip_dn_freepkt_dispatch() local
223 mtag = m_tag_find(m, PACKET_TAG_DUMMYNET, NULL); in ip_dn_freepkt_dispatch()
224 KKASSERT(mtag != NULL); in ip_dn_freepkt_dispatch()
226 pkt = m_tag_data(mtag); in ip_dn_freepkt_dispatch()
240 struct m_tag *mtag; in ip_dn_dispatch() local
262 mtag = m_tag_find(m, PACKET_TAG_DUMMYNET, NULL); in ip_dn_dispatch()
263 KKASSERT(mtag != NULL); in ip_dn_dispatch()
265 pkt = m_tag_data(mtag); in ip_dn_dispatch()
274 struct m_tag *mtag; in ip_dn_ip_output() local
286 mtag = m_tag_find(m, PACKET_TAG_DUMMYNET, NULL); in ip_dn_ip_output()
[all …]
/dragonfly/sys/net/dummynet/
HDip_dummynet_glue.c214 struct m_tag *mtag; in ip_dn_freepkt_dispatch() local
223 mtag = m_tag_find(m, PACKET_TAG_DUMMYNET, NULL); in ip_dn_freepkt_dispatch()
224 KKASSERT(mtag != NULL); in ip_dn_freepkt_dispatch()
226 pkt = m_tag_data(mtag); in ip_dn_freepkt_dispatch()
240 struct m_tag *mtag; in ip_dn_dispatch() local
262 mtag = m_tag_find(m, PACKET_TAG_DUMMYNET, NULL); in ip_dn_dispatch()
263 KKASSERT(mtag != NULL); in ip_dn_dispatch()
265 pkt = m_tag_data(mtag); in ip_dn_dispatch()
274 struct m_tag *mtag; in ip_dn_ip_output() local
286 mtag = m_tag_find(m, PACKET_TAG_DUMMYNET, NULL); in ip_dn_ip_output()
[all …]
/dragonfly/sys/netinet/
HDip_divert.c166 struct m_tag *mtag; in div_packet() local
173 mtag = m_tag_find(m, PACKET_TAG_IPFW_DIVERT, NULL); in div_packet()
174 divinfo = m_tag_data(mtag); in div_packet()
272 struct m_tag *mtag; in divert_packet() local
283 mtag = m_tag_find(m, PACKET_TAG_IPFW_DIVERT, NULL); in divert_packet()
284 KASSERT(mtag != NULL, ("%s no divert tag!", __func__)); in divert_packet()
285 divinfo = m_tag_data(mtag); in divert_packet()
322 struct m_tag *mtag; in div_output() local
335 mtag = m_tag_get(PACKET_TAG_IPFW_DIVERT, sizeof(*divinfo), M_NOWAIT); in div_output()
336 if (mtag == NULL) { in div_output()
[all …]
HDip_input.c456 struct m_tag *mtag; in ip_input() local
511 mtag = m_tag_find(m, PACKET_TAG_IPFORWARD, NULL); in ip_input()
512 KKASSERT(mtag != NULL); in ip_input()
513 next_hop = m_tag_data(mtag); in ip_input()
616 mtag = m_tag_find(m, PACKET_TAG_DUMMYNET, NULL); in ip_input()
617 KKASSERT(mtag != NULL); in ip_input()
618 m_tag_delete(m, mtag); in ip_input()
640 mtag = m_tag_find(m, PACKET_TAG_IPFORWARD, NULL); in ip_input()
641 KKASSERT(mtag != NULL); in ip_input()
642 next_hop = m_tag_data(mtag); in ip_input()
[all …]
HDip_output.c181 struct m_tag *mtag; in ip_output() local
211 mtag = m_tag_find(m, PACKET_TAG_IPFORWARD, NULL); in ip_output()
212 KKASSERT(mtag != NULL); in ip_output()
213 next_hop = m_tag_data(mtag); in ip_output()
220 mtag = m_tag_find(m, PACKET_TAG_DUMMYNET, NULL); in ip_output()
221 KKASSERT(mtag != NULL); in ip_output()
222 dn_pkt = m_tag_data(mtag); in ip_output()
510 mtag = m_tag_find(m, PACKET_TAG_DUMMYNET, NULL); in ip_output()
511 KKASSERT(mtag != NULL); in ip_output()
512 m_tag_delete(m, mtag); in ip_output()
[all …]
HDip_carp.c1653 struct m_tag *mtag; in carp_macmatch6() local
1669 mtag = m_tag_get(PACKET_TAG_CARP, in carp_macmatch6()
1671 if (mtag == NULL) { in carp_macmatch6()
1675 bcopy(&ifp, (caddr_t)(mtag + 1), in carp_macmatch6()
1677 m_tag_prepend(m, mtag); in carp_macmatch6()
HDtcp_input.c680 struct m_tag *mtag; in tcp_input() local
682 mtag = m_tag_find(m, PACKET_TAG_IPFORWARD, NULL); in tcp_input()
683 KKASSERT(mtag != NULL); in tcp_input()
684 next_hop = m_tag_data(mtag); in tcp_input()
/dragonfly/sys/netproto/802_11/wlan/
HDieee80211_dragonfly.c247 struct m_tag *mtag; in ieee80211_add_rx_params() local
250 mtag = m_tag_alloc(MTAG_ABI_NET80211, NET80211_TAG_RECV_PARAMS, in ieee80211_add_rx_params()
252 if (mtag == NULL) in ieee80211_add_rx_params()
255 rx = (struct ieee80211_rx_params *)(mtag + 1); in ieee80211_add_rx_params()
257 m_tag_prepend(m, mtag); in ieee80211_add_rx_params()
264 struct m_tag *mtag; in ieee80211_get_rx_params() local
267 mtag = m_tag_locate(m, MTAG_ABI_NET80211, NET80211_TAG_RECV_PARAMS, in ieee80211_get_rx_params()
269 if (mtag == NULL) in ieee80211_get_rx_params()
271 rx = (struct ieee80211_rx_params *)(mtag + 1); in ieee80211_get_rx_params()
661 struct m_tag *mtag; in ieee80211_add_callback() local
[all …]
/dragonfly/sys/net/ipfw3/
HDip_fw3.c328 struct m_tag *mtag; in ip_fw3_chk() local
445 mtag = m_tag_find(m, PACKET_TAG_IPFW_DIVERT, NULL); in ip_fw3_chk()
446 if (mtag != NULL) { in ip_fw3_chk()
447 divinfo = m_tag_data(mtag); in ip_fw3_chk()
473 if ((mtag = m_tag_find(m, PACKET_TAG_IPFW_DIVERT, NULL)) != NULL) { in ip_fw3_chk()
474 m_tag_delete(m, mtag); in ip_fw3_chk()
589 struct m_tag *mtag; in ip_fw3_dummynet_io() local
597 mtag = m_tag_get(PACKET_TAG_DUMMYNET, sizeof(*pkt), in ip_fw3_dummynet_io()
599 if (mtag == NULL) { in ip_fw3_dummynet_io()
603 m_tag_prepend(m, mtag); in ip_fw3_dummynet_io()
[all …]
/dragonfly/sys/net/ipfw3_basic/
HDip_fw3_basic.c192 struct m_tag *mtag; in check_forward() local
205 mtag = m_tag_get(PACKET_TAG_IPFORWARD, in check_forward()
207 if (mtag == NULL) { in check_forward()
212 sin = m_tag_data(mtag); in check_forward()
228 m_tag_prepend((*args)->m, mtag); in check_forward()
467 struct m_tag *mtag = m_tag_locate((*args)->m, in check_tag() local
469 if (mtag == NULL) { in check_tag()
470 mtag = m_tag_alloc(MTAG_IPFW,cmd->arg1, 0, M_NOWAIT); in check_tag()
471 if (mtag != NULL) in check_tag()
472 m_tag_prepend((*args)->m, mtag); in check_tag()
[all …]
/dragonfly/sys/netinet6/
HDip6_input.c1561 struct m_tag *mtag; in ip6_addaux() local
1563 mtag = m_tag_find(m, PACKET_TAG_IPV6_INPUT, NULL); in ip6_addaux()
1564 if (!mtag) { in ip6_addaux()
1565 mtag = m_tag_get(PACKET_TAG_IPV6_INPUT, sizeof(struct ip6aux), in ip6_addaux()
1567 if (mtag) in ip6_addaux()
1568 m_tag_prepend(m, mtag); in ip6_addaux()
1570 if (mtag) in ip6_addaux()
1571 bzero(m_tag_data(mtag), sizeof(struct ip6aux)); in ip6_addaux()
1572 return mtag ? (struct ip6aux *)m_tag_data(mtag) : NULL; in ip6_addaux()
1578 struct m_tag *mtag; in ip6_findaux() local
[all …]
/dragonfly/sys/net/
HDif_ethersubr.c445 struct m_tag *mtag; in ether_output_frame() local
448 mtag = m_tag_find(m, PACKET_TAG_DUMMYNET, NULL); in ether_output_frame()
449 KKASSERT(mtag != NULL); in ether_output_frame()
450 rule = ((struct dn_pkt *)m_tag_data(mtag))->dn_priv; in ether_output_frame()
453 m_tag_delete(m, mtag); in ether_output_frame()
503 struct m_tag *mtag; in ether_ipfw_chk() local
523 if ((mtag = m_tag_find(*m0, PACKET_TAG_IPFW_DIVERT, NULL)) != NULL) in ether_ipfw_chk()
524 m_tag_delete(*m0, mtag); in ether_ipfw_chk()
526 mtag = m_tag_find(*m0, PACKET_TAG_IPFORWARD, NULL); in ether_ipfw_chk()
527 KKASSERT(mtag != NULL); in ether_ipfw_chk()
[all …]
HDif.c2929 struct m_tag *mtag; in if_tunnel_check_nesting() local
2933 mtag = m_tag_locate(m, cookie, 0 /* type */, NULL); in if_tunnel_check_nesting()
2934 if (mtag != NULL) in if_tunnel_check_nesting()
2935 count += *(int *)(mtag + 1); in if_tunnel_check_nesting()
2943 if (mtag == NULL) { in if_tunnel_check_nesting()
2944 mtag = m_tag_alloc(cookie, 0, sizeof(int), M_NOWAIT); in if_tunnel_check_nesting()
2945 if (mtag == NULL) in if_tunnel_check_nesting()
2947 m_tag_prepend(m, mtag); in if_tunnel_check_nesting()
2950 *(int *)(mtag + 1) = count; in if_tunnel_check_nesting()
/dragonfly/sys/net/ipfw/
HDip_fw2.c3441 struct m_tag *mtag; in ipfw_chk() local
3563 mtag = m_tag_find(m, PACKET_TAG_IPFW_DIVERT, NULL); in ipfw_chk()
3564 if (mtag != NULL) { in ipfw_chk()
3565 divinfo = m_tag_data(mtag); in ipfw_chk()
3589 if ((mtag = m_tag_find(m, PACKET_TAG_IPFW_DIVERT, NULL)) != NULL) in ipfw_chk()
3590 m_tag_delete(m, mtag); in ipfw_chk()
4289 mtag = m_tag_get(PACKET_TAG_IPFW_DIVERT, in ipfw_chk()
4291 if (mtag == NULL) { in ipfw_chk()
4295 divinfo = m_tag_data(mtag); in ipfw_chk()
4300 m_tag_prepend(m, mtag); in ipfw_chk()
[all …]
/dragonfly/sys/net/pf/
HDpf.c6482 struct m_tag *mtag; in pf_find_divert() local
6484 if ((mtag = m_tag_find(m, PACKET_TAG_PF_DIVERT, NULL)) == NULL) in pf_find_divert()
6487 return ((struct pf_divert *)(mtag + 1)); in pf_find_divert()
6493 struct m_tag *mtag; in pf_get_divert() local
6495 if ((mtag = m_tag_find(m, PACKET_TAG_PF_DIVERT, NULL)) == NULL) { in pf_get_divert()
6496 mtag = m_tag_get(PACKET_TAG_PF_DIVERT, sizeof(struct pf_divert), in pf_get_divert()
6498 if (mtag == NULL) in pf_get_divert()
6500 bzero(mtag + 1, sizeof(struct pf_divert)); in pf_get_divert()
6501 m_tag_prepend(m, mtag); in pf_get_divert()
6504 return ((struct pf_divert *)(mtag + 1)); in pf_get_divert()