Searched refs:IP_HL (Results 1 - 18 of 18) sorted by relevance
/freebsd-11.0-release/contrib/ipfilter/ipsend/ |
H A D | ip.c | 148 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2); 165 hlen = IP_HL(ip) << 2; 172 ol = (IP_HL(ip) << 2) - sizeof(*ip); 259 hlen = IP_HL(ip) << 2; 315 bcopy((char *)ip + (IP_HL(ip) << 2), 319 ip->ip_len = (IP_HL(ip) << 2) + thlen; 324 (char *)ip + (IP_HL(ip) << 2), sizeof(udphdr_t)); 339 ic = (struct icmp *)((char *)ip + (IP_HL(ip) << 2));
|
H A D | resend.c | 44 t = (tcphdr_t *)((char *)ip + (IP_HL(ip) << 2)); 125 IP_HL(ip) << 2);
|
H A D | iptests.c | 235 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2); 247 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2); 266 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2); 278 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2); 497 ip->ip_len = IP_HL(ip) << 2; 517 ip->ip_len = IP_HL(ip) << 2; 597 icp = (struct icmp *)((char *)ip + (IP_HL(ip) << 2)); 796 u = (udphdr_t *)((char *)ip + (IP_HL(ip) << 2)); 810 ip->ip_len = (IP_HL(ip) << 2) + ntohs(u->uh_ulen); 827 ip->ip_len = (IP_HL(i [all...] |
H A D | ipsend.c | 312 olen = buildopts(optarg, options, (IP_HL(ip) - 5) << 2); 433 udpcksum(ip, udp, ip->ip_len - (IP_HL(ip) << 2));
|
/freebsd-11.0-release/contrib/ipfilter/lib/ |
H A D | printpacket.c | 74 tcp = (struct tcphdr *)((char *)ip + (IP_HL(ip) << 2)); 76 IP_HL(ip) << 2, ip->ip_p);
|
H A D | ipft_tx.c | 323 olen = buildopts(*cpp, ipopts, (IP_HL(ip) - 5) << 2); 326 IP_HL_A(ip, IP_HL(ip) + (olen >> 2)); 331 bcopy((char *)tcp, ((char *)ip) + (IP_HL(ip) << 2), 334 bcopy((char *)ic, ((char *)ip) + (IP_HL(ip) << 2),
|
/freebsd-11.0-release/contrib/tcpdump/ |
H A D | ip.h | 57 #define IP_HL(ip) ((ip)->ip_vhl & 0x0f) macro
|
H A D | print-sl.c | 153 hlen = IP_HL(ip); 246 hlen = IP_HL(ip);
|
H A D | print-ip.c | 99 length = (IP_HL(ip) << 2) - sizeof(struct ip); 154 if (IP_HL(ip) == 5) 553 hlen = IP_HL(ipds->ip) * 4;
|
H A D | print-icmp.c | 106 #define ICMP_ADVLEN(p) (8 + (IP_HL(&(p)->icmp_ip) << 2) + 8) 382 hlen = IP_HL(oip) * 4;
|
H A D | print-tcp.c | 839 tlen = EXTRACT_16BITS(&ip->ip_len) - IP_HL(ip) * 4;
|
/freebsd-11.0-release/contrib/ipfilter/tools/ |
H A D | ipftest.c | 225 hlen = IP_HL(ip) << 2; 821 ip->ip_sum = ipf_cksum((u_short *)ip, IP_HL(ip) << 2); 822 tmp.fin_hlen = IP_HL(ip) << 2; 823 csump += IP_HL(ip) << 2;
|
H A D | ipmon.c | 1205 hl = IP_HL(ip) << 2; 1332 proto, IP_HL(ipc) << 2, i); 1344 IP_HL(ipc) << 2, i, 1353 IP_HL(ipc) << 2, i); 1358 i - (IP_HL(ipc) << 2),
|
H A D | ipmon_y.y | 452 tcp = (tcphdr_t *)((char *)ip + (IP_HL(ip) << 2));
|
/freebsd-11.0-release/sys/contrib/ipfilter/netinet/ |
H A D | ip_compat.h | 730 #ifndef IP_HL 731 # define IP_HL(x) (x)->ip_hl macro 748 #define IPMINLEN(i, h) ((i)->ip_len >= (IP_HL(i) * 4 + sizeof(struct h)))
|
H A D | ip_state.c | 2710 if (fin->fin_plen < ICMPERR_MAXPKTLEN + ((IP_HL(oip) - 5) << 2)) { 2719 if ((len <= 0) || ((IP_HL(oip) << 2) > len)) { 2782 (void) ipf_makefrip(IP_HL(oip) << 2, oip, &ofin); 2824 icmp = (icmphdr_t *)((char *)oip + (IP_HL(oip) << 2)); 2853 tcp = (tcphdr_t *)((char *)oip + (IP_HL(oip) << 2));
|
H A D | ip_nat.c | 3645 minlen = IP_HL(oip) << 2; 3693 orgicmp = (icmphdr_t *)((char *)oip + (IP_HL(oip) << 2)); 3732 tcp = (tcphdr_t *)((char *)oip + (IP_HL(oip) << 2)); 3807 dp = (((char *)oip) + (IP_HL(oip) << 2)); 7486 hlen = IP_HL(fin->fin_ip) << 2;
|
H A D | fil.c | 1482 off = IP_HL(ip) << 2; 3461 hlen = IP_HL(ip) << 2; 8593 hlen = IP_HL(ip) << 2;
|
Completed in 135 milliseconds