Home
last modified time | relevance | path

Searched refs:mtodo (Results 1 – 25 of 26) sorted by relevance

12

/f-stack/freebsd/netpfil/ipfw/nat64/
H A Dnat64_translate.c672 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 Dnat64clat.c165 icmp6 = mtodo(m, hlen); in nat64clat_handle_icmp6()
191 ip6i = mtodo(m, hlen); in nat64clat_handle_icmp6()
H A Dnat64stl.c165 icmp6 = mtodo(m, hlen); in nat64stl_handle_icmp6()
191 ip6i = mtodo(m, hlen); in nat64stl_handle_icmp6()
H A Dnat64lsn.c454 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 Dng_checksum.c317 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 Dng_nat.c812 c = (char *)mtodo(m, ipofs); in ng_nat_rcvdata()
813 ip = (struct ip *)mtodo(m, ipofs); in ng_nat_rcvdata()
H A Dng_patch.c604 vh = (struct ng_patch_vlan_header *) mtodo(m, in ng_patch_rcvdata()
/f-stack/freebsd/netpfil/ipfw/pmod/
H A Dtcpmod.c138 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 Dudpencap.c172 udp = mtodo(m, hlen); in udp_ipsec_input()
233 udp = mtodo(n, off); in udp_ipsec_output()
H A Dipsec_mbuf.c88 bcopy(mtodo(m, hlen), mtod(m, caddr_t), skip); in m_makespace()
/f-stack/freebsd/netpfil/ipfw/nptv6/
H A Dnptv6.c122 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 Dif_me.c486 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 Dif_gre.c526 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 Dif_vxlan.c2408 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 Dip_icmp.c265 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 Dip_output.c1075 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 Dif_genet.c1157 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 Duipc_sockbuf.c173 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 Ddn_sched_fq_codel.c224 ip = (struct ip *)mtodo(m, dn_tag_get(m)->iphdr_off); in fq_codel_classify_flow()
H A Dip_dn_io.c441 ip = (struct ip *)mtodo(m, dn_tag_get(m)->iphdr_off); in ecn_mark()
H A Ddn_sched_fq_pie.c793 ip = (struct ip *)mtodo(m, dn_tag_get(m)->iphdr_off); in fq_pie_classify_flow()
H A Dip_fw_dynamic.c2387 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 Dmbuf.h109 #define mtodo(m, o) ((void *)(((m)->m_data) + (o))) macro
/f-stack/freebsd/sys/
H A Dmbuf.h114 #define mtodo(m, o) ((void *)(((m)->m_data) + (o))) macro
/f-stack/freebsd/netinet6/
H A Dip6_output.c212 *(u_short *)mtodo(m, offset) = csum; in in6_delayed_cksum()

12