Searched refs:tot_len (Results 1 – 8 of 8) sorted by relevance
| /xnu-12377.61.12/bsd/net/ |
| H A D | nat464_utils.c | 493 nat464_translate_icmp_ip(pbuf_t *pbuf, uint16_t off, uint16_t *tot_len, uint16_t *off2, in nat464_translate_icmp_ip() argument 579 *tot_len += hlen - olen; in nat464_translate_icmp_ip() 637 struct in_addr dst_v4, uint64_t tot_len, boolean_t *p_is_first_frag) in nat464_translate_64() argument 683 ip4->ip_len = htons((uint16_t)(sizeof(*ip4) + (tot_len - off))); in nat464_translate_64() 742 struct in6_addr dst_v6, uint16_t tot_len) in nat464_translate_46() argument 759 ip6->ip6_plen = htons(tot_len - off); in nat464_translate_46() 797 uint16_t tot_len = 0; in nat464_translate_proto() local 816 tot_len = ntohs(iph->ip_len); in nat464_translate_proto() 826 tot_len = hlen + plen; in nat464_translate_proto() 978 if (nat464_translate_icmp_ip(pbuf, ip2off, &tot_len, in nat464_translate_proto() [all …]
|
| H A D | dlil_subr.c | 687 uint16_t tot_len = 0; in dlil_clat46() local 714 tot_len = ntohs(iph->ip_len); in dlil_clat46() 717 if ((size_t)(*m)->m_pkthdr.len < tot_len) { in dlil_clat46() 777 iph->ip_ttl, src_storage, dstsock.sin6_addr, tot_len) == NT_NAT64) ? 0 : -1; in dlil_clat46() 849 u_int64_t tot_len = 0; in dlil_clat64() local 929 tot_len = ntohs(ip6h->ip6_plen) + sizeof(struct ip6_hdr); in dlil_clat64() 936 ip6h->ip6_hlim, src, *dst, tot_len, &is_first_frag) == NT_NAT64) ? in dlil_clat64()
|
| H A D | pf.c | 4564 ip4->ip_len = htons(sizeof(*ip4) + pd2->tot_len - olen); in pf_change_icmp_af() 4581 ip6->ip6_plen = htons(pd2->tot_len - olen); in pf_change_icmp_af() 4599 pd->tot_len += hlen - olen; in pf_change_icmp_af() 4832 ip4->ip_len = htons(sizeof(*ip4) + (pd->tot_len - off)); in pf_nat64_ipv6() 4881 ip6->ip6_plen = htons(pd->tot_len - off); in pf_nat64_ipv4() 6413 r->bytes[dirndx] += pd->tot_len; in pf_test_dummynet() 6428 r->bytes[dirndx] += pd->tot_len; in pf_test_dummynet() 9780 pd.tot_len = ntohs(h->ip_len); in pf_test() 9824 pd.tot_len = ntohs(h->ip_len); in pf_test() 9858 pd.p_len = pd.tot_len - off - (th.th_off << 2); in pf_test() [all …]
|
| H A D | pf_norm.c | 1964 r->bytes[dir == PF_OUT] += pd->tot_len; in pf_normalize_ip() 2306 r->bytes[dir == PF_OUT] += pd->tot_len; in pf_normalize_ip6() 2662 r->bytes[dir == PF_OUT] += pd->tot_len; in pf_normalize_tcp()
|
| H A D | pfvar.h | 1425 u_int64_t tot_len; /* Make Mickey money */ member
|
| /xnu-12377.61.12/bsd/netinet6/ |
| H A D | ip6_input.c | 535 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-12377.61.12/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_agg.c | 2168 uint32_t tot_len = (len + pad); in flow_rx_agg_host() local 2227 tot_len > mhead_bufsize)) { in flow_rx_agg_host() 2229 if (tot_len > M16KCLBYTES) { in flow_rx_agg_host() 2234 err = mbuf_allocpacket(MBUF_DONTWAIT, tot_len, in flow_rx_agg_host() 2241 tot_len); in flow_rx_agg_host()
|
| /xnu-12377.61.12/bsd/skywalk/nexus/flowswitch/ |
| H A D | fsw_dp.c | 1358 uint32_t tot_len, len; in convert_native_pktq_to_mbufs() local 1375 tot_len = pad + len; in convert_native_pktq_to_mbufs() 1378 if (__improbable(largest < tot_len)) { in convert_native_pktq_to_mbufs() 1379 largest = MAX(tot_len, MCLBYTES); in convert_native_pktq_to_mbufs() 1387 if (__improbable(m == NULL || tot_len > mhead_bufsize)) { in convert_native_pktq_to_mbufs() 1390 if (tot_len > M16KCLBYTES) { in convert_native_pktq_to_mbufs() 1393 if ((error = mbuf_allocpacket(MBUF_DONTWAIT, tot_len, in convert_native_pktq_to_mbufs() 1410 tot_len < (mhead_bufsize >> 1))) { in convert_native_pktq_to_mbufs() 1417 if (__improbable(mhead_bufsize >= tot_len + M16KCLBYTES)) { in convert_native_pktq_to_mbufs()
|