| /freebsd-12-stable/sbin/ipf/ipsend/ |
| D | ip.c | 140 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()
|
| D | iptests.c | 204 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 …]
|
| D | resend.c | 42 t = (tcphdr_t *)((char *)ip + (IP_HL(ip) << 2)); in dumppacket() 120 IP_HL(ip) << 2); in ip_resend()
|
| D | ipsend.c | 283 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/ |
| D | printpacket.c | 72 tcp = (struct tcphdr *)((char *)ip + (IP_HL(ip) << 2)); in printpacket() 74 IP_HL(ip) << 2, ip->ip_p); in printpacket()
|
| D | ipft_tx.c | 316 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/ |
| D | print-sl.c | 180 hlen = IP_HL(ip); in sliplink_print() 282 hlen = IP_HL(ip); in compressed_sl_print()
|
| D | ip.h | 55 #define IP_HL(ip) ((ip)->ip_vhl & 0x0f) macro
|
| D | print-ip.c | 104 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()
|
| D | print-icmp.c | 105 #define ICMP_ADVLEN(p) (8 + (IP_HL(&(p)->icmp_ip) << 2) + 8) 381 hlen = IP_HL(oip) * 4; in icmp_print()
|
| D | print-tcp.c | 874 tlen = EXTRACT_16BITS(&ip->ip_len) - IP_HL(ip) * 4; in tcp_verify_signature()
|
| /freebsd-12-stable/sbin/ipf/ipftest/ |
| D | ipftest.c | 211 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/ |
| D | ipmon.c | 1147 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()
|
| D | ipmon_y.y | 447 tcp = (tcphdr_t *)((char *)ip + (IP_HL(ip) << 2)); in check_action()
|
| /freebsd-12-stable/sys/netpfil/ipfilter/netinet/ |
| 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)))
|
| D | ip_state.c | 2649 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()
|
| D | ip_nat.c | 3576 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()
|
| D | fil.c | 1426 off = IP_HL(ip) << 2; in ipf_pr_tcpcommon() 3369 hlen = IP_HL(ip) << 2; in fr_cksum() 8320 hlen = IP_HL(ip) << 2;
|