Lines Matching defs:hlen
560 ipfw_log(struct ip_fw *f, u_int hlen, struct ether_header *eh,
653 if (hlen == 0) { /* non-ip */
1458 * hlen The length of the IPv4 header.
1459 * hlen >0 means we have an IPv4 packet.
1461 u_int hlen = 0; /* hlen >0 means we have an IP pkt */
1520 hlen = ip->ip_hl << 2;
1525 if (hlen == 0) { /* do not grab addresses for non-ip pkts */
1558 PULLUP_TO(hlen + sizeof(struct tcphdr));
1570 PULLUP_TO(hlen + sizeof(struct udphdr));
1578 PULLUP_TO(hlen + 4); /* type, code and checksum. */
1799 match = (hlen > 0 && offset != 0);
1819 match = (hlen > 0 &&
1826 if (hlen > 0) {
1839 if (hlen > 0) {
1849 if (hlen > 0) {
1866 match = (hlen > 0 &&
1872 if (hlen > 0) {
1908 match = (hlen > 0 && ipopts_match(ip, cmd) );
1912 match = (hlen > 0 && cmd->arg1 == ip->ip_v);
1918 if (hlen > 0) { /* only for IP packets */
1942 match = (hlen > 0 &&
1947 match = (hlen > 0 &&
1990 ipfw_log(f, hlen, args->eh, m, oif);
2141 if (hlen > 0 && offset == 0 &&