Lines Matching defs:hlen
323 icmp_input(struct mbuf *m, int hlen)
357 i = hlen + min(icmplen, ICMP_ADVLENMIN);
363 m->m_len -= hlen;
364 m->m_data += hlen;
370 m->m_len += hlen;
371 m->m_data -= hlen;
559 ip->ip_len += hlen; /* since ip_input deducts this */
634 rip_input(m, hlen);
811 int hlen;
822 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
823 m->m_data += hlen;
824 m->m_len -= hlen;
827 icp->icmp_cksum = in_cksum(m, ip->ip_len - hlen);
828 m->m_data -= hlen;
829 m->m_len += hlen;
1090 int hlen;
1103 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
1105 if (m->m_pkthdr.len < hlen + ICMP_MINLEN) {
1111 if (hlen < 20 || hlen > 40 || ip->ip_len != m->m_pkthdr.len)
1148 icp = (struct icmp *)(void *)(((char *)m->m_data) + hlen);
1149 icmplen = m->m_pkthdr.len - hlen;