Searched refs:ip6_plen (Results 1 - 25 of 58) sorted by relevance

123

/freebsd-10.3-release/contrib/tcpdump/
H A Dprint-frag6.c58 sizeof(struct ip6_hdr) + EXTRACT_16BITS(&ip6->ip6_plen) -
63 sizeof(struct ip6_hdr) + EXTRACT_16BITS(&ip6->ip6_plen) -
H A Dip6.h93 #define ip6_plen ip6_ctlun.ip6_un1.ip6_un1_plen macro
H A Dprint-ip6.c107 payload_len = EXTRACT_16BITS(&ip6->ip6_plen);
H A Dprint-esp.c595 if (!EXTRACT_16BITS(&ip6->ip6_plen))
598 len = sizeof(struct ip6_hdr) + EXTRACT_16BITS(&ip6->ip6_plen);
H A Dprint-tcp.c411 else if (IP_V(ip) == 6 && ip6->ip6_plen) {
776 len32 = htonl(EXTRACT_16BITS(&ip6->ip6_plen));
/freebsd-10.3-release/contrib/ipfilter/lib/
H A 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);
H A Dprintpacket.c31 len = ntohs(((ip6_t *)ip)->ip6_plen);
/freebsd-10.3-release/sys/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.c431 ip6->ip6_plen = htons(sizeof(struct tcphdr));
498 fnew.fin_plen = ntohs(ip6->ip6_plen) + hlen;
676 ip6->ip6_plen = htons(iclen - hlen);
/freebsd-10.3-release/sys/netinet6/
H A Dfrag6.c198 if (ip6->ip6_plen == 0) {
211 (((ntohs(ip6->ip6_plen) - offset) & 0x7) != 0)) {
213 offsetof(struct ip6_hdr, ip6_plen));
322 frgpartlen = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen) - offset;
550 ip6->ip6_plen = htons((u_short)next + offset - sizeof(struct ip6_hdr));
H A Dip6_input.c348 if (ip6->ip6_plen == 0 && *plen == 0) {
359 (caddr_t)&ip6->ip6_plen - (caddr_t)ip6);
905 plen = (u_int32_t)ntohs(ip6->ip6_plen);
1182 if (ip6->ip6_plen) {
H A Dudp6_usrreq.c233 plen = ntohs(ip6->ip6_plen) - off + sizeof(*ip6);
825 ip6->ip6_plen = htons((u_short)plen);
/freebsd-10.3-release/sys/netinet/
H A Dtcp_debug.c176 isipv6 ? ntohs(((struct ip6_hdr *)ipgen)->ip6_plen) :
H A Dtcp_lro.c152 cs = ip6->ip6_plen;
156 cx = ntohs(ip6->ip6_plen);
231 ip6->ip6_plen = p_len;
405 tcp_data_len = ntohs(ip6->ip6_plen);
H A Dip6.h88 #define ip6_plen ip6_ctlun.ip6_un1.ip6_un1_plen macro
/freebsd-10.3-release/sys/dev/mlx5/mlx5_en/
H A Dtcp_tlro.c260 pinfo->ip_len = ntohs(ip6->ip6_plen) + sizeof(*ip6);
546 pinfoa->ip.v6->ip6_plen = htons(IP_MAXPACKET);
549 pinfoa->ip.v6->ip6_plen = htons(temp);
H A Dmlx5_en_rx.c175 ip6->ip6_plen = cpu_to_be16(tot_len -
/freebsd-10.3-release/sys/dev/sfxge/
H A Dsfxge_rx.c396 iph->ip6_plen = htons(iph->ip6_plen);
483 iph->ip6_plen += mbuf->m_len;
515 iph->ip6_plen = ntohs(iph->ip6_plen);
540 pkt_length = ntohs(iph->ip6_plen) + (char *) th - eh;
/freebsd-10.3-release/sys/netipsec/
H A Dipsec_output.c129 mtod(m, struct ip6_hdr *)->ip6_plen =
652 ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(*ip6));
H A Dxform_ah.c422 if (ip6.ip6_plen == 0) {
1063 offsetof(struct ip6_hdr, ip6_plen),
1066 m_copyback(m, offsetof(struct ip6_hdr, ip6_plen),
H A Dxform_ipip.c491 ip6o->ip6_plen = htons(m->m_pkthdr.len - sizeof(*ip6));
/freebsd-10.3-release/sys/netpfil/pf/
H A Dpf_norm.c690 frent->fe_len = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen) - hdrlen;
758 ip6->ip6_plen = htons(hdrlen - sizeof(struct ip6_hdr) + total);
771 ip6->ip6_plen = 0;
777 DPFPRINTF(("complete: %p(%d)", m, ntohs(ip6->ip6_plen)));
1510 if (h->ip6_plen != 0)
1541 if (ntohs(h->ip6_plen) == 0)
1544 plen = ntohs(h->ip6_plen);
1556 plen = ntohs(h->ip6_plen);
/freebsd-10.3-release/usr.sbin/trpt/
H A Dtrpt.c368 isipv6 ? ip6->ip6_plen :
/freebsd-10.3-release/usr.sbin/ppp/
H A Dip.c241 datalen = ntohs(pip6->ip6_plen);
589 datalen = ntohs(pip6->ip6_plen);

Completed in 307 milliseconds

123