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

/freebsd-11.0-release/contrib/ipfilter/ipsend/
H A Dip.c148 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2);
165 hlen = IP_HL(ip) << 2;
172 ol = (IP_HL(ip) << 2) - sizeof(*ip);
259 hlen = IP_HL(ip) << 2;
315 bcopy((char *)ip + (IP_HL(ip) << 2),
319 ip->ip_len = (IP_HL(ip) << 2) + thlen;
324 (char *)ip + (IP_HL(ip) << 2), sizeof(udphdr_t));
339 ic = (struct icmp *)((char *)ip + (IP_HL(ip) << 2));
H A Dresend.c44 t = (tcphdr_t *)((char *)ip + (IP_HL(ip) << 2));
125 IP_HL(ip) << 2);
H A Diptests.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(i
[all...]
H A Dipsend.c312 olen = buildopts(optarg, options, (IP_HL(ip) - 5) << 2);
433 udpcksum(ip, udp, ip->ip_len - (IP_HL(ip) << 2));
/freebsd-11.0-release/contrib/ipfilter/lib/
H A Dprintpacket.c74 tcp = (struct tcphdr *)((char *)ip + (IP_HL(ip) << 2));
76 IP_HL(ip) << 2, ip->ip_p);
H A Dipft_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),
/freebsd-11.0-release/contrib/tcpdump/
H A Dip.h57 #define IP_HL(ip) ((ip)->ip_vhl & 0x0f) macro
H A Dprint-sl.c153 hlen = IP_HL(ip);
246 hlen = IP_HL(ip);
H A Dprint-ip.c99 length = (IP_HL(ip) << 2) - sizeof(struct ip);
154 if (IP_HL(ip) == 5)
553 hlen = IP_HL(ipds->ip) * 4;
H A Dprint-icmp.c106 #define ICMP_ADVLEN(p) (8 + (IP_HL(&(p)->icmp_ip) << 2) + 8)
382 hlen = IP_HL(oip) * 4;
H A Dprint-tcp.c839 tlen = EXTRACT_16BITS(&ip->ip_len) - IP_HL(ip) * 4;
/freebsd-11.0-release/contrib/ipfilter/tools/
H A Dipftest.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;
H A Dipmon.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),
H A Dipmon_y.y452 tcp = (tcphdr_t *)((char *)ip + (IP_HL(ip) << 2));
/freebsd-11.0-release/sys/contrib/ipfilter/netinet/
H A Dip_compat.h730 #ifndef IP_HL
731 # define IP_HL(x) (x)->ip_hl macro
748 #define IPMINLEN(i, h) ((i)->ip_len >= (IP_HL(i) * 4 + sizeof(struct h)))
H A Dip_state.c2710 if (fin->fin_plen < ICMPERR_MAXPKTLEN + ((IP_HL(oip) - 5) << 2)) {
2719 if ((len <= 0) || ((IP_HL(oip) << 2) > len)) {
2782 (void) ipf_makefrip(IP_HL(oip) << 2, oip, &ofin);
2824 icmp = (icmphdr_t *)((char *)oip + (IP_HL(oip) << 2));
2853 tcp = (tcphdr_t *)((char *)oip + (IP_HL(oip) << 2));
H A Dip_nat.c3645 minlen = IP_HL(oip) << 2;
3693 orgicmp = (icmphdr_t *)((char *)oip + (IP_HL(oip) << 2));
3732 tcp = (tcphdr_t *)((char *)oip + (IP_HL(oip) << 2));
3807 dp = (((char *)oip) + (IP_HL(oip) << 2));
7486 hlen = IP_HL(fin->fin_ip) << 2;
H A Dfil.c1482 off = IP_HL(ip) << 2;
3461 hlen = IP_HL(ip) << 2;
8593 hlen = IP_HL(ip) << 2;

Completed in 135 milliseconds