/openbsd/sys/net/ |
H A D | if_rport.c | 157 struct m_tag *mtag; in rport_output() local 180 mtag = NULL; in rport_output() 181 while ((mtag = m_tag_find(m, PACKET_TAG_GRE, mtag)) != NULL) { in rport_output() 182 if (*(int *)(mtag + 1) == ifp->if_index) { in rport_output() 188 mtag = m_tag_get(PACKET_TAG_GRE, sizeof(ifp->if_index), M_NOWAIT); in rport_output() 189 if (mtag == NULL) { in rport_output() 193 *(int *)(mtag + 1) = ifp->if_index; in rport_output() 194 m_tag_prepend(m, mtag); in rport_output()
|
H A D | if_etherip.c | 219 struct m_tag *mtag; in etherip_output() local 221 mtag = NULL; in etherip_output() 222 while ((mtag = m_tag_find(m, PACKET_TAG_GRE, mtag)) != NULL) { in etherip_output() 538 struct m_tag *mtag; in ip_etherip_output() local 569 if (mtag == NULL) { in ip_etherip_output() 574 *(int *)(mtag + 1) = ifp->if_index; in ip_etherip_output() 575 m_tag_prepend(m, mtag); in ip_etherip_output() 709 struct m_tag *mtag; in ip6_etherip_output() local 746 if (mtag == NULL) { in ip6_etherip_output() 751 *(int *)(mtag + 1) = ifp->if_index; in ip6_etherip_output() [all …]
|
H A D | if_sec.c | 288 struct m_tag *mtag; in sec_output() local 310 mtag = NULL; in sec_output() 311 while ((mtag = m_tag_find(m, PACKET_TAG_GRE, mtag)) != NULL) { in sec_output() 312 if (ifp->if_index == *(int *)(mtag + 1)) { in sec_output() 318 mtag = m_tag_get(PACKET_TAG_GRE, sizeof(ifp->if_index), M_NOWAIT); in sec_output() 319 if (mtag == NULL) { in sec_output() 323 *(int *)(mtag + 1) = ifp->if_index; in sec_output() 324 m_tag_prepend(m, mtag); in sec_output()
|
H A D | bridgectl.c | 817 struct m_tag *mtag; in bridge_tunnel() local 819 if ((mtag = m_tag_find(m, PACKET_TAG_TUNNEL, NULL)) == NULL) in bridge_tunnel() 822 return ((struct bridge_tunneltag *)(mtag + 1)); in bridge_tunnel() 828 struct m_tag *mtag; in bridge_tunneltag() local 831 mtag = m_tag_get(PACKET_TAG_TUNNEL, in bridge_tunneltag() 833 if (mtag == NULL) in bridge_tunneltag() 835 bzero(mtag + 1, sizeof(struct bridge_tunneltag)); in bridge_tunneltag() 836 m_tag_prepend(m, mtag); in bridge_tunneltag() 839 return ((struct bridge_tunneltag *)(mtag + 1)); in bridge_tunneltag() 845 struct m_tag *mtag; in bridge_tunneluntag() local [all …]
|
H A D | if_gif.c | 393 struct m_tag *mtag; in gif_output() local 416 for (mtag = m_tag_find(m, PACKET_TAG_GRE, NULL); mtag; in gif_output() 417 mtag = m_tag_find(m, PACKET_TAG_GRE, mtag)) { in gif_output() 418 if (memcmp((caddr_t)(mtag + 1), &ifp->if_index, in gif_output() 425 mtag = m_tag_get(PACKET_TAG_GRE, sizeof(ifp->if_index), M_NOWAIT); in gif_output() 426 if (mtag == NULL) { in gif_output() 430 memcpy((caddr_t)(mtag + 1), &ifp->if_index, sizeof(ifp->if_index)); in gif_output() 431 m_tag_prepend(m, mtag); in gif_output()
|
H A D | if_vxlan.c | 326 struct m_tag *mtag; in vxlan_encap() local 391 mtag = m_tag_get(PACKET_TAG_GRE, sizeof(ifp->if_index), M_NOWAIT); in vxlan_encap() 392 if (mtag == NULL) in vxlan_encap() 395 *(int *)(mtag + 1) = ifp->if_index; in vxlan_encap() 396 m_tag_prepend(m, mtag); in vxlan_encap() 474 struct m_tag *mtag; in vxlan_output() local 476 mtag = NULL; in vxlan_output() 477 while ((mtag = m_tag_find(m, PACKET_TAG_GRE, mtag)) != NULL) { in vxlan_output() 478 if (*(int *)(mtag + 1) == ifp->if_index) { in vxlan_output()
|
H A D | if_gre.c | 1500 struct m_tag *mtag; in gre_output() local 1528 for (mtag = m_tag_find(m, PACKET_TAG_GRE, NULL); mtag; in gre_output() 1529 mtag = m_tag_find(m, PACKET_TAG_GRE, mtag)) { in gre_output() 1530 if (memcmp((caddr_t)(mtag + 1), &ifp->if_index, in gre_output() 1539 if (mtag == NULL) { in gre_output() 1545 m_tag_prepend(m, mtag); in gre_output() 1637 struct m_tag *mtag; in mgre_output() local 1695 for (mtag = m_tag_find(m, PACKET_TAG_GRE, NULL); mtag; in mgre_output() 1696 mtag = m_tag_find(m, PACKET_TAG_GRE, mtag)) { in mgre_output() 1705 if (mtag == NULL) { in mgre_output() [all …]
|
H A D | pf_norm.c | 854 struct m_tag *mtag; in pf_reassemble6() local 918 if ((mtag = m_tag_get(PACKET_TAG_PF_REASSEMBLED, sizeof(struct in pf_reassemble6() 921 ftag = (struct pf_fragment_tag *)(mtag + 1); in pf_reassemble6() 925 m_tag_prepend(m, mtag); in pf_reassemble6() 957 pf_refragment6(struct mbuf **m0, struct m_tag *mtag, struct sockaddr_in6 *dst, in pf_refragment6() argument 962 struct pf_fragment_tag *ftag = (struct pf_fragment_tag *)(mtag + 1); in pf_refragment6() 971 m_tag_delete(m, mtag); in pf_refragment6() 972 mtag = NULL; in pf_refragment6()
|
H A D | bpf.c | 150 struct m_tag *mtag; in bpf_movein() local 278 mtag = m_tag_get(PACKET_TAG_DLT, sizeof(u_int), M_WAIT); in bpf_movein() 279 *(u_int *)(mtag + 1) = linktype; in bpf_movein() 280 m_tag_prepend(m, mtag); in bpf_movein()
|
H A D | if_wg.c | 903 struct m_tag *mtag; in wg_tag_get() local 905 if ((mtag = m_tag_find(m, PACKET_TAG_WIREGUARD, NULL)) == NULL) { in wg_tag_get() 906 mtag = m_tag_get(PACKET_TAG_WIREGUARD, sizeof(struct wg_tag), in wg_tag_get() 908 if (mtag == NULL) in wg_tag_get() 910 bzero(mtag + 1, sizeof(struct wg_tag)); in wg_tag_get() 911 m_tag_prepend(m, mtag); in wg_tag_get() 913 return ((struct wg_tag *)(mtag + 1)); in wg_tag_get()
|
H A D | pf.c | 6699 struct m_tag *mtag; in pf_route6() local 6782 (void) pf_refragment6(&m0, mtag, dst, ifp, rt); in pf_route6() 6863 struct m_tag *mtag; in pf_find_divert() local 6868 return ((struct pf_divert *)(mtag + 1)); in pf_find_divert() 6874 struct m_tag *mtag; in pf_get_divert() local 6879 if (mtag == NULL) in pf_get_divert() 6881 memset(mtag + 1, 0, sizeof(struct pf_divert)); in pf_get_divert() 6882 m_tag_prepend(m, mtag); in pf_get_divert() 6885 return ((struct pf_divert *)(mtag + 1)); in pf_get_divert() 8041 struct m_tag *mtag; in pf_test() local [all …]
|
H A D | pipex.c | 1852 struct m_tag *mtag; in pipex_l2tp_output() local 1934 if ((mtag = m_tag_get(PACKET_TAG_IPSEC_FLOWINFO, in pipex_l2tp_output() 1940 *(u_int32_t *)(mtag + 1) = in pipex_l2tp_output() 1942 m_tag_prepend(m0, mtag); in pipex_l2tp_output()
|
H A D | pfvar.h | 1668 int pf_refragment6(struct mbuf **, struct m_tag *mtag,
|
/openbsd/sys/netinet/ |
H A D | ipsec_output.c | 404 struct m_tag *mtag; in ipsp_process_done() local 495 mtag = m_tag_get(PACKET_TAG_IPSEC_OUT_DONE, sizeof(struct tdb_ident), in ipsp_process_done() 497 if (mtag == NULL) { in ipsp_process_done() 503 tdbi = (struct tdb_ident *)(mtag + 1); in ipsp_process_done() 509 m_tag_prepend(m, mtag); in ipsp_process_done() 621 struct m_tag *mtag; in ipsec_adjust_mtu() local 626 for (mtag = m_tag_find(m, PACKET_TAG_IPSEC_OUT_DONE, NULL); mtag; in ipsec_adjust_mtu() 627 mtag = m_tag_find(m, PACKET_TAG_IPSEC_OUT_DONE, mtag)) { in ipsec_adjust_mtu() 628 tdbi = (struct tdb_ident *)(mtag + 1); in ipsec_adjust_mtu()
|
H A D | ip_input.c | 271 struct m_tag *mtag; in ip_ours_enqueue() local 277 if (mtag == NULL) { in ip_ours_enqueue() 304 struct m_tag *mtag; in ipintr() local 312 if (mtag != NULL) { in ipintr() 319 m_tag_delete(m, mtag); in ipintr() 1425 struct m_tag *mtag; in save_rte() local 1433 if (mtag == NULL) { in save_rte() 1442 m_tag_prepend(m, mtag); in save_rte() 1456 struct m_tag *mtag; in ip_srcroute() local 1462 if (mtag == NULL) in ip_srcroute() [all …]
|
H A D | ipsec_input.c | 378 struct m_tag *mtag; in ipsec_common_input_cb() local 483 mtag = m_tag_get(PACKET_TAG_IPSEC_IN_DONE, in ipsec_common_input_cb() 485 if (mtag == NULL) { in ipsec_common_input_cb() 491 tdbi = (struct tdb_ident *)(mtag + 1); in ipsec_common_input_cb() 497 m_tag_prepend(m, mtag); in ipsec_common_input_cb() 1027 struct m_tag *mtag; in ipsec_forward_check() local 1035 if (mtag != NULL) { in ipsec_forward_check() 1036 tdbi = (struct tdb_ident *)(mtag + 1); in ipsec_forward_check() 1052 struct m_tag *mtag; in ipsec_local_check() local 1107 if (mtag) { in ipsec_local_check() [all …]
|
H A D | ip_output.c | 511 struct m_tag *mtag; in ip_output_ipsec_lookup() local 528 for (mtag = m_tag_first(m); mtag != NULL; mtag = m_tag_next(m, mtag)) { in ip_output_ipsec_lookup() 529 if (mtag->m_tag_id != PACKET_TAG_IPSEC_OUT_DONE) in ip_output_ipsec_lookup() 531 tdbi = (struct tdb_ident *)(mtag + 1); in ip_output_ipsec_lookup()
|
H A D | udp_usrreq.c | 550 struct m_tag *mtag; in udp_input() local 555 mtag = m_tag_find(m, PACKET_TAG_IPSEC_IN_DONE, NULL); in udp_input() 556 if (mtag != NULL) { in udp_input() 557 tdbi = (struct tdb_ident *)(mtag + 1); in udp_input()
|
H A D | ip_carp.c | 1428 struct m_tag *mtag; in carp_input() local 1429 mtag = m_tag_get(PACKET_TAG_CARP_BAL_IP, 0, in carp_input() 1431 if (mtag == NULL) { in carp_input() 1435 m_tag_prepend(m, mtag); in carp_input() 1481 struct m_tag *mtag; in carp_lsdrop() local 1495 (mtag = m_tag_find(m, PACKET_TAG_CARP_BAL_IP, NULL))) { in carp_lsdrop() 1496 m_tag_delete(m, mtag); in carp_lsdrop()
|
H A D | tcp_input.c | 580 struct m_tag *mtag; in tcp_input() local 585 mtag = m_tag_find(m, PACKET_TAG_IPSEC_IN_DONE, NULL); in tcp_input() 586 if (mtag != NULL) { in tcp_input() 589 tdbi = (struct tdb_ident *)(mtag + 1); in tcp_input()
|
/openbsd/sys/netinet6/ |
H A D | ip6_input.c | 200 struct m_tag *mtag; in ip6_ours_enqueue() local 204 mtag = m_tag_get(PACKET_TAG_IP6_OFFNXT, sizeof(*ion), in ip6_ours_enqueue() 206 if (mtag == NULL) { in ip6_ours_enqueue() 211 ion = (struct ipoffnxt *)(mtag + 1); in ip6_ours_enqueue() 215 m_tag_prepend(*mp, mtag); in ip6_ours_enqueue() 233 struct m_tag *mtag; in ip6intr() local 240 mtag = m_tag_find(m, PACKET_TAG_IP6_OFFNXT, NULL); in ip6intr() 241 if (mtag != NULL) { in ip6intr() 244 ion = (struct ipoffnxt *)(mtag + 1); in ip6intr() 248 m_tag_delete(m, mtag); in ip6intr()
|
H A D | ip6_output.c | 2746 struct m_tag *mtag; in ip6_output_ipsec_lookup() local 2763 for (mtag = m_tag_first(m); mtag != NULL; mtag = m_tag_next(m, mtag)) { in ip6_output_ipsec_lookup() 2764 if (mtag->m_tag_id != PACKET_TAG_IPSEC_OUT_DONE) in ip6_output_ipsec_lookup() 2766 tdbi = (struct tdb_ident *)(mtag + 1); in ip6_output_ipsec_lookup()
|
/openbsd/sys/net80211/ |
H A D | ieee80211_output.c | 116 struct m_tag *mtag; in ieee80211_output() local 127 if ((mtag = m_tag_find(m, PACKET_TAG_DLT, NULL)) != NULL) { in ieee80211_output() 129 u_int dlt = *(u_int *)(mtag + 1); in ieee80211_output() 529 struct m_tag *mtag; in ieee80211_encap() local 535 if ((mtag = m_tag_find(m, PACKET_TAG_DLT, NULL)) != NULL) { in ieee80211_encap() 536 dlt = *(u_int *)(mtag + 1); in ieee80211_encap()
|
/openbsd/gnu/gcc/gcc/ |
H A D | tree.h | 2349 #define MTAG_GLOBAL(NODE) (TREE_MEMORY_TAG_CHECK (NODE)->mtag.is_global) 2354 #define SMT_USED_ALONE(NODE) (SYMBOL_MEMORY_TAG_CHECK (NODE)->mtag.is_used_alone) 2359 #define SMT_OLD_USED_ALONE(NODE) (SYMBOL_MEMORY_TAG_CHECK (NODE)->mtag.old_used_alone) 3216 struct tree_memory_tag GTY ((tag ("TS_MEMORY_TAG"))) mtag;
|