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

/darwin-on-arm/xnu/bsd/netinet6/
H A Dfrag6.c224 if (ip6->ip6_plen == 0) {
239 (((ntohs(ip6->ip6_plen) - offset) & 0x7) != 0)) {
242 offsetof(struct ip6_hdr, ip6_plen));
330 frgpartlen = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen) - offset;
563 ip6->ip6_plen = htons((u_short)next + offset - sizeof(struct ip6_hdr));
H A Desp_input.c762 if (ntohs(ip6->ip6_plen) == 0) {
874 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - siz);
968 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - taillen);
1147 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - stripsiz);
H A Din6_gif.c184 ip6->ip6_plen = htons((u_short)m->m_pkthdr.len);
H A Dip6_fw.c308 len = ntohs(ip6->ip6_plen) + sizeof(struct ip6_hdr);
768 f->fw_bcnt += ntohs(ip6->ip6_plen);
863 } else if (ip6->ip6_plen) {
864 ack += ntohs(ip6->ip6_plen) + sizeof(*ip6)
H A Dudp6_output.c346 #if 0 /* ip6_plen will be filled in ip6_output. */
347 ip6->ip6_plen = htons((u_short)plen);
H A Dah_input.c658 if (ntohs(ip6->ip6_plen) == 0) {
993 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - stripsiz);
H A Dah_output.c461 ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(struct ip6_hdr));
H A Dip6_input.c943 plen = (u_int32_t)ntohs(ip6->ip6_plen);
962 if (ip6->ip6_plen == 0 && plen == 0) {
973 (caddr_t)&ip6->ip6_plen - (caddr_t)ip6);
1365 if (ip6->ip6_plen) {
H A Dip6_output.c557 ip6->ip6_plen = 0;
559 ip6->ip6_plen = htons(plen);
1367 } else if (ip6->ip6_plen == 0) {
1450 mhip6->ip6_plen = htons((u_short)(len + hlen +
H A Dudp6_usrreq.c228 plen = ntohs(ip6->ip6_plen) - off + sizeof(*ip6);
H A Dicmp6.c658 * Adjust mbuf. ip6_plen will be adjusted in
2406 int icmp6len = ntohs(ip6->ip6_plen);
2729 /* ip6->ip6_plen will be set later */
2894 ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(struct ip6_hdr));
2898 = in6_cksum(m, IPPROTO_ICMPV6, sizeof(*ip6), ntohs(ip6->ip6_plen));
H A Dnd6_nbr.c626 /* ip6->ip6_plen will be set later */
768 ip6->ip6_plen = htons((u_short)icmp6len);
1427 ip6->ip6_plen = htons((u_short)icmp6len);
H A Dipsec.c2484 ip6->ip6_plen = htons(plen);
2486 /* ip6->ip6_plen will be updated in ip6_output() */
2634 ip6->ip6_plen = htons(plen);
2636 /* ip6->ip6_plen will be updated in ip6_output() */
3432 ip6->ip6_plen = htons(plen);
3827 ip6->ip6_plen = htons(plen);
H A Dip6_mroute.c1834 ntohs(eip6->ip6_plen));
/darwin-on-arm/xnu/bsd/net/
H A Dpf_norm.c998 #define FR_IP6_PLEN(fr) (ntohs((fr)->fr_ip6->ip6_plen))
1080 ip6->ip6_plen = htons(plen);
1089 frea->fr_ip6->ip6_plen = htons(FR_IP6_PLEN(frea) -
1155 ip6->ip6_plen = htons(off);
1188 DPFPRINTF(("complete: %p ip6_plen %d m_pkthdr.len %d\n",
1189 m, ntohs(ip6->ip6_plen), m->m_pkthdr.len));
1213 plen = ntohs(h->ip6_plen) - (hlen - sizeof *h);
1352 ntohs(h->ip6_plen) - precut);
1357 h->ip6_plen = htons(ntohs(h->ip6_plen)
[all...]
H A Dif_utun_crypto_ipsec.c928 ip6->ip6_plen = ntohs(ip6->ip6_plen); /* flip len field before calling ip_output */
H A Dpf_osfp.c147 fp.fp_psize = sizeof (struct ip6_hdr) + ntohs(ip6->ip6_plen);
H A Dpf.c2454 h6->ip6_plen = htons(tlen);
4593 len = ntohs(h6->ip6_plen) -
7507 (ntohs(h->ip6_plen) + sizeof (struct ip6_hdr)) <
8645 pd.tot_len = ntohs(h->ip6_plen) + sizeof(struct ip6_hdr);
8681 * we do not support jumbogram yet. if we keep going, zero ip6_plen
8684 if (htons(h->ip6_plen) == 0) {
8697 pd.tot_len = ntohs(h->ip6_plen) + sizeof (struct ip6_hdr);
/darwin-on-arm/xnu/bsd/netinet/
H A Dip6.h119 #define ip6_plen ip6_ctlun.ip6_un1.ip6_un1_plen macro
H A Dtcp_debug.c210 isipv6 ? ((struct ip6_hdr *)ipgen)->ip6_plen :
H A Dtcp_subr.c497 ip6->ip6_plen = sizeof(struct tcphdr);
682 ip6->ip6_plen = htons((u_short)(sizeof (struct tcphdr) +
H A Dudp_usrreq.c766 ip6->ip6_plen = ip->ip_len;
H A Dtcp_input.c1162 tlen = sizeof(*ip6) + ntohs(ip6->ip6_plen) - off0;

Completed in 239 milliseconds