Lines Matching defs:hlen
308 icmp_input(struct mbuf *m, int hlen)
337 i = hlen + min(icmplen, ICMP_ADVLENMIN);
343 m->m_len -= hlen;
344 m->m_data += hlen;
350 m->m_len += hlen;
351 m->m_data -= hlen;
593 ip->ip_len += hlen; /* since ip_input deducts this */
668 rip_input(m, hlen);
825 int hlen;
833 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
834 m->m_data += hlen;
835 m->m_len -= hlen;
838 icp->icmp_cksum = in_cksum(m, ip->ip_len - hlen);
839 m->m_data -= hlen;
840 m->m_len += hlen;
1104 int hlen;
1115 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
1117 if (m->m_pkthdr.len < hlen + ICMP_MINLEN) {
1123 if (hlen < 20 || hlen > 40 || ip->ip_len != m->m_pkthdr.len)
1155 icp = (struct icmp *)(((char *)m->m_data) + hlen);
1156 icmplen = m->m_pkthdr.len - hlen;