| /f-stack/freebsd/netpfil/ipfw/nat64/ |
| H A D | nat64_translate.c | 672 icmp6 = mtodo(m, len); in nat64_icmp6_reflect() 814 icmp = mtodo(m, ip->ip_hl << 2); in nat64_icmp_reflect() 923 icmp = mtodo(m, offset); in nat64_icmp_translate() 1170 icmp = mtodo(n, offset); in nat64_icmp_translate() 1200 ip6 = mtodo(m, hlen); in nat64_getlasthdr() 1206 hbh = mtodo(m, hlen); in nat64_getlasthdr() 1372 icmp6 = mtodo(m, hlen); in nat64_handle_icmp6() 1505 ip6i = mtodo(m, hlen); in nat64_handle_icmp6() 1514 ip6f = mtodo(m, hlen); in nat64_handle_icmp6() 1624 frag = mtodo(m, hlen); in nat64_do_handle_ip6() [all …]
|
| H A D | nat64clat.c | 165 icmp6 = mtodo(m, hlen); in nat64clat_handle_icmp6() 191 ip6i = mtodo(m, hlen); in nat64clat_handle_icmp6()
|
| H A D | nat64stl.c | 165 icmp6 = mtodo(m, hlen); in nat64stl_handle_icmp6() 191 ip6i = mtodo(m, hlen); in nat64stl_handle_icmp6()
|
| H A D | nat64lsn.c | 454 ip = mtodo(*mp, off); /* Inner IP header */ in inspect_icmp_mbuf() 466 *port = ntohs(*((uint16_t *)mtodo(*mp, off))); in inspect_icmp_mbuf() 474 icmp = mtodo(*mp, off); in inspect_icmp_mbuf() 1517 icmp6 = mtodo(*mp, offset); in nat64lsn_translate6()
|
| /f-stack/freebsd/netgraph/ |
| H A D | ng_checksum.c | 317 ip4 = (struct ip *) mtodo(m, l3_offset); in checksum_ipv4() 358 th = (struct tcphdr *) mtodo(m, l3_offset + hlen); in checksum_ipv4() 379 uh = (struct udphdr *) mtodo(m, l3_offset + hlen); in checksum_ipv4() 428 ip6 = (struct ip6_hdr *) mtodo(m, l3_offset); in checksum_ipv6() 448 ip6e = (struct ip6_ext *) mtodo(m, l3_offset + hlen); in checksum_ipv6() 456 ip6e = (struct ip6_ext *) mtodo(m, l3_offset + hlen); in checksum_ipv6() 484 th = (struct tcphdr *) mtodo(m, l3_offset + hlen); in checksum_ipv6() 504 uh = (struct udphdr *) mtodo(m, l3_offset + hlen); in checksum_ipv6() 597 vh = (struct ng_checksum_vlan_header *) mtodo(m, in ng_checksum_rcvdata()
|
| H A D | ng_nat.c | 812 c = (char *)mtodo(m, ipofs); in ng_nat_rcvdata() 813 ip = (struct ip *)mtodo(m, ipofs); in ng_nat_rcvdata()
|
| H A D | ng_patch.c | 604 vh = (struct ng_patch_vlan_header *) mtodo(m, in ng_patch_rcvdata()
|
| /f-stack/freebsd/netpfil/ipfw/pmod/ |
| H A D | tcpmod.c | 138 hbh = mtodo(*mp, hlen); in tcpmod_ipv6_setmss() 142 tcp = mtodo(*mp, hlen); in tcpmod_ipv6_setmss() 162 tcp = mtodo(*mp, hlen); in tcpmod_ipv4_setmss()
|
| /f-stack/freebsd/netipsec/ |
| H A D | udpencap.c | 172 udp = mtodo(m, hlen); in udp_ipsec_input() 233 udp = mtodo(n, off); in udp_ipsec_output()
|
| H A D | ipsec_mbuf.c | 88 bcopy(mtodo(m, hlen), mtod(m, caddr_t), skip); in m_makespace()
|
| /f-stack/freebsd/netpfil/ipfw/nptv6/ |
| H A D | nptv6.c | 122 ip6 = mtodo(m, hlen); in nptv6_getlasthdr() 127 hbh = mtodo(m, hlen); in nptv6_getlasthdr() 148 icmp6 = mtodo(m, offset); in nptv6_translate_icmpv6() 175 ip6 = mtodo(m, offset); in nptv6_translate_icmpv6() 237 ip6 = mtodo(*mp, offset); in nptv6_rewrite_internal() 295 ip6 = mtodo(*mp, offset); in nptv6_rewrite_external()
|
| /f-stack/freebsd/net/ |
| H A D | if_me.c | 486 mh = (struct mobhdr *)mtodo(m, sizeof(struct ip)); in me_input() 514 memmove(mtodo(m, hlen), ip, sizeof(struct ip)); in me_input() 622 memmove(mtod(m, void *), mtodo(m, hlen), sizeof(struct ip)); in me_transmit() 629 bcopy(&mh, mtodo(m, sizeof(struct ip)), hlen); in me_transmit()
|
| H A D | if_gre.c | 526 gh = (struct grehdr *)mtodo(m, off); in gre_input() 767 uh = (struct udphdr *)mtodo(m, len); 779 gh = (struct grehdr *)mtodo(m, len);
|
| H A D | if_vxlan.c | 2408 hdr = mtodo(m, ipoff); in vxlan_encap_header() 2671 struct udphdr *hdr = mtodo(m, sizeof(struct ip6_hdr)); in vxlan_encap6() 2770 vxh = mtodo(m, offset); in vxlan_rcv_udp_packet()
|
| /f-stack/freebsd/netinet/ |
| H A D | ip_icmp.c | 265 th = mtodo(n, oiphlen); in icmp_error() 294 sh = mtodo(n, oiphlen); in icmp_error() 305 sh = mtodo(n, oiphlen); in icmp_error()
|
| H A D | ip_output.c | 1075 uh = (struct udphdr *)mtodo(m, offset); in in_delayed_cksum() 1090 *(u_short *)mtodo(m, offset) = csum; in in_delayed_cksum()
|
| /f-stack/freebsd/arm64/broadcom/genet/ |
| H A D | if_genet.c | 1157 copy_p = mtodo(m, sizeof(struct statusblock)); in gen_parse_tx() 1170 p = mtodo(m, sizeof(struct statusblock)); in gen_parse_tx() 1186 p0 = mtodo(m0, sizeof(struct statusblock)); \ in gen_parse_tx() 1188 bcopy(p0, mtodo(m0, sizeof(struct statusblock)),\ in gen_parse_tx() 1190 copy_p = mtodo(m0, sizeof(struct statusblock)); \ in gen_parse_tx()
|
| /f-stack/freebsd/kern/ |
| H A D | uipc_sockbuf.c | 173 m_copydata(n, 0, n->m_len, mtodo(m, m->m_len)); in sbready_compress() 1333 m_copydata(m, 0, m->m_len, mtodo(n, n->m_len)); in sbcompress() 1403 m_copydata(m, 0, m->m_len, mtodo(n, n->m_len)); in sbcompress_ktls_rx()
|
| /f-stack/freebsd/netpfil/ipfw/ |
| H A D | dn_sched_fq_codel.c | 224 ip = (struct ip *)mtodo(m, dn_tag_get(m)->iphdr_off); in fq_codel_classify_flow()
|
| H A D | ip_dn_io.c | 441 ip = (struct ip *)mtodo(m, dn_tag_get(m)->iphdr_off); in ecn_mark()
|
| H A D | dn_sched_fq_pie.c | 793 ip = (struct ip *)mtodo(m, dn_tag_get(m)->iphdr_off); in fq_pie_classify_flow()
|
| H A D | ip_fw_dynamic.c | 2387 tcp = mtodo(m, sizeof(struct ip)); in dyn_make_keepalive_ipv4() 2497 tcp = mtodo(m, sizeof(struct ip6_hdr)); in dyn_make_keepalive_ipv6()
|
| /f-stack/tools/compat/include/sys/ |
| H A D | mbuf.h | 109 #define mtodo(m, o) ((void *)(((m)->m_data) + (o))) macro
|
| /f-stack/freebsd/sys/ |
| H A D | mbuf.h | 114 #define mtodo(m, o) ((void *)(((m)->m_data) + (o))) macro
|
| /f-stack/freebsd/netinet6/ |
| H A D | ip6_output.c | 212 *(u_short *)mtodo(m, offset) = csum; in in6_delayed_cksum()
|