Home
last modified time | relevance | path

Searched refs:tot_len (Results 1 – 8 of 8) sorted by relevance

/xnu-11417.101.15/bsd/net/
H A Dnat464_utils.c487 nat464_translate_icmp_ip(pbuf_t *pbuf, uint16_t off, uint16_t *tot_len, uint16_t *off2, in nat464_translate_icmp_ip() argument
573 *tot_len += hlen - olen; in nat464_translate_icmp_ip()
631 struct in_addr dst_v4, uint64_t tot_len, boolean_t *p_is_first_frag) in nat464_translate_64() argument
677 ip4->ip_len = htons((uint16_t)(sizeof(*ip4) + (tot_len - off))); in nat464_translate_64()
736 struct in6_addr dst_v6, uint16_t tot_len) in nat464_translate_46() argument
753 ip6->ip6_plen = htons(tot_len - off); in nat464_translate_46()
791 uint16_t tot_len = 0; in nat464_translate_proto() local
810 tot_len = ntohs(iph->ip_len); in nat464_translate_proto()
820 tot_len = hlen + plen; in nat464_translate_proto()
966 if (nat464_translate_icmp_ip(pbuf, ip2off, &tot_len, in nat464_translate_proto()
[all …]
H A Ddlil_subr.c821 uint16_t tot_len = 0; in dlil_clat46() local
840 tot_len = ntohs(iph->ip_len); in dlil_clat46()
890 iph->ip_ttl, src_storage, dstsock.sin6_addr, tot_len) == NT_NAT64) ? 0 : -1; in dlil_clat46()
962 u_int64_t tot_len = 0; in dlil_clat64() local
1028 tot_len = ntohs(ip6h->ip6_plen) + sizeof(struct ip6_hdr); in dlil_clat64()
1035 ip6h->ip6_hlim, src, *dst, tot_len, &is_first_frag) == NT_NAT64) ? in dlil_clat64()
H A Dpf.c4561 ip4->ip_len = htons(sizeof(*ip4) + pd2->tot_len - olen); in pf_change_icmp_af()
4578 ip6->ip6_plen = htons(pd2->tot_len - olen); in pf_change_icmp_af()
4596 pd->tot_len += hlen - olen; in pf_change_icmp_af()
4829 ip4->ip_len = htons(sizeof(*ip4) + (pd->tot_len - off)); in pf_nat64_ipv6()
4878 ip6->ip6_plen = htons(pd->tot_len - off); in pf_nat64_ipv4()
6410 r->bytes[dirndx] += pd->tot_len; in pf_test_dummynet()
6425 r->bytes[dirndx] += pd->tot_len; in pf_test_dummynet()
9759 pd.tot_len = ntohs(h->ip_len); in pf_test()
9803 pd.tot_len = ntohs(h->ip_len); in pf_test()
9837 pd.p_len = pd.tot_len - off - (th.th_off << 2); in pf_test()
[all …]
H A Dpf_norm.c1961 r->bytes[dir == PF_OUT] += pd->tot_len; in pf_normalize_ip()
2303 r->bytes[dir == PF_OUT] += pd->tot_len; in pf_normalize_ip6()
2659 r->bytes[dir == PF_OUT] += pd->tot_len; in pf_normalize_tcp()
H A Dpfvar.h1425 u_int64_t tot_len; /* Make Mickey money */ member
/xnu-11417.101.15/bsd/netinet6/
H A Dip6_input.c535 uint32_t tot_len = sizeof(*ip6) + plen; in ip6_input_adjust() local
537 ASSERT(m_pktlen(m) > tot_len); in ip6_input_adjust()
566 (tot_len - m->m_pkthdr.csum_rx_start), in ip6_input_adjust()
594 m->m_len = tot_len; in ip6_input_adjust()
595 m->m_pkthdr.len = tot_len; in ip6_input_adjust()
597 m_adj(m, tot_len - m->m_pkthdr.len); in ip6_input_adjust()
/xnu-11417.101.15/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_agg.c2167 uint32_t tot_len = (len + pad); in flow_rx_agg_host() local
2226 tot_len > mhead_bufsize)) { in flow_rx_agg_host()
2228 if (tot_len > M16KCLBYTES) { in flow_rx_agg_host()
2233 err = mbuf_allocpacket(MBUF_DONTWAIT, tot_len, in flow_rx_agg_host()
2240 tot_len); in flow_rx_agg_host()
/xnu-11417.101.15/bsd/skywalk/nexus/flowswitch/
H A Dfsw_dp.c1339 uint32_t tot_len, len; in convert_native_pktq_to_mbufs() local
1356 tot_len = pad + len; in convert_native_pktq_to_mbufs()
1359 if (__improbable(largest < tot_len)) { in convert_native_pktq_to_mbufs()
1360 largest = MAX(tot_len, MCLBYTES); in convert_native_pktq_to_mbufs()
1368 if (__improbable(m == NULL || tot_len > mhead_bufsize)) { in convert_native_pktq_to_mbufs()
1371 if (tot_len > M16KCLBYTES) { in convert_native_pktq_to_mbufs()
1374 if ((error = mbuf_allocpacket(MBUF_DONTWAIT, tot_len, in convert_native_pktq_to_mbufs()
1391 tot_len < (mhead_bufsize >> 1))) { in convert_native_pktq_to_mbufs()
1398 if (__improbable(mhead_bufsize >= tot_len + M16KCLBYTES)) { in convert_native_pktq_to_mbufs()