Home
last modified time | relevance | path

Searched refs:IP_HL (Results 1 – 12 of 12) sorted by relevance

/titanic_44/usr/src/cmd/ipf/lib/common/
H A Dprintpacket.c52 tcp = (struct tcphdr *)((char *)ip + (IP_HL(ip) << 2));
53 printf("ip %d(%d) %d", ntohs(ip->ip_len), IP_HL(ip) << 2, ip->ip_p);
H A Dipft_tx.c317 olen = buildopts(*cpp, ipopts, (IP_HL(ip) - 5) << 2);
320 IP_HL_A(ip, IP_HL(ip) + (olen >> 2));
324 bcopy((char *)tcp, ((char *)ip) + (IP_HL(ip) << 2),
327 bcopy((char *)ic, ((char *)ip) + (IP_HL(ip) << 2),
H A Dipft_ef.c124 slen = IP_HL(ip) + extra;
H A Dipft_td.c170 slen = IP_HL(ip) + extra + ip->ip_len;
/titanic_44/usr/src/cmd/ipf/tools/
H A Dipftest.c226 hlen = IP_HL(ip) << 2;
775 ip->ip_sum = ipf_cksum((u_short *)ip, IP_HL(ip) << 2);
778 csump += IP_HL(ip) << 2;
H A Dipmon.c1117 hl = IP_HL(ip) << 2;
1206 proto, IP_HL(ipc) << 2, i);
1218 IP_HL(ipc) << 2, i,
1227 IP_HL(ipc) << 2, i);
1233 i - (IP_HL(ipc) << 2),
H A Dipmon_y.y473 tcp = (tcphdr_t *)((char *)ip + (IP_HL(ip) << 2));
/titanic_44/usr/src/uts/common/inet/ipf/netinet/
H A Dip_compat.h729 # define IP_HL(x) ((x)->ip_vhl & 0xf) macro
1781 #ifndef IP_HL
1782 # define IP_HL(x) (x)->ip_hl macro
1799 #define IPMINLEN(i, h) ((i)->ip_len >= (IP_HL(i) * 4 + sizeof(struct h)))
/titanic_44/usr/src/uts/common/inet/ipf/
H A Dip_state.c2399 if (fin->fin_plen < ICMPERR_MAXPKTLEN + ((IP_HL(oip) - 5) << 2))
2406 if ((len <= 0) || ((IP_HL(oip) << 2) > len))
2463 (void) fr_makefrip(IP_HL(oip) << 2, oip, &ofin);
2496 icmp = (icmphdr_t *)((char *)oip + (IP_HL(oip) << 2));
2548 tcp = (tcphdr_t *)((char *)oip + (IP_HL(oip) << 2));
H A Dip_proxy.c741 nlen -= (IP_HL(ip) << 2) + (TCP_OFF(tcp) << 2);
H A Dip_nat.c2883 minlen = IP_HL(oip) << 2;
2921 orgicmp = (icmphdr_t *)((char *)oip + (IP_HL(oip) << 2));
2955 tcp = (tcphdr_t *)((char *)oip + (IP_HL(oip) << 2));
3019 udp = (udphdr_t *)((((char *)oip) + (IP_HL(oip) << 2)));
H A Dfil.c1128 off = IP_HL(ip) << 2;
2965 hlen = IP_HL(ip) << 2;