Lines Matching defs:hlen
461 int hlen,
482 ip->ip_len = htons(ip->ip_len + hlen);
485 ip->ip_sum = in_cksum(m, hlen);
488 filter->ipf_filter.cookie, (mbuf_t*)&m, hlen, proto);
510 ip->ip_len = ntohs(ip->ip_len) - hlen;
516 (*ip_protox[ip->ip_p]->pr_input)(m, hlen);
520 (*ip_protox[ip->ip_p]->pr_input)(m, hlen);
540 int i, hlen, checkif;
600 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
614 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
615 ip->ip_len = ntohs(ip->ip_len) - hlen;
617 ip_proto_dispatch_in(m, hlen, ip->ip_p, inject_filter_ref);
641 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
642 if (hlen < sizeof(struct ip)) { /* minimum header length */
646 if (hlen > m->m_len) {
647 if ((m = m_pullup(m, hlen)) == 0) {
691 sum = in_cksum(m, hlen);
713 if (ip->ip_len < hlen) {
770 if (fr_checkp(ip, hlen, m->m_pkthdr.rcvif, 0, &m1) || !m1) {
836 if (hlen > sizeof (struct ip) && ip_dooptions(m, 0, args.next_hop, &ipforward_rt)) {
838 if (hlen > sizeof (struct ip) && ip_dooptions(m, 0, NULL, &ipforward_rt)) {
986 && hlen == sizeof(struct ip)
1113 ip->ip_len -= hlen;
1151 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
1155 ip->ip_len += hlen;
1159 ip->ip_sum = in_cksum(m, hlen);
1162 ip->ip_len -= hlen;
1167 ip->ip_len -= hlen;
1184 ip->ip_len += hlen;
1242 ip_proto_dispatch_in(m, hlen, ip->ip_p, 0);
1247 ip_proto_dispatch_in(m, hlen, ip->ip_p, 0);
1250 ip_proto_dispatch_in(m, hlen, ip->ip_p, 0);
1285 int hlen = IP_VHL_HL(ip->ip_vhl) << 2;
1294 m->m_data += hlen;
1295 m->m_len -= hlen;