Lines Matching defs:hlen
212 ip6_fragment(struct ifnet *ifp, struct mbuf *m0, int hlen, u_char nextproto,
228 for (off = hlen; off < tlen; off += mtu) {
241 error = ip6_insertfraghdr(m0, m, hlen, &ip6f);
246 ip6f->ip6f_offlg = htons((u_short)((off - hlen) & ~7));
251 mhip6->ip6_plen = htons((u_short)(mtu + hlen +
258 m->m_pkthdr.len = mtu + hlen + sizeof(*ip6f);
296 int hlen, tlen, len;
959 hlen = unfragpartlen;
963 len = (mtu - hlen - sizeof(struct ip6_frag)) & ~7;
974 if (qslots <= 0 || ((u_int)qslots * (mtu - hlen)
975 < tlen /* - hlen */)) {
988 in6_delayed_cksum(m, plen, hlen);
993 sctp_delayed_cksum(m, hlen);
1022 if ((error = ip6_fragment(ifp, m, hlen, nextproto, len, id)))
1072 ip6_copyexthdr(struct mbuf **mp, caddr_t hdr, int hlen)
1076 if (hlen > MCLBYTES)
1079 if (hlen > MLEN)
1085 m->m_len = hlen;
1087 bcopy(hdr, mtod(m, caddr_t), hlen);
1185 ip6_insertfraghdr(struct mbuf *m0, struct mbuf *m, int hlen,
1190 if (hlen > sizeof(struct ip6_hdr)) {
1192 hlen - sizeof(struct ip6_hdr), M_NOWAIT);
2294 int hlen = (((struct ip6_ext *)src->type)->ip6e_len + 1) << 3;\
2295 dst->type = malloc(hlen, M_IP6OPT, canwait);\
2298 bcopy(src->type, dst->type, hlen);\