Home
last modified time | relevance | path

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

/freebsd-10-stable/contrib/ipfilter/ipsend/
Dip.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));
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(ip) << 2) + ntohs(u->uh_ulen);
[all …]
Dresend.c47 t = (tcphdr_t *)((char *)ip + (IP_HL(ip) << 2));
128 IP_HL(ip) << 2);
Dipsend.c312 olen = buildopts(optarg, options, (IP_HL(ip) - 5) << 2);
433 udpcksum(ip, udp, ip->ip_len - (IP_HL(ip) << 2));
/freebsd-10-stable/contrib/ipfilter/lib/
Dprintpacket.c74 tcp = (struct tcphdr *)((char *)ip + (IP_HL(ip) << 2));
76 IP_HL(ip) << 2, ip->ip_p);
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-10-stable/contrib/tcpdump/
Dprint-sl.c147 hlen = IP_HL(ip); in sliplink_print()
237 hlen = IP_HL(ip); in compressed_sl_print()
Dip.h53 #define IP_HL(ip) ((ip)->ip_vhl & 0x0f) macro
Dprint-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()
Dprint-icmp.c110 #define ICMP_ADVLEN(p) (8 + (IP_HL(&(p)->icmp_ip) << 2) + 8)
386 hlen = IP_HL(oip) * 4; in icmp_print()
Dprint-tcp.c768 tlen = EXTRACT_16BITS(&ip->ip_len) - IP_HL(ip) * 4; in tcp_verify_signature()
/freebsd-10-stable/contrib/ipfilter/tools/
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;
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),
Dipmon_y.y452 tcp = (tcphdr_t *)((char *)ip + (IP_HL(ip) << 2));
/freebsd-10-stable/sys/contrib/ipfilter/netinet/
Dip_compat.h725 #ifndef IP_HL
726 # define IP_HL(x) (x)->ip_hl macro
743 #define IPMINLEN(i, h) ((i)->ip_len >= (IP_HL(i) * 4 + sizeof(struct h)))
Dip_state.c2714 if (fin->fin_plen < ICMPERR_MAXPKTLEN + ((IP_HL(oip) - 5) << 2)) {
2723 if ((len <= 0) || ((IP_HL(oip) << 2) > len)) {
2786 (void) ipf_makefrip(IP_HL(oip) << 2, oip, &ofin);
2828 icmp = (icmphdr_t *)((char *)oip + (IP_HL(oip) << 2));
2857 tcp = (tcphdr_t *)((char *)oip + (IP_HL(oip) << 2));
Dip_nat.c3654 minlen = IP_HL(oip) << 2;
3702 orgicmp = (icmphdr_t *)((char *)oip + (IP_HL(oip) << 2));
3741 tcp = (tcphdr_t *)((char *)oip + (IP_HL(oip) << 2));
3816 dp = (((char *)oip) + (IP_HL(oip) << 2));
7509 hlen = IP_HL(fin->fin_ip) << 2;
Dfil.c1463 off = IP_HL(ip) << 2;
3433 hlen = IP_HL(ip) << 2;
8561 hlen = IP_HL(ip) << 2;