| /freebsd-14.2/sbin/ipf/ipsend/ |
| H A D | ip.c | 139 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 D | iptests.c | 203 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 D | resend.c | 41 t = (tcphdr_t *)((char *)ip + (IP_HL(ip) << 2)); in dumppacket() 119 IP_HL(ip) << 2); in ip_resend()
|
| H A D | ipsend.c | 282 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 D | printpacket.c | 71 tcp = (struct tcphdr *)((char *)ip + (IP_HL(ip) << 2)); in printpacket() 73 IP_HL(ip) << 2, ip->ip_p); in printpacket()
|
| H A D | ipft_tx.c | 315 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 D | print-sl.c | 151 hlen = IP_HL(ip); in sliplink_print() 252 hlen = IP_HL(ip); in compressed_sl_print()
|
| H A D | print-ip.c | 97 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 D | ip.h | 55 #define IP_HL(ip) (GET_U_1((ip)->ip_vhl) & 0x0f) macro
|
| H A D | print-icmp.c | 100 #define ICMP_ADVLEN(p) (8 + (IP_HL(&(p)->icmp_ip) << 2) + 8) 376 hlen = IP_HL(oip) * 4; in icmp_print()
|
| H A D | print-tcp.c | 933 tlen = GET_BE_U_2(ip->ip_len) - IP_HL(ip) * 4; in tcp_verify_signature()
|
| /freebsd-14.2/sbin/ipf/ipftest/ |
| H A D | ipftest.c | 210 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 D | ipmon.c | 1139 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 D | ipmon_y.y | 446 tcp = (tcphdr_t *)((char *)ip + (IP_HL(ip) << 2)); in check_action()
|
| /freebsd-14.2/sys/netpfil/ipfilter/netinet/ |
| H A D | ip_compat.h | 686 #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 D | ip_state.c | 2648 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 D | ip_nat.c | 3571 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 D | fil.c | 1424 off = IP_HL(ip) << 2; in ipf_pr_tcpcommon() 3367 hlen = IP_HL(ip) << 2; in fr_cksum() 8318 hlen = IP_HL(ip) << 2;
|