Home
last modified time | relevance | path

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

12

/freebsd-13.1/sys/netpfil/ipfw/nat64/
H A Dnat64_translate.c667 icmp6 = mtodo(m, len); in nat64_icmp6_reflect()
810 icmp = mtodo(m, ip->ip_hl << 2); in nat64_icmp_reflect()
919 icmp = mtodo(m, offset); in nat64_icmp_translate()
1166 icmp = mtodo(n, offset); in nat64_icmp_translate()
1196 ip6 = mtodo(m, hlen); in nat64_getlasthdr()
1202 hbh = mtodo(m, hlen); in nat64_getlasthdr()
1368 icmp6 = mtodo(m, hlen); in nat64_handle_icmp6()
1501 ip6i = mtodo(m, hlen); in nat64_handle_icmp6()
1510 ip6f = mtodo(m, hlen); in nat64_handle_icmp6()
1620 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()
/freebsd-13.1/sys/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()
/freebsd-13.1/sys/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()
/freebsd-13.1/sys/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()
/freebsd-13.1/sys/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()
/freebsd-13.1/sys/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()
758 uh = (struct udphdr *)mtodo(m, len);
770 gh = (struct grehdr *)mtodo(m, len);
/freebsd-13.1/sys/dev/rtwn/
H A Dif_rtwn_rx.c257 wh = (struct ieee80211_frame_min *)(mtodo(m, shift + infosz)); in rtwn_rx_common()
271 physt = (void *)mtodo(m, shift); in rtwn_rx_common()
/freebsd-13.1/sys/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.c1050 uh = (struct udphdr *)mtodo(m, offset); in in_delayed_cksum()
1065 *(u_short *)mtodo(m, offset) = csum; in in_delayed_cksum()
/freebsd-13.1/sys/arm64/broadcom/genet/
H A Dif_genet.c1160 copy_p = mtodo(m, sizeof(struct statusblock)); in gen_parse_tx()
1173 p = mtodo(m, sizeof(struct statusblock)); in gen_parse_tx()
1189 p0 = mtodo(m0, sizeof(struct statusblock)); \ in gen_parse_tx()
1191 bcopy(p0, mtodo(m0, sizeof(struct statusblock)),\ in gen_parse_tx()
1193 copy_p = mtodo(m0, sizeof(struct statusblock)); \ in gen_parse_tx()
/freebsd-13.1/sys/cam/ctl/
H A Dctl_ha.c703 memcpy(mtodo(mb, 0), &hdr, sizeof(hdr)); in ctl_ha_msg_send2()
708 memcpy(mtodo(mb, mb->m_len), (const char *)addr + off, copylen); in ctl_ha_msg_send2()
719 memcpy(mtodo(mb, mb->m_len), (const char *)addr2 + off, copylen); in ctl_ha_msg_send2()
/freebsd-13.1/sys/dev/ena/
H A Dena_datapath.c453 mbuf->m_data = mtodo(mbuf, ena_rx_ctx->pkt_offset); in ena_rx_mbuf()
763 ip = (struct ip *)(mtodo(mbuf_next, offset)); in ena_tx_csum()
783 th = (struct tcphdr *)(mtodo(mbuf_next, offset)); in ena_tx_csum()
/freebsd-13.1/sys/kern/
H A Duipc_sockbuf.c173 m_copydata(n, 0, n->m_len, mtodo(m, m->m_len)); in sbready_compress()
1323 m_copydata(m, 0, m->m_len, mtodo(n, n->m_len)); in sbcompress()
1393 m_copydata(m, 0, m->m_len, mtodo(n, n->m_len)); in sbcompress_ktls_rx()
/freebsd-13.1/sys/netpfil/ipfw/
H A Ddn_sched_fq_codel.c222 ip = (struct ip *)mtodo(m, dn_tag_get(m)->iphdr_off); in fq_codel_classify_flow()
H A Dip_dn_io.c424 ip = (struct ip *)mtodo(m, dn_tag_get(m)->iphdr_off); in ecn_mark()
/freebsd-13.1/sys/dev/sfxge/
H A Dsfxge_tx.c827 const struct ip *iph = (const struct ip *)mtodo(mbuf, mbuf->m_pkthdr.l2hlen); in sfxge_parse_tx_packet()
836 KASSERT(((const struct ip6_hdr *)mtodo(mbuf, mbuf->m_pkthdr.l2hlen))->ip6_nxt == in sfxge_parse_tx_packet()
852 th = (const struct tcphdr *)mtodo(mbuf, mbuf->m_pkthdr.l3hlen); in sfxge_parse_tx_packet()
/freebsd-13.1/sys/dev/hyperv/netvsc/
H A Dif_hn.c789 ip = mtodo(m_head, ehlen); in hn_tso_fixup()
794 th = mtodo(m_head, ehlen + iphlen); in hn_tso_fixup()
810 ip6 = mtodo(m_head, ehlen); in hn_tso_fixup()
818 th = mtodo(m_head, ehlen + sizeof(*ip6)); in hn_tso_fixup()
850 ip = mtodo(m_head, ehlen); in hn_set_hlen()
884 ip6 = mtodo(m_head, ehlen); in hn_set_hlen()
910 th = mtodo(m_head, ehlen + iphlen); in hn_check_tcpsyn()
4861 ip = mtodo(m, hoff); in hn_check_iplen()
/freebsd-13.1/sys/dev/iwm/
H A Dif_iwm.c3373 pkt = mtodo(m, offset); in iwm_rx_mpdu_mq()
3388 wh = mtodo(m, sizeof(*desc)); in iwm_rx_mpdu_mq()
3396 memmove(mtodo(m, 2), mtodo(m, 0), hdrlen); in iwm_rx_mpdu_mq()
3397 m->m_data = mtodo(m, 2); in iwm_rx_mpdu_mq()

12