Lines Matching defs:hlen
583 ip_proto_dispatch_in_wrapper(struct mbuf *m, int hlen, u_int8_t proto)
585 ip_proto_dispatch_in(m, hlen, proto, 0);
589 ip_proto_dispatch_in(struct mbuf *m, int hlen, u_int8_t proto,
619 ip->ip_len = htons(ip->ip_len + hlen);
622 ip->ip_sum = in_cksum(m, hlen);
626 hlen, proto);
652 ip->ip_len = ntohs(ip->ip_len) - hlen;
660 pr_input(m, hlen);
663 pr_input(m, hlen);
677 unsigned int hlen, checkif;
749 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
769 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
775 ip->ip_len = ntohs(ip->ip_len) - hlen;
777 ip_proto_dispatch_in(m, hlen, ip->ip_p, inject_filter_ref);
800 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
801 if (hlen < sizeof(struct ip)) { /* minimum header length */
805 if (hlen > m->m_len) {
806 if ((m = m_pullup(m, hlen)) == 0) {
834 sum = ip_cksum(m, hlen);
870 if (ip->ip_len < hlen) {
923 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
1001 if (hlen > sizeof (struct ip) && ip_dooptions(m, 0, args.fwa_next_hop)) {
1003 if (hlen > sizeof (struct ip) && ip_dooptions(m, 0, NULL)) {
1166 && hlen == sizeof(struct ip)
1276 ip->ip_len -= hlen;
1314 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
1319 ip->ip_len += hlen;
1327 ip->ip_sum = in_cksum(m, hlen);
1334 ip->ip_len -= hlen;
1339 ip->ip_len -= hlen;
1356 ip->ip_len += hlen;
1416 m = tcp_lro(m, hlen);
1421 ip_proto_dispatch_in(m, hlen, ip->ip_p, 0);
1426 ip_proto_dispatch_in(m, hlen, ip->ip_p, 0);
1430 m = tcp_lro(m, hlen);
1434 ip_proto_dispatch_in(m, hlen, ip->ip_p, 0);
1469 int hlen = IP_VHL_HL(ip->ip_vhl) << 2;
1478 m->m_data += hlen;
1479 m->m_len -= hlen;
2845 ip_cksum(struct mbuf *m, int hlen)
2871 sum = in_cksum(m, hlen);