Searched refs:IP_HL (Results 1 – 12 of 12) sorted by relevance
/titanic_44/usr/src/cmd/ipf/lib/common/ |
H A D | printpacket.c | 52 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 D | ipft_tx.c | 317 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 D | ipft_ef.c | 124 slen = IP_HL(ip) + extra;
|
H A D | ipft_td.c | 170 slen = IP_HL(ip) + extra + ip->ip_len;
|
/titanic_44/usr/src/cmd/ipf/tools/ |
H A D | ipftest.c | 226 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 D | ipmon.c | 1117 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 D | ipmon_y.y | 473 tcp = (tcphdr_t *)((char *)ip + (IP_HL(ip) << 2));
|
/titanic_44/usr/src/uts/common/inet/ipf/netinet/ |
H A D | ip_compat.h | 729 # 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 D | ip_state.c | 2399 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 D | ip_proxy.c | 741 nlen -= (IP_HL(ip) << 2) + (TCP_OFF(tcp) << 2);
|
H A D | ip_nat.c | 2883 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 D | fil.c | 1128 off = IP_HL(ip) << 2; 2965 hlen = IP_HL(ip) << 2;
|