Home
last modified time | relevance | path

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

/trueos/contrib/ipfilter/ipsend/
HDip.c151 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2);
168 hlen = IP_HL(ip) << 2;
175 ol = (IP_HL(ip) << 2) - sizeof(*ip);
262 hlen = IP_HL(ip) << 2;
318 bcopy((char *)ip + (IP_HL(ip) << 2),
322 ip->ip_len = (IP_HL(ip) << 2) + thlen;
327 (char *)ip + (IP_HL(ip) << 2), sizeof(udphdr_t));
342 ic = (struct icmp *)((char *)ip + (IP_HL(ip) << 2));
HDiptests.c235 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2);
247 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2);
266 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2);
278 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2);
497 ip->ip_len = IP_HL(ip) << 2;
517 ip->ip_len = IP_HL(ip) << 2;
597 icp = (struct icmp *)((char *)ip + (IP_HL(ip) << 2));
796 u = (udphdr_t *)((char *)ip + (IP_HL(ip) << 2));
810 ip->ip_len = (IP_HL(ip) << 2) + ntohs(u->uh_ulen);
827 ip->ip_len = (IP_HL(ip) << 2) + ntohs(u->uh_ulen);
[all …]
HDresend.c47 t = (tcphdr_t *)((char *)ip + (IP_HL(ip) << 2));
128 IP_HL(ip) << 2);
HDipsend.c312 olen = buildopts(optarg, options, (IP_HL(ip) - 5) << 2);
433 udpcksum(ip, udp, ip->ip_len - (IP_HL(ip) << 2));
/trueos/contrib/ipfilter/lib/
HDprintpacket.c74 tcp = (struct tcphdr *)((char *)ip + (IP_HL(ip) << 2));
76 IP_HL(ip) << 2, ip->ip_p);
HDipft_tx.c323 olen = buildopts(*cpp, ipopts, (IP_HL(ip) - 5) << 2);
326 IP_HL_A(ip, IP_HL(ip) + (olen >> 2));
331 bcopy((char *)tcp, ((char *)ip) + (IP_HL(ip) << 2),
334 bcopy((char *)ic, ((char *)ip) + (IP_HL(ip) << 2),
/trueos/contrib/tcpdump/
HDprint-sl.c147 hlen = IP_HL(ip); in sliplink_print()
237 hlen = IP_HL(ip); in compressed_sl_print()
HDip.h53 #define IP_HL(ip) ((ip)->ip_vhl & 0x0f) macro
HDprint-ip.c101 length = (IP_HL(ip) << 2) - sizeof(struct ip); in ip_finddst()
155 if (IP_HL(ip) == 5) in nextproto4_cksum()
554 hlen = IP_HL(ipds->ip) * 4; in ip_print()
HDprint-icmp.c110 #define ICMP_ADVLEN(p) (8 + (IP_HL(&(p)->icmp_ip) << 2) + 8)
386 hlen = IP_HL(oip) * 4; in icmp_print()
HDprint-tcp.c768 tlen = EXTRACT_16BITS(&ip->ip_len) - IP_HL(ip) * 4; in tcp_verify_signature()
/trueos/contrib/ipfilter/tools/
HDipftest.c225 hlen = IP_HL(ip) << 2;
821 ip->ip_sum = ipf_cksum((u_short *)ip, IP_HL(ip) << 2);
822 tmp.fin_hlen = IP_HL(ip) << 2;
823 csump += IP_HL(ip) << 2;
HDipmon.c1205 hl = IP_HL(ip) << 2;
1332 proto, IP_HL(ipc) << 2, i);
1344 IP_HL(ipc) << 2, i,
1353 IP_HL(ipc) << 2, i);
1358 i - (IP_HL(ipc) << 2),
HDipmon_y.y452 tcp = (tcphdr_t *)((char *)ip + (IP_HL(ip) << 2));
/trueos/sys/contrib/ipfilter/netinet/
HDip_compat.h716 #ifndef IP_HL
717 # define IP_HL(x) (x)->ip_hl macro
734 #define IPMINLEN(i, h) ((i)->ip_len >= (IP_HL(i) * 4 + sizeof(struct h)))
HDip_state.c2700 if (fin->fin_plen < ICMPERR_MAXPKTLEN + ((IP_HL(oip) - 5) << 2)) {
2709 if ((len <= 0) || ((IP_HL(oip) << 2) > len)) {
2772 (void) ipf_makefrip(IP_HL(oip) << 2, oip, &ofin);
2814 icmp = (icmphdr_t *)((char *)oip + (IP_HL(oip) << 2));
2843 tcp = (tcphdr_t *)((char *)oip + (IP_HL(oip) << 2));
HDip_nat.c3650 minlen = IP_HL(oip) << 2;
3698 orgicmp = (icmphdr_t *)((char *)oip + (IP_HL(oip) << 2));
3737 tcp = (tcphdr_t *)((char *)oip + (IP_HL(oip) << 2));
3812 dp = (((char *)oip) + (IP_HL(oip) << 2));
7491 hlen = IP_HL(fin->fin_ip) << 2;
HDfil.c1458 off = IP_HL(ip) << 2;
3427 hlen = IP_HL(ip) << 2;
8558 hlen = IP_HL(ip) << 2;