Lines Matching defs:hlen
2216 size_t hlen;
2239 hlen = _IP_VHL_HL(ip->ip_vhl) << 2;
2241 hlen = ip->ip_hl << 2;
2244 if (m->m_len != hlen)
2250 ip->ip_sum = in_cksum(m, hlen);
2252 ip->ip_sum = in_cksum(m, hlen);
2261 if (M_LEADINGSPACE(m->m_next) < hlen) {
2268 n->m_len = hlen;
2271 m->m_pkthdr.len += hlen;
2274 m->m_next->m_len += hlen;
2275 m->m_next->m_data -= hlen;
2276 m->m_pkthdr.len += hlen;
2280 ovbcopy((caddr_t)ip, (caddr_t)oip, hlen);
2282 m->m_pkthdr.len -= (hlen - sizeof(struct ip));
3062 size_t hlen;
3064 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
3066 hlen = ip->ip_hl << 2;
3068 if (state->m->m_len < hlen + sizeof(struct udphdr)) {
3069 state->m = m_pullup(state->m, hlen + sizeof(struct udphdr));
3078 udp = (struct udphdr *)(void *)(((u_int8_t *)ip) + hlen);
3854 int hlen;
3860 hlen = _IP_VHL_HL(ip->ip_vhl) << 2;
3862 hlen = ip->ip_hl << 2;
3864 if (m->m_len > hlen) {
3871 MH_ALIGN(mh, hlen);
3874 m->m_len -= hlen;
3875 m->m_data += hlen;
3878 m->m_len = hlen;
3879 bcopy((caddr_t)ip, mtod(m, caddr_t), hlen);
3880 } else if (m->m_len < hlen) {
3881 m = m_pullup(m, hlen);
3896 int hlen;
3901 hlen = sizeof(struct ip6_hdr);
3902 if (m->m_len > hlen) {
3909 MH_ALIGN(mh, hlen);
3912 m->m_len -= hlen;
3913 m->m_data += hlen;
3916 m->m_len = hlen;
3917 bcopy((caddr_t)ip6, mtod(m, caddr_t), hlen);
3918 } else if (m->m_len < hlen) {
3919 m = m_pullup(m, hlen);
3940 int hlen;
3960 hlen = _IP_VHL_HL(oip->ip_vhl) << 2;
3962 hlen = oip->ip_hl << 2;
3964 if (hlen != sizeof(struct ip))