Home
last modified time | relevance | path

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

/freebsd-12-stable/sbin/ipf/ipsend/
Dip.c140 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2); in send_ip()
157 hlen = IP_HL(ip) << 2; in send_ip()
164 ol = (IP_HL(ip) << 2) - sizeof(*ip); in send_ip()
249 hlen = IP_HL(ip) << 2; in send_tcp()
303 bcopy((char *)ip + (IP_HL(ip) << 2), in send_udp()
307 ip->ip_len = (IP_HL(ip) << 2) + thlen; in send_udp()
312 (char *)ip + (IP_HL(ip) << 2), sizeof(udphdr_t)); in send_udp()
325 ic = (struct icmp *)((char *)ip + (IP_HL(ip) << 2)); in send_icmp()
Diptests.c204 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2); in ip_test1()
216 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2); in ip_test1()
235 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2); in ip_test1()
247 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2); in ip_test1()
466 ip->ip_len = IP_HL(ip) << 2;
486 ip->ip_len = IP_HL(ip) << 2;
562 icp = (struct icmp *)((char *)ip + (IP_HL(ip) << 2)); in ip_test3()
757 u = (udphdr_t *)((char *)ip + (IP_HL(ip) << 2)); in ip_test4()
771 ip->ip_len = (IP_HL(ip) << 2) + ntohs(u->uh_ulen); in ip_test4()
788 ip->ip_len = (IP_HL(ip) << 2) + ntohs(u->uh_ulen); in ip_test4()
[all …]
Dresend.c42 t = (tcphdr_t *)((char *)ip + (IP_HL(ip) << 2)); in dumppacket()
120 IP_HL(ip) << 2); in ip_resend()
Dipsend.c283 olen = buildopts(optarg, options, (IP_HL(ip) - 5) << 2); in main()
404 udpcksum(ip, udp, ip->ip_len - (IP_HL(ip) << 2)); in main()
/freebsd-12-stable/sbin/ipf/libipf/
Dprintpacket.c72 tcp = (struct tcphdr *)((char *)ip + (IP_HL(ip) << 2)); in printpacket()
74 IP_HL(ip) << 2, ip->ip_p); in printpacket()
Dipft_tx.c316 olen = buildopts(*cpp, ipopts, (IP_HL(ip) - 5) << 2); in parseline()
319 IP_HL_A(ip, IP_HL(ip) + (olen >> 2)); in parseline()
324 bcopy((char *)tcp, ((char *)ip) + (IP_HL(ip) << 2), in parseline()
327 bcopy((char *)ic, ((char *)ip) + (IP_HL(ip) << 2), in parseline()
/freebsd-12-stable/contrib/tcpdump/
Dprint-sl.c180 hlen = IP_HL(ip); in sliplink_print()
282 hlen = IP_HL(ip); in compressed_sl_print()
Dip.h55 #define IP_HL(ip) ((ip)->ip_vhl & 0x0f) macro
Dprint-ip.c104 length = (IP_HL(ip) << 2) - sizeof(struct ip); in ip_finddst()
159 if (IP_HL(ip) == 5) in nextproto4_cksum()
569 hlen = IP_HL(ipds->ip) * 4; in ip_print()
Dprint-icmp.c105 #define ICMP_ADVLEN(p) (8 + (IP_HL(&(p)->icmp_ip) << 2) + 8)
381 hlen = IP_HL(oip) * 4; in icmp_print()
Dprint-tcp.c874 tlen = EXTRACT_16BITS(&ip->ip_len) - IP_HL(ip) * 4; in tcp_verify_signature()
/freebsd-12-stable/sbin/ipf/ipftest/
Dipftest.c211 hlen = IP_HL(ip) << 2; in main()
662 ip->ip_sum = ipf_cksum((u_short *)ip, IP_HL(ip) << 2); in fixv4sums()
663 tmp.fin_hlen = IP_HL(ip) << 2; in fixv4sums()
664 csump += IP_HL(ip) << 2; in fixv4sums()
/freebsd-12-stable/sbin/ipf/ipmon/
Dipmon.c1147 hl = IP_HL(ip) << 2; in print_ipflog()
1274 proto, IP_HL(ipc) << 2, i); in print_ipflog()
1286 IP_HL(ipc) << 2, i, in print_ipflog()
1295 IP_HL(ipc) << 2, i); in print_ipflog()
1300 i - (IP_HL(ipc) << 2), in print_ipflog()
Dipmon_y.y447 tcp = (tcphdr_t *)((char *)ip + (IP_HL(ip) << 2)); in check_action()
/freebsd-12-stable/sys/netpfil/ipfilter/netinet/
Dip_compat.h686 #ifndef IP_HL
687 # define IP_HL(x) (x)->ip_hl macro
704 #define IPMINLEN(i, h) ((i)->ip_len >= (IP_HL(i) * 4 + sizeof(struct h)))
Dip_state.c2649 if (fin->fin_plen < ICMPERR_MAXPKTLEN + ((IP_HL(oip) - 5) << 2)) { in ipf_checkicmpmatchingstate()
2658 if ((len <= 0) || ((IP_HL(oip) << 2) > len)) { in ipf_checkicmpmatchingstate()
2721 (void) ipf_makefrip(IP_HL(oip) << 2, oip, &ofin); in ipf_checkicmpmatchingstate()
2763 icmp = (icmphdr_t *)((char *)oip + (IP_HL(oip) << 2)); in ipf_checkicmpmatchingstate()
2792 tcp = (tcphdr_t *)((char *)oip + (IP_HL(oip) << 2)); in ipf_checkicmpmatchingstate()
Dip_nat.c3576 minlen = IP_HL(oip) << 2; in ipf_nat_icmperrorlookup()
3624 orgicmp = (icmphdr_t *)((char *)oip + (IP_HL(oip) << 2)); in ipf_nat_icmperrorlookup()
3663 tcp = (tcphdr_t *)((char *)oip + (IP_HL(oip) << 2)); in ipf_nat_icmperrorlookup()
3735 dp = (((char *)oip) + (IP_HL(oip) << 2)); in ipf_nat_icmperror()
7324 hlen = IP_HL(fin->fin_ip) << 2; in ipf_nat_decap()
Dfil.c1426 off = IP_HL(ip) << 2; in ipf_pr_tcpcommon()
3369 hlen = IP_HL(ip) << 2; in fr_cksum()
8320 hlen = IP_HL(ip) << 2;