Home
last modified time | relevance | path

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

/freebsd-14.2/sbin/ipf/ipsend/
H A Dip.c139 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2); in send_ip()
156 hlen = IP_HL(ip) << 2; in send_ip()
163 ol = (IP_HL(ip) << 2) - sizeof(*ip); in send_ip()
248 hlen = IP_HL(ip) << 2; in send_tcp()
302 bcopy((char *)ip + (IP_HL(ip) << 2), in send_udp()
306 ip->ip_len = (IP_HL(ip) << 2) + thlen; in send_udp()
311 (char *)ip + (IP_HL(ip) << 2), sizeof(udphdr_t)); in send_udp()
324 ic = (struct icmp *)((char *)ip + (IP_HL(ip) << 2)); in send_icmp()
H A Diptests.c203 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2); in ip_test1()
215 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2); in ip_test1()
234 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2); in ip_test1()
246 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2); in ip_test1()
465 ip->ip_len = IP_HL(ip) << 2;
485 ip->ip_len = IP_HL(ip) << 2;
756 u = (udphdr_t *)((char *)ip + (IP_HL(ip) << 2)); in ip_test4()
770 ip->ip_len = (IP_HL(ip) << 2) + ntohs(u->uh_ulen); in ip_test4()
787 ip->ip_len = (IP_HL(ip) << 2) + ntohs(u->uh_ulen); in ip_test4()
805 ip->ip_len = (IP_HL(ip) << 2) + ntohs(u->uh_ulen); in ip_test4()
[all …]
H A Dresend.c41 t = (tcphdr_t *)((char *)ip + (IP_HL(ip) << 2)); in dumppacket()
119 IP_HL(ip) << 2); in ip_resend()
H A Dipsend.c282 olen = buildopts(optarg, options, (IP_HL(ip) - 5) << 2); in main()
403 udpcksum(ip, udp, ip->ip_len - (IP_HL(ip) << 2)); in main()
/freebsd-14.2/sbin/ipf/libipf/
H A Dprintpacket.c71 tcp = (struct tcphdr *)((char *)ip + (IP_HL(ip) << 2)); in printpacket()
73 IP_HL(ip) << 2, ip->ip_p); in printpacket()
H A Dipft_tx.c315 olen = buildopts(*cpp, ipopts, (IP_HL(ip) - 5) << 2); in parseline()
318 IP_HL_A(ip, IP_HL(ip) + (olen >> 2)); in parseline()
323 bcopy((char *)tcp, ((char *)ip) + (IP_HL(ip) << 2), in parseline()
326 bcopy((char *)ic, ((char *)ip) + (IP_HL(ip) << 2), in parseline()
/freebsd-14.2/contrib/tcpdump/
H A Dprint-sl.c151 hlen = IP_HL(ip); in sliplink_print()
252 hlen = IP_HL(ip); in compressed_sl_print()
H A Dprint-ip.c97 length = IP_HL(ip) * 4; in ip_finddst()
153 if (IP_HL(ip) == 5) in nextproto4_cksum()
343 hlen = IP_HL(ip) * 4; in ip_print()
H A Dip.h55 #define IP_HL(ip) (GET_U_1((ip)->ip_vhl) & 0x0f) macro
H A Dprint-icmp.c100 #define ICMP_ADVLEN(p) (8 + (IP_HL(&(p)->icmp_ip) << 2) + 8)
376 hlen = IP_HL(oip) * 4; in icmp_print()
H A Dprint-tcp.c933 tlen = GET_BE_U_2(ip->ip_len) - IP_HL(ip) * 4; in tcp_verify_signature()
/freebsd-14.2/sbin/ipf/ipftest/
H A Dipftest.c210 hlen = IP_HL(ip) << 2; in main()
661 ip->ip_sum = ipf_cksum((u_short *)ip, IP_HL(ip) << 2); in fixv4sums()
662 tmp.fin_hlen = IP_HL(ip) << 2; in fixv4sums()
663 csump += IP_HL(ip) << 2; in fixv4sums()
/freebsd-14.2/sbin/ipf/ipmon/
H A Dipmon.c1139 hl = IP_HL(ip) << 2; in print_ipflog()
1266 proto, IP_HL(ipc) << 2, i); in print_ipflog()
1278 IP_HL(ipc) << 2, i, in print_ipflog()
1287 IP_HL(ipc) << 2, i); in print_ipflog()
1292 i - (IP_HL(ipc) << 2), in print_ipflog()
H A Dipmon_y.y446 tcp = (tcphdr_t *)((char *)ip + (IP_HL(ip) << 2)); in check_action()
/freebsd-14.2/sys/netpfil/ipfilter/netinet/
H A 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)))
H A Dip_state.c2648 if (fin->fin_plen < ICMPERR_MAXPKTLEN + ((IP_HL(oip) - 5) << 2)) { in ipf_checkicmpmatchingstate()
2657 if ((len <= 0) || ((IP_HL(oip) << 2) > len)) { in ipf_checkicmpmatchingstate()
2720 (void) ipf_makefrip(IP_HL(oip) << 2, oip, &ofin); in ipf_checkicmpmatchingstate()
2762 icmp = (icmphdr_t *)((char *)oip + (IP_HL(oip) << 2)); in ipf_checkicmpmatchingstate()
2791 tcp = (tcphdr_t *)((char *)oip + (IP_HL(oip) << 2)); in ipf_checkicmpmatchingstate()
H A Dip_nat.c3571 minlen = IP_HL(oip) << 2; in ipf_nat_icmperrorlookup()
3619 orgicmp = (icmphdr_t *)((char *)oip + (IP_HL(oip) << 2)); in ipf_nat_icmperrorlookup()
3658 tcp = (tcphdr_t *)((char *)oip + (IP_HL(oip) << 2)); in ipf_nat_icmperrorlookup()
3730 dp = (((char *)oip) + (IP_HL(oip) << 2)); in ipf_nat_icmperror()
7319 hlen = IP_HL(fin->fin_ip) << 2; in ipf_nat_decap()
H A Dfil.c1424 off = IP_HL(ip) << 2; in ipf_pr_tcpcommon()
3367 hlen = IP_HL(ip) << 2; in fr_cksum()
8318 hlen = IP_HL(ip) << 2;