/freebsd/sbin/ipf/ipsend/ |
H A D | ip.c | 135 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2); in send_ip() 152 hlen = IP_HL(ip) << 2; in send_ip() 159 ol = (IP_HL(ip) << 2) - sizeof(*ip); in send_ip() 244 hlen = IP_HL(ip) << 2; in send_tcp() 298 bcopy((char *)ip + (IP_HL(ip) << 2), in send_udp() 302 ip->ip_len = (IP_HL(ip) << 2) + thlen; in send_udp() 307 (char *)ip + (IP_HL(ip) << 2), sizeof(udphdr_t)); in send_udp() 320 ic = (struct icmp *)((char *)ip + (IP_HL(ip) << 2)); in send_icmp()
|
H A D | iptests.c | 199 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2); in ip_test1() 211 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2); in ip_test1() 230 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2); in ip_test1() 242 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2); in ip_test1() 461 ip->ip_len = IP_HL(ip) << 2; 481 ip->ip_len = IP_HL(ip) << 2; 557 icp = (struct icmp *)((char *)ip + (IP_HL(ip) << 2)); in ip_test3() 752 u = (udphdr_t *)((char *)ip + (IP_HL(ip) << 2)); in ip_test4() 766 ip->ip_len = (IP_HL(ip) << 2) + ntohs(u->uh_ulen); in ip_test4() 783 ip->ip_len = (IP_HL(ip) << 2) + ntohs(u->uh_ulen); in ip_test4() [all …]
|
H A D | resend.c | 37 t = (tcphdr_t *)((char *)ip + (IP_HL(ip) << 2)); in dumppacket() 115 IP_HL(ip) << 2); in ip_resend()
|
H A D | ipsend.c | 278 olen = buildopts(optarg, options, (IP_HL(ip) - 5) << 2); in main() 408 udpcksum(ip, udp, ip->ip_len - (IP_HL(ip) << 2)); in main()
|
/freebsd/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 | 312 olen = buildopts(*cpp, ipopts, (IP_HL(ip) - 5) << 2); in parseline() 315 IP_HL_A(ip, IP_HL(ip) + (olen >> 2)); in parseline() 320 bcopy((char *)tcp, ((char *)ip) + (IP_HL(ip) << 2), in parseline() 323 bcopy((char *)ic, ((char *)ip) + (IP_HL(ip) << 2), in parseline()
|
/freebsd/contrib/tcpdump/ |
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 | print-sl.c | 151 hlen = IP_HL(ip); in sliplink_print() 252 hlen = IP_HL(ip); in compressed_sl_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/sbin/ipf/ipftest/ |
H A D | ipftest.c | 206 hlen = IP_HL(ip) << 2; in main() 657 ip->ip_sum = ipf_cksum((u_short *)ip, IP_HL(ip) << 2); in fixv4sums() 658 tmp.fin_hlen = IP_HL(ip) << 2; in fixv4sums() 659 csump += IP_HL(ip) << 2; in fixv4sums()
|
/freebsd/sbin/ipf/ipmon/ |
H A D | ipmon.c | 1136 hl = IP_HL(ip) << 2; in print_ipflog() 1263 proto, IP_HL(ipc) << 2, i); in print_ipflog() 1275 IP_HL(ipc) << 2, i, in print_ipflog() 1284 IP_HL(ipc) << 2, i); in print_ipflog() 1289 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/sys/netpfil/ipfilter/netinet/ |
H A D | ip_compat.h | 684 #ifndef IP_HL 685 # define IP_HL(x) (x)->ip_hl macro 696 #define IPMINLEN(i, h) ((i)->ip_len >= (IP_HL(i) * 4 + sizeof(struct h)))
|
H A D | ip_state.c | 2644 if (fin->fin_plen < ICMPERR_MAXPKTLEN + ((IP_HL(oip) - 5) << 2)) { in ipf_checkicmpmatchingstate() 2653 if ((len <= 0) || ((IP_HL(oip) << 2) > len)) { in ipf_checkicmpmatchingstate() 2716 (void) ipf_makefrip(IP_HL(oip) << 2, oip, &ofin); in ipf_checkicmpmatchingstate() 2758 icmp = (icmphdr_t *)((char *)oip + (IP_HL(oip) << 2)); in ipf_checkicmpmatchingstate() 2787 tcp = (tcphdr_t *)((char *)oip + (IP_HL(oip) << 2)); in ipf_checkicmpmatchingstate()
|
H A D | ip_nat.c | 3567 minlen = IP_HL(oip) << 2; in ipf_nat_icmperrorlookup() 3615 orgicmp = (icmphdr_t *)((char *)oip + (IP_HL(oip) << 2)); in ipf_nat_icmperrorlookup() 3654 tcp = (tcphdr_t *)((char *)oip + (IP_HL(oip) << 2)); in ipf_nat_icmperrorlookup() 3726 dp = (((char *)oip) + (IP_HL(oip) << 2)); in ipf_nat_icmperror() 7315 hlen = IP_HL(fin->fin_ip) << 2; in ipf_nat_decap()
|
H A D | fil.c | 1420 off = IP_HL(ip) << 2; in ipf_pr_tcpcommon() 3363 hlen = IP_HL(ip) << 2; in fr_cksum() 8314 hlen = IP_HL(ip) << 2;
|