Home
last modified time | relevance | path

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

12

/freebsd/sys/netpfil/ipfw/nat64/
H A Dnat64_translate.c602 bcopy(&ip6f, mtodo(m, sizeof(struct ip6_hdr)), in nat64_fragment6()
666 icmp6 = mtodo(m, len); in nat64_icmp6_reflect()
684 mtodo(m, len - sizeof(struct ip6_hdr)), in nat64_icmp6_reflect()
749 icmp6 = mtodo(n, sizeof(struct ip6_hdr)); in nat64_icmp6_reflect()
755 m_copydata(m, 0, len, mtodo(n, sizeof(struct ip6_hdr) + in nat64_icmp6_reflect()
809 icmp = mtodo(m, ip->ip_hl << 2); in nat64_icmp_reflect()
855 icmp = mtodo(n, sizeof(struct ip)); in nat64_icmp_reflect()
861 m_copydata(m, 0, len, mtodo(n, sizeof(struct ip) + in nat64_icmp_reflect()
918 icmp = mtodo(m, offset); in nat64_icmp_translate()
1100 eip6 = mtodo(n, offset + sizeof(struct icmp6_hdr)); in nat64_icmp_translate()
[all …]
H A Dnat64clat.c162 icmp6 = mtodo(m, hlen); in nat64clat_handle_icmp6()
188 ip6i = mtodo(m, hlen); in nat64clat_handle_icmp6()
H A Dnat64stl.c162 icmp6 = mtodo(m, hlen); in nat64stl_handle_icmp6()
188 ip6i = mtodo(m, hlen); in nat64stl_handle_icmp6()
H A Dnat64lsn.c453 ip = mtodo(*mp, off); /* Inner IP header */ in inspect_icmp_mbuf()
465 *port = ntohs(*((uint16_t *)mtodo(*mp, off))); in inspect_icmp_mbuf()
473 icmp = mtodo(*mp, off); in inspect_icmp_mbuf()
1665 icmp6 = mtodo(*mp, offset); in nat64lsn_translate6()
/freebsd/sys/netgraph/
H A Dng_checksum.c315 ip4 = (struct ip *) mtodo(m, l3_offset); in checksum_ipv4()
356 th = (struct tcphdr *) mtodo(m, l3_offset + hlen); in checksum_ipv4()
377 uh = (struct udphdr *) mtodo(m, l3_offset + hlen); in checksum_ipv4()
426 ip6 = (struct ip6_hdr *) mtodo(m, l3_offset); in checksum_ipv6()
446 ip6e = (struct ip6_ext *) mtodo(m, l3_offset + hlen); in checksum_ipv6()
454 ip6e = (struct ip6_ext *) mtodo(m, l3_offset + hlen); in checksum_ipv6()
482 th = (struct tcphdr *) mtodo(m, l3_offset + hlen); in checksum_ipv6()
502 uh = (struct udphdr *) mtodo(m, l3_offset + hlen); in checksum_ipv6()
595 vh = (struct ng_checksum_vlan_header *) mtodo(m, in ng_checksum_rcvdata()
H A Dng_nat.c816 c = (char *)mtodo(m, ipofs); in ng_nat_rcvdata()
817 ip = (struct ip *)mtodo(m, ipofs); in ng_nat_rcvdata()
/freebsd/sys/netpfil/ipfw/pmod/
H A Dtcpmod.c135 hbh = mtodo(*mp, hlen); in tcpmod_ipv6_setmss()
139 tcp = mtodo(*mp, hlen); in tcpmod_ipv6_setmss()
159 tcp = mtodo(*mp, hlen); in tcpmod_ipv4_setmss()
/freebsd/sys/netpfil/ipfw/nptv6/
H A Dnptv6.c120 ip6 = mtodo(m, hlen); in nptv6_getlasthdr()
125 hbh = mtodo(m, hlen); in nptv6_getlasthdr()
146 icmp6 = mtodo(m, offset); in nptv6_translate_icmpv6()
173 ip6 = mtodo(m, offset); in nptv6_translate_icmpv6()
235 ip6 = mtodo(*mp, offset); in nptv6_rewrite_internal()
293 ip6 = mtodo(*mp, offset); in nptv6_rewrite_external()
/freebsd/sys/net/
H A Dif_me.c487 mh = (struct mobhdr *)mtodo(m, sizeof(struct ip)); in me_input()
515 memmove(mtodo(m, hlen), ip, sizeof(struct ip)); in me_input()
624 memmove(mtod(m, void *), mtodo(m, hlen), sizeof(struct ip)); in me_transmit()
631 bcopy(&mh, mtodo(m, sizeof(struct ip)), hlen); in me_transmit()
H A Dif_gre.c525 gh = (struct grehdr *)mtodo(m, off); in gre_input()
758 uh = (struct udphdr *)mtodo(m, len);
770 gh = (struct grehdr *)mtodo(m, len);
H A Dif_ovpn.c1632 ohdr = mtodo(m, sizeof(struct udphdr)); in ovpn_decrypt_rx_cb()
2095 udp = mtodo(m, sizeof(*ip6)); in ovpn_encap()
2297 uhdr = mtodo(m, 0); in ovpn_udp_input()
2298 ohdr = mtodo(m, sizeof(*uhdr)); in ovpn_udp_input()
2312 ohdr = mtodo(m, sizeof(*uhdr)); in ovpn_udp_input()
2328 uhdr = mtodo(m, 0); in ovpn_udp_input()
2329 ohdr = mtodo(m, sizeof(*uhdr)); in ovpn_udp_input()
/freebsd/sys/netipsec/
H A Dudpencap.c184 udp = mtodo(m, hlen); in udp_ipsec_input()
276 udp = mtodo(n, off); in udp_ipsec_output()
H A Dipsec_mbuf.c86 bcopy(mtodo(m, hlen), mtod(m, caddr_t), skip); in m_makespace()
/freebsd/sys/dev/iscsi/
H A Dicl_soft.c1116 size_t mtodo, page_offset, todo; in icl_soft_conn_pdu_append_bio() local
1202 mtodo = min(todo, M_SIZE(m) - m->m_len); in icl_soft_conn_pdu_append_bio()
1204 page_offset, mtodo); in icl_soft_conn_pdu_append_bio()
1205 m->m_len += mtodo; in icl_soft_conn_pdu_append_bio()
1208 page_offset += mtodo; in icl_soft_conn_pdu_append_bio()
1209 todo -= mtodo; in icl_soft_conn_pdu_append_bio()
/freebsd/sys/dev/rtwn/
H A Dif_rtwn_rx.c312 wh = (struct ieee80211_frame_min *)(mtodo(m, shift + infosz)); in rtwn_rx_common()
326 physt = (void *)mtodo(m, shift); in rtwn_rx_common()
/freebsd/sys/dev/cxgbe/cxgbei/
H A Dicl_cxgbei.c625 size_t page_offset, todo, mtodo; in icl_cxgbei_conn_pdu_append_bio() local
716 mtodo = min(todo, M_SIZE(m) - m->m_len); in icl_cxgbei_conn_pdu_append_bio()
718 page_offset, mtodo); in icl_cxgbei_conn_pdu_append_bio()
719 m->m_len += mtodo; in icl_cxgbei_conn_pdu_append_bio()
722 page_offset += mtodo; in icl_cxgbei_conn_pdu_append_bio()
723 todo -= mtodo; in icl_cxgbei_conn_pdu_append_bio()
/freebsd/sys/dev/gve/
H A Dgve_tx.c639 ip6 = (struct ip6_hdr *)(mtodo(mbuf_next, offset)); in gve_xmit()
645 ip = (struct ip *)(mtodo(mbuf_next, offset)); in gve_xmit()
654 th = (struct tcphdr *)(mtodo(mbuf_next, offset)); in gve_xmit()
H A Dgve_tx_dqo.c347 ip6 = (struct ip6_hdr *)(mtodo(mbuf, l3_off)); in gve_prep_tso()
357 ip = (struct ip *)(mtodo(mbuf, l3_off)); in gve_prep_tso()
364 th = (struct tcphdr *)(mtodo(mbuf, l4_off)); in gve_prep_tso()
/freebsd/sys/netinet/
H A Dip_icmp.c271 th = mtodo(n, oiphlen); in icmp_error()
300 sh = mtodo(n, oiphlen); in icmp_error()
311 sh = mtodo(n, oiphlen); in icmp_error()
/freebsd/sys/arm64/broadcom/genet/
H A Dif_genet.c1220 copy_p = mtodo(m, sizeof(struct statusblock)); in gen_parse_tx()
1233 p = mtodo(m, sizeof(struct statusblock)); in gen_parse_tx()
1249 p0 = mtodo(m0, sizeof(struct statusblock)); \ in gen_parse_tx()
1251 bcopy(p0, mtodo(m0, sizeof(struct statusblock)),\ in gen_parse_tx()
1253 copy_p = mtodo(m0, m0->m_len); \ in gen_parse_tx()
/freebsd/sys/dev/ena/
H A Dena_datapath.c453 mbuf->m_data = mtodo(mbuf, ena_rx_ctx->pkt_offset); in ena_rx_mbuf()
764 ip = (struct ip *)(mtodo(mbuf_next, offset)); in ena_tx_csum()
784 th = (struct tcphdr *)(mtodo(mbuf_next, offset)); in ena_tx_csum()
/freebsd/sys/netinet6/
H A Din6_cksum.c293 ip6 = mtodo(m, off_l3); in in6_cksum_partial_l2()
/freebsd/sys/dev/mana/
H A Dmana_en.c717 ip = mtodo(mbuf, ehlen); in mana_tso_fixup()
722 th = mtodo(mbuf, ehlen + iphlen); in mana_tso_fixup()
732 ip6 = mtodo(mbuf, ehlen); in mana_tso_fixup()
741 th = mtodo(mbuf, ehlen + sizeof(*ip6)); in mana_tso_fixup()
784 ip = (struct ip *)(mtodo(mbuf_next, offset)); in mana_mbuf_csum_check()
792 ip6 = (struct ip6_hdr *)(mtodo(mbuf_next, offset)); in mana_mbuf_csum_check()
/freebsd/sys/kern/
H A Duipc_sockbuf.c171 m_copydata(n, 0, n->m_len, mtodo(m, m->m_len)); in sbready_compress()
1438 m_copydata(m, 0, m->m_len, mtodo(n, n->m_len)); in sbcompress()
1509 m_copydata(m, 0, m->m_len, mtodo(n, n->m_len)); in sbcompress_ktls_rx()
/freebsd/sys/dev/sfxge/
H A Dsfxge_tx.c825 const struct ip *iph = (const struct ip *)mtodo(mbuf, mbuf->m_pkthdr.l2hlen); in sfxge_parse_tx_packet()
834 KASSERT(((const struct ip6_hdr *)mtodo(mbuf, mbuf->m_pkthdr.l2hlen))->ip6_nxt == in sfxge_parse_tx_packet()
850 th = (const struct tcphdr *)mtodo(mbuf, mbuf->m_pkthdr.l3hlen); in sfxge_parse_tx_packet()

12