Home
last modified time | relevance | path

Searched refs:ip6_plen (Results 1 – 25 of 46) sorted by relevance

12

/f-stack/freebsd/netinet6/
H A Dfrag6.c406 if (ip6->ip6_plen == 0) { in frag6_input()
421 (((ntohs(ip6->ip6_plen) - offset) & 0x7) != 0)) { in frag6_input()
423 offsetof(struct ip6_hdr, ip6_plen)); in frag6_input()
449 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - in frag6_input()
463 frgpartlen = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen) - offset; in frag6_input()
466 offsetof(struct ip6_hdr, ip6_plen)); in frag6_input()
813 ip6->ip6_plen = htons((u_short)plen + offset - sizeof(struct ip6_hdr)); in frag6_input()
H A Dip6_fastfwd.c121 plen = ntohs(ip6->ip6_plen); in ip6_tryforward()
H A Dip6_input.c429 if (ip6->ip6_plen == 0 && *plen == 0) { in ip6_input_hbh()
440 (caddr_t)&ip6->ip6_plen - (caddr_t)ip6); in ip6_input_hbh()
843 plen = (u_int32_t)ntohs(ip6->ip6_plen); in ip6_input()
1058 if (ip6->ip6_plen) { in ip6_process_hopopts()
H A Dicmp6.c465 ip6len = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen); in icmp6_input()
2231 icmp6len = ntohs(ip6->ip6_plen); in icmp6_redirect_input()
2673 ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(struct ip6_hdr)); in icmp6_redirect_output()
2677 sizeof(*ip6), ntohs(ip6->ip6_plen)); in icmp6_redirect_output()
H A Dudp6_usrreq.c251 plen = ntohs(ip6->ip6_plen) - off + sizeof(*ip6); in udp6_input()
933 ip6->ip6_plen = htons((u_short)plen); in udp6_output()
H A Dip6_output.c306 mhip6->ip6_plen = htons((u_short)(fraglen + hlen + in ip6_fragment()
588 ip6->ip6_plen = 0; in ip6_output()
590 ip6->ip6_plen = htons(plen); in ip6_output()
1193 } else if (ip6->ip6_plen == 0) { in ip6_output()
H A Dnd6_nbr.c569 ip6->ip6_plen = htons((u_short)icmp6len); in nd6_ns_output_fib()
1063 ip6->ip6_plen = htons((u_short)icmp6len); in nd6_na_output_fib()
/f-stack/freebsd/contrib/ipfilter/netinet/
H A Dip_rcmd_pxy.c263 slen = ip6->ip6_plen;
264 ip6->ip6_plen = htons(sizeof(*tcp));
318 ip6->ip6_plen = slen;
H A Dip_tftp_pxy.c347 slen = ip6->ip6_plen;
348 ip6->ip6_plen = htons(sizeof(udp));
412 ip6->ip6_plen = slen;
H A Dip_fil_freebsd.c420 ip6->ip6_plen = htons(sizeof(struct tcphdr));
483 fnew.fin_plen = ntohs(ip6->ip6_plen) + hlen;
655 ip6->ip6_plen = htons(iclen - hlen);
/f-stack/freebsd/netpfil/ipfw/nat64/
H A Dnat64_translate.c546 plen = ntohs(ip6->ip6_plen); in nat64_fragment6()
588 ip6->ip6_plen = htons(len + sizeof(ip6f)); in nat64_fragment6()
753 oip6->ip6_plen = htons(plen); in nat64_icmp6_reflect()
898 icmp6->icmp6_cksum = ~in6_cksum_pseudo(ip6, ntohs(ip6->ip6_plen), in nat64_icmp_handle_echo()
1103 ip6->ip6_plen = htons(plen); in nat64_icmp_translate()
1116 eip6->ip6_plen = htons(ntohs(ip.ip_len) - (ip.ip_hl << 2)); in nat64_icmp_translate()
1217 if (proto == IPPROTO_HOPOPTS && ip6->ip6_plen == 0) in nat64_getlasthdr()
1294 ip6.ip6_plen = htons(plen); in nat64_do_handle_ip4()
1508 plen = ntohs(ip6i->ip6_plen); in nat64_handle_icmp6()
1608 plen = ntohs(ip6->ip6_plen); in nat64_do_handle_ip6()
[all …]
/f-stack/freebsd/netinet/
H A Dip6.h90 #define ip6_plen ip6_ctlun.ip6_un1.ip6_un1_plen macro
H A Dtcp_debug.c178 isipv6 ? ntohs(((struct ip6_hdr *)ipgen)->ip6_plen) : in tcp_trace()
H A Dtcp_lro.c306 cs = ip6->ip6_plen; in tcp_lro_rx_csum_fixup()
310 cx = ntohs(ip6->ip6_plen); in tcp_lro_rx_csum_fixup()
497 ip6->ip6_plen = p_len; in tcp_flush_out_le()
1179 tcp_data_len = ntohs(ip6->ip6_plen); in tcp_lro_rx2()
H A Dip_divert.c434 if (((u_short)ntohs(ip6->ip6_plen) > m->m_pkthdr.len)) { in div_output_outbound()
/f-stack/dpdk/examples/ipsec-secgw/
H A Dipip.h50 outip6->ip6_plen = htons(rte_pktmbuf_data_len(m) - in ipip_outbound()
H A Desp.c212 ip6->ip6_plen = htons(rte_pktmbuf_data_len(m) - in esp_inbound_post()
323 ip6->ip6_plen = htons(rte_pktmbuf_data_len(m) - in esp_outbound()
/f-stack/freebsd/netipsec/
H A Dipsec_output.c533 ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(*ip6)); in ipsec6_perform_request()
742 mtod(m, struct ip6_hdr *)->ip6_plen = in ipsec_process_done()
982 ip6->ip6_plen = htons((*mp)->m_pkthdr.len - sizeof(*ip6)); in ipsec_encap()
H A Dxform_ah.c404 if (ip6.ip6_plen == 0) { in ah_massage_headers()
1010 offsetof(struct ip6_hdr, ip6_plen), in ah_output()
1013 m_copyback(m, offsetof(struct ip6_hdr, ip6_plen), in ah_output()
H A Dipsec_input.c532 ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(struct ip6_hdr)); in ipsec6_common_input_cb()
/f-stack/freebsd/netpfil/pf/
H A Dpf_norm.c840 frent->fe_len = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen) - hdrlen; in pf_reassemble6()
910 ip6->ip6_plen = htons(hdrlen - sizeof(struct ip6_hdr) + total); in pf_reassemble6()
923 ip6->ip6_plen = 0; in pf_reassemble6()
929 DPFPRINTF(("complete: %p(%d)\n", m, ntohs(ip6->ip6_plen))); in pf_reassemble6()
1215 plen = ntohs(h->ip6_plen); in pf_normalize_ip6()
H A Dpf_osfp.c127 fp.fp_psize = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen); in pf_osfp_fingerprint_hdr()
/f-stack/freebsd/netpfil/ipfw/
H A Dip_fw_log.c395 ntohs(ip6->ip6_plen) - hlen, in ipfw_log()
H A Dip_fw2.c588 ip6->ip6_plen = htons(plen); in ipfw_send_abort()
698 h6->ip6_plen = htons(sizeof(struct tcphdr)); in ipfw_send_pkt()
1703 iplen = ntohs(ip6->ip6_plen) + sizeof(*ip6); in ipfw_chk()
2337 if (ip6->ip6_plen == 0) { in ipfw_chk()
/f-stack/freebsd/netgraph/
H A Dng_checksum.c434 plen = ntohs(ip6->ip6_plen) + hlen; in checksum_ipv6()

12