ip6_plen
ntohs(ip6->ip6_plen), ip6->ip6_nxt, ip6->ip6_hlim);
len = ntohs(ip6->ip6_plen) + sizeof(struct ip6_hdr);
f->fw_bcnt += ntohs(ip6->ip6_plen);
} else if (ip6->ip6_plen) {
ack += ntohs(ip6->ip6_plen) + sizeof(*ip6)
h6->ip6_plen = htons(tlen);
len = h6->ip6_plen - (off - sizeof(*h6));
(ntohs(h->ip6_plen) + sizeof(struct ip6_hdr)) <
if (htons(h->ip6_plen) == 0) {
pd.tot_len = ntohs(h->ip6_plen) + sizeof(struct ip6_hdr);
if (h->ip6_plen != 0)
if (ntohs(h->ip6_plen) == 0)
plen = ntohs(h->ip6_plen);
if (ntohs(h->ip6_plen) == 0 || jumbolen)
plen = ntohs(h->ip6_plen);
fp.fp_psize = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen);
len = ntohs(ip6->ip6_plen) + sizeof(struct ip6_hdr);
isipv6 ? ((struct ip6_hdr *)ipgen)->ip6_plen :
tlen = (sizeof *ip6) + ntohs(ip6->ip6_plen) - off0;
ip6->ip6_plen = sizeof(struct tcphdr);
ip6->ip6_plen = htons((u_short)(sizeof(struct tcphdr) + tlen));
ip6->ip6_plen = htons(tlen - hlen);
if (ip6->ip6_plen == 0) {
(((ntohs(ip6->ip6_plen) - offset) & 0x7) != 0)) {
offsetof(struct ip6_hdr, ip6_plen));
frgpartlen = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen) - offset;
ip6af->ip6af_len = ip6->ip6_plen;
ip6->ip6_plen = htons((u_short)next + offset - sizeof(struct ip6_hdr));
int icmp6len = ntohs(ip6->ip6_plen);
ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(struct ip6_hdr));
= in6_cksum(m, IPPROTO_ICMPV6, sizeof(*ip6), ntohs(ip6->ip6_plen));
ip6->ip6_plen = htons((u_short)m->m_pkthdr.len);
plen = (u_int32_t)ntohs(ip6->ip6_plen);
if (ip6->ip6_plen == 0 && plen == 0) {
(caddr_t)&ip6->ip6_plen - (caddr_t)ip6);
if (ip6->ip6_plen) {
ntohs(eip6->ip6_plen));
ip6->ip6_plen = 0;
ip6->ip6_plen = htons(plen);
} else if (ip6->ip6_plen == 0) {
mhip6->ip6_plen = htons((u_short)(len + hlen +
ip6->ip6_plen = htons((u_short)icmp6len);
ip6->ip6_plen = htons((u_short)icmp6len);
ip6->ip6_plen = htons((u_short)plen);
plen = ntohs(ip6->ip6_plen) - off + sizeof(*ip6);
datalen = ntohs(pip6->ip6_plen);
datalen = ntohs(pip6->ip6_plen);
isipv6 ? ip6->ip6_plen :