Home
last modified time | relevance | path

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

/freebsd/sbin/ipf/ipsend/
H A Dip.c135 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 Diptests.c199 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 Dresend.c37 t = (tcphdr_t *)((char *)ip + (IP_HL(ip) << 2)); in dumppacket()
115 IP_HL(ip) << 2); in ip_resend()
H A Dipsend.c278 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 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.c312 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 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 Dprint-sl.c151 hlen = IP_HL(ip); in sliplink_print()
252 hlen = IP_HL(ip); in compressed_sl_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/sbin/ipf/ipftest/
H A Dipftest.c206 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 Dipmon.c1136 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 Dipmon_y.y446 tcp = (tcphdr_t *)((char *)ip + (IP_HL(ip) << 2)); in check_action()
/freebsd/sys/netpfil/ipfilter/netinet/
H A Dip_compat.h684 #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 Dip_state.c2644 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 Dip_nat.c3567 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 Dfil.c1420 off = IP_HL(ip) << 2; in ipf_pr_tcpcommon()
3363 hlen = IP_HL(ip) << 2; in fr_cksum()
8314 hlen = IP_HL(ip) << 2;