Lines Matching defs:hlen

576 send_reject6(struct ip_fw_args *args, int code, u_int hlen, struct ip6_hdr *ip6)
583 tcp = (struct tcphdr *)((char *)ip6 + hlen);
913 * hlen The length of the IP header.
915 u_int hlen = 0; /* hlen >0 means we have an IP pkt */
1019 hlen = sizeof(struct ip6_hdr);
1026 PULLUP_TO(hlen, ulp, struct icmp6_hdr);
1031 PULLUP_TO(hlen, ulp, struct tcphdr);
1039 PULLUP_TO(hlen, ulp, struct sctphdr);
1045 PULLUP_TO(hlen, ulp, struct udphdr);
1051 PULLUP_TO(hlen, ulp, struct ip6_hbh);
1053 hlen += (((struct ip6_hbh *)ulp)->ip6h_len + 1) << 3;
1059 PULLUP_TO(hlen, ulp, struct ip6_rthdr);
1078 hlen += (((struct ip6_rthdr *)ulp)->ip6r_len + 1) << 3;
1084 PULLUP_TO(hlen, ulp, struct ip6_frag);
1086 hlen += sizeof (struct ip6_frag);
1107 PULLUP_TO(hlen, ulp, struct ip6_hbh);
1109 hlen += (((struct ip6_hbh *)ulp)->ip6h_len + 1) << 3;
1115 PULLUP_TO(hlen, ulp, struct ip6_ext);
1117 hlen += (((struct ip6_ext *)ulp)->ip6e_len + 2) << 2;
1123 PULLUP_TO(hlen, ulp, uint32_t); /* SPI, Seq# */
1140 PULLUP_TO(hlen, ulp, struct ip6_ext);
1145 PULLUP_TO(hlen, ulp, struct pim);
1150 PULLUP_TO(hlen, ulp, struct grehdr);
1154 PULLUP_TO(hlen, ulp, struct carp_header);
1164 PULLUP_TO(hlen, ulp, struct ip6_hdr);
1168 PULLUP_TO(hlen, ulp, struct ip);
1178 PULLUP_TO(hlen, ulp, struct ip6_ext);
1193 hlen = ip->ip_hl << 2;
1208 PULLUP_TO(hlen, ulp, struct tcphdr);
1216 PULLUP_TO(hlen, ulp, struct sctphdr);
1222 PULLUP_TO(hlen, ulp, struct udphdr);
1228 PULLUP_TO(hlen, ulp, struct icmphdr);
1715 x = iplen - hlen;
1739 PULLUP_LEN(hlen, ulp, (TCP(ulp)->th_off << 2));
1815 ipfw_log(f, hlen, args, m,
1840 match = (hlen > 0 && ((oif != NULL) ||
1851 if (oif == NULL && hlen > 0 &&
2309 if (hlen > 0 && is_ipv4 && offset == 0 &&
2320 if (hlen > 0 && is_ipv6 &&
2327 args, cmd->arg1, hlen,
2482 int hlen;
2485 hlen = ip->ip_hl << 2;
2487 if (hlen == sizeof(struct ip))
2490 ip->ip_sum = in_cksum(m, hlen);