Home
last modified time | relevance | path

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

12

/src/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()
/src/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()
H A Dng_tty.c488 *(u_char *)mtodo(m, m->m_len++) = c; in ngt_rint()
/src/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()
/src/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()
/src/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.c754 gh = (struct grehdr *)mtodo(m, off); in gre_input()
987 uh = (struct udphdr *)mtodo(m, len);
999 gh = (struct grehdr *)mtodo(m, len);
H A Dif_ovpn.c1844 ohdr = mtodo(m, sizeof(struct udphdr)); in ovpn_decrypt_rx_cb()
2330 udp = mtodo(m, sizeof(*ip6)); in ovpn_encap()
2539 uhdr = mtodo(m, 0); in ovpn_udp_input()
2540 ohdr = mtodo(m, sizeof(*uhdr)); in ovpn_udp_input()
2578 ohdr = mtodo(m, sizeof(*uhdr)); in ovpn_udp_input()
2595 uhdr = mtodo(m, 0); in ovpn_udp_input()
2596 ohdr = mtodo(m, sizeof(*uhdr)); in ovpn_udp_input()
/src/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()
/src/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()
/src/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()
/src/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()
/src/sys/cam/ctl/
H A Dctl_ha.c695 memcpy(mtodo(mb, 0), &hdr, sizeof(hdr)); in ctl_ha_msg_send2()
700 memcpy(mtodo(mb, mb->m_len), (const char *)addr + off, copylen); in ctl_ha_msg_send2()
711 memcpy(mtodo(mb, mb->m_len), (const char *)addr2 + off, copylen); in ctl_ha_msg_send2()
/src/sys/netinet/
H A Dip_icmp.c270 th = mtodo(n, oiphlen); in icmp_error()
299 sh = mtodo(n, oiphlen); in icmp_error()
310 sh = mtodo(n, oiphlen); in icmp_error()
H A Dip_output.c1054 ip = (struct ip *)mtodo(m, iph_offset); in in_delayed_cksum_o()
1064 uh = (struct udphdr *)mtodo(m, offset); in in_delayed_cksum_o()
1079 *(u_short *)mtodo(m, offset) = csum; in in_delayed_cksum_o()
/src/sys/dev/gve/
H A Dgve_tx.c670 ip6 = (struct ip6_hdr *)(mtodo(mbuf_next, offset)); in gve_xmit()
676 ip = (struct ip *)(mtodo(mbuf_next, offset)); in gve_xmit()
685 th = (struct tcphdr *)(mtodo(mbuf_next, offset)); in gve_xmit()
H A Dgve_tx_dqo.c361 ip6 = (struct ip6_hdr *)(mtodo(mbuf, l3_off)); in gve_prep_tso()
371 ip = (struct ip *)(mtodo(mbuf, l3_off)); in gve_prep_tso()
378 th = (struct tcphdr *)(mtodo(mbuf, l4_off)); in gve_prep_tso()
/src/sys/arm64/broadcom/genet/
H A Dif_genet.c1254 copy_p = mtodo(m, sizeof(struct statusblock)); in gen_parse_tx()
1267 p = mtodo(m, sizeof(struct statusblock)); in gen_parse_tx()
1283 p0 = mtodo(m0, sizeof(struct statusblock)); \ in gen_parse_tx()
1285 bcopy(p0, mtodo(m0, sizeof(struct statusblock)),\ in gen_parse_tx()
1287 copy_p = mtodo(m0, m0->m_len); \ in gen_parse_tx()
/src/sys/dev/ena/
H A Dena_datapath.c449 mbuf->m_data = mtodo(mbuf, ena_rx_ctx->pkt_offset); in ena_rx_mbuf()
760 ip = (struct ip *)(mtodo(mbuf_next, offset)); in ena_tx_csum()
780 th = (struct tcphdr *)(mtodo(mbuf_next, offset)); in ena_tx_csum()
/src/sys/netinet6/
H A Din6_cksum.c293 ip6 = mtodo(m, off_l3); in in6_cksum_partial_l2()
/src/sys/dev/mana/
H A Dmana_en.c712 ip = mtodo(mbuf, ehlen); in mana_tso_fixup()
717 th = mtodo(mbuf, ehlen + iphlen); in mana_tso_fixup()
727 ip6 = mtodo(mbuf, ehlen); in mana_tso_fixup()
736 th = mtodo(mbuf, ehlen + sizeof(*ip6)); in mana_tso_fixup()
779 ip = (struct ip *)(mtodo(mbuf_next, offset)); in mana_mbuf_csum_check()
787 ip6 = (struct ip6_hdr *)(mtodo(mbuf_next, offset)); in mana_mbuf_csum_check()

12