Home
last modified time | relevance | path

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

123

/freebsd-10-stable/contrib/ipfilter/lib/
Dipft_tx.c148 mb->mb_len = ntohs(((ip6_t *)ip)->ip6_plen) +
394 ip6->ip6_plen = sizeof(struct tcphdr);
397 ip6->ip6_plen = sizeof(struct udphdr);
400 ip6->ip6_plen = ICMP6ERR_IPICMPHLEN;
504 if (ip6->ip6_plen == 0) {
505 ip6->ip6_plen++;
507 ip6->ip6_plen = htons(ip6->ip6_plen);
Dprintpacket.c31 len = ntohs(((ip6_t *)ip)->ip6_plen);
/freebsd-10-stable/contrib/tcpdump/
Dprint-frag6.c58 sizeof(struct ip6_hdr) + EXTRACT_16BITS(&ip6->ip6_plen) - in frag6_print()
63 sizeof(struct ip6_hdr) + EXTRACT_16BITS(&ip6->ip6_plen) - in frag6_print()
Dip6.h93 #define ip6_plen ip6_ctlun.ip6_un1.ip6_un1_plen macro
Dprint-esp.c595 if (!EXTRACT_16BITS(&ip6->ip6_plen)) in esp_print()
598 len = sizeof(struct ip6_hdr) + EXTRACT_16BITS(&ip6->ip6_plen); in esp_print()
Dprint-ip6.c107 payload_len = EXTRACT_16BITS(&ip6->ip6_plen); in ip6_print()
Dprint-tcp.c411 else if (IP_V(ip) == 6 && ip6->ip6_plen) { in tcp_print()
776 len32 = htonl(EXTRACT_16BITS(&ip6->ip6_plen)); in tcp_verify_signature()
/freebsd-10-stable/sys/netinet6/
Dfrag6.c198 if (ip6->ip6_plen == 0) { in frag6_input()
211 (((ntohs(ip6->ip6_plen) - offset) & 0x7) != 0)) { in frag6_input()
213 offsetof(struct ip6_hdr, ip6_plen)); in frag6_input()
322 frgpartlen = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen) - offset; in frag6_input()
559 ip6->ip6_plen = htons((u_short)next + offset - sizeof(struct ip6_hdr)); in frag6_input()
Dip6_input.c348 if (ip6->ip6_plen == 0 && *plen == 0) { in ip6_input_hbh()
359 (caddr_t)&ip6->ip6_plen - (caddr_t)ip6); in ip6_input_hbh()
905 plen = (u_int32_t)ntohs(ip6->ip6_plen); in ip6_input()
1182 if (ip6->ip6_plen) { in ip6_process_hopopts()
Dip6_output.c251 mhip6->ip6_plen = htons((u_short)(mtu + hlen + in ip6_fragment()
417 ip6->ip6_plen = 0; in ip6_output()
419 ip6->ip6_plen = htons(plen); in ip6_output()
944 } else if (ip6->ip6_plen == 0) { in ip6_output()
Dicmp6.c430 ip6len = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen); in icmp6_input()
2324 int icmp6len = ntohs(ip6->ip6_plen); in icmp6_redirect_input()
2772 ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(struct ip6_hdr)); in icmp6_redirect_output()
2776 sizeof(*ip6), ntohs(ip6->ip6_plen)); in icmp6_redirect_output()
/freebsd-10-stable/sys/contrib/ipfilter/netinet/
Dip_rcmd_pxy.c263 slen = ip6->ip6_plen;
264 ip6->ip6_plen = htons(sizeof(*tcp));
318 ip6->ip6_plen = slen;
Dip_tftp_pxy.c347 slen = ip6->ip6_plen;
348 ip6->ip6_plen = htons(sizeof(udp));
412 ip6->ip6_plen = slen;
Dip_fil_freebsd.c421 ip6->ip6_plen = htons(sizeof(struct tcphdr));
484 fnew.fin_plen = ntohs(ip6->ip6_plen) + hlen;
657 ip6->ip6_plen = htons(iclen - hlen);
/freebsd-10-stable/sys/netinet/
Dtcp_lro.c162 cs = ip6->ip6_plen; in tcp_lro_rx_csum_fixup()
166 cx = ntohs(ip6->ip6_plen); in tcp_lro_rx_csum_fixup()
241 ip6->ip6_plen = p_len; in tcp_lro_flush()
416 tcp_data_len = ntohs(ip6->ip6_plen); in tcp_lro_rx()
Dtcp_debug.c176 isipv6 ? ntohs(((struct ip6_hdr *)ipgen)->ip6_plen) : in tcp_trace()
Dip6.h88 #define ip6_plen ip6_ctlun.ip6_un1.ip6_un1_plen macro
/freebsd-10-stable/sys/dev/sfxge/
Dsfxge_rx.c396 iph->ip6_plen = htons(iph->ip6_plen); in sfxge_lro_deliver()
483 iph->ip6_plen += mbuf->m_len; in sfxge_lro_merge()
515 iph->ip6_plen = ntohs(iph->ip6_plen); in sfxge_lro_start()
540 pkt_length = ntohs(iph->ip6_plen) + (char *) th - eh; in sfxge_lro_try_merge()
/freebsd-10-stable/sys/dev/mlx5/mlx5_en/
Dtcp_tlro.c260 pinfo->ip_len = ntohs(ip6->ip6_plen) + sizeof(*ip6); in tcp_tlro_extract_header()
546 pinfoa->ip.v6->ip6_plen = htons(IP_MAXPACKET); in tcp_tlro_combine()
549 pinfoa->ip.v6->ip6_plen = htons(temp); in tcp_tlro_combine()
/freebsd-10-stable/sys/netpfil/pf/
Dpf_norm.c698 frent->fe_len = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen) - hdrlen; in pf_reassemble6()
766 ip6->ip6_plen = htons(hdrlen - sizeof(struct ip6_hdr) + total); in pf_reassemble6()
779 ip6->ip6_plen = 0; in pf_reassemble6()
785 DPFPRINTF(("complete: %p(%d)", m, ntohs(ip6->ip6_plen))); in pf_reassemble6()
1522 if (h->ip6_plen != 0) in pf_normalize_ip6()
1553 if (ntohs(h->ip6_plen) == 0) in pf_normalize_ip6()
1556 plen = ntohs(h->ip6_plen); in pf_normalize_ip6()
1568 plen = ntohs(h->ip6_plen); in pf_normalize_ip6()
/freebsd-10-stable/sys/netipsec/
Dxform_ah.c422 if (ip6.ip6_plen == 0) { in ah_massage_headers()
1063 offsetof(struct ip6_hdr, ip6_plen), in ah_output()
1066 m_copyback(m, offsetof(struct ip6_hdr, ip6_plen), in ah_output()
Dipsec_output.c129 mtod(m, struct ip6_hdr *)->ip6_plen = in ipsec_process_done()
652 ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(*ip6)); in ipsec6_process_packet()
Dxform_ipip.c491 ip6o->ip6_plen = htons(m->m_pkthdr.len - sizeof(*ip6)); in ipip_output()
/freebsd-10-stable/usr.sbin/trpt/
Dtrpt.c368 isipv6 ? ip6->ip6_plen : in tcp_trace()
/freebsd-10-stable/usr.sbin/ppp/
Dip.c241 datalen = ntohs(pip6->ip6_plen); in FilterCheck()
589 datalen = ntohs(pip6->ip6_plen); in PacketCheck()

123