Lines Matching refs:plen
679 int plen = 0;
681 plen += m2->m_len;
682 m->m_pkthdr.len = plen;
814 int plen = 0;
817 plen += t->m_len;
818 m->m_pkthdr.len = plen;
875 int plen = 0;
878 plen += t->m_len;
879 m->m_pkthdr.len = plen;
1006 int plen, off, fr_max;
1013 plen = FR_IP6_PLEN(frent);
1014 fr_max = off + plen - (frent->fr_ip6f_hlen - sizeof *ip6);
1016 DPFPRINTF(("%p IPv6 frag plen %u off %u fr_ip6f_hlen %u fr_max %u m_len %u\n", m,
1017 plen, off, frent->fr_ip6f_hlen, fr_max, m->m_len));
1070 if (precut >= plen)
1079 plen -= precut;
1080 ip6->ip6_plen = htons(plen);
1083 for (; frea != NULL && plen + off > FR_IP6_OFF(frea); frea = next) {
1086 aftercut = plen + off - FR_IP6_OFF(frea);
1206 u_int16_t plen, off, fr_max;
1213 plen = ntohs(h->ip6_plen) - (hlen - sizeof *h);
1227 * - 'plen' is the length of the "payload data length" Excluding all the
1232 fr_max = off + plen;
1234 DPFPRINTF(("%p plen %u off %u fr_max %u\n", m,
1235 plen, off, fr_max));
1296 if (precut >= plen) {
1807 u_int32_t jumbolen = 0, plen;
1952 /* jumbo payload option must be present, or plen > 0 */
1954 plen = jumbolen;
1956 plen = ntohs(h->ip6_plen);
1957 if (plen == 0)
1959 if ((int)(sizeof (struct ip6_hdr) + plen) > m->m_pkthdr.len)
1971 plen = ntohs(h->ip6_plen);
1979 if (fragoff + (plen - off) > IPV6_MAXPACKET)
1982 fr_max = fragoff + plen - (off - sizeof(struct ip6_hdr));
1983 DPFPRINTF(("%p IPv6 frag plen %u mff %d off %u fragoff %u fr_max %u\n", m,
1984 plen, mff, off, fragoff, fr_max));