/freebsd-10.0-release/sys/netinet/ |
H A D | ip_icmp.c | 216 register unsigned oiphlen = oip->ip_hl << 2; 347 nip->ip_hl = 5; 504 icp->icmp_ip.ip_hl < (sizeof(struct ip) >> 2)) { 630 icp->icmp_ip.ip_hl < (sizeof(struct ip) >> 2)) { 699 int optlen = (ip->ip_hl << 2) - sizeof(struct ip); 886 hlen = ip->ip_hl << 2;
|
H A D | siftr.c | 821 unsigned int ip_hl; local 853 * in the IP packet. ip->ip_hl gives the ip header length 856 ip_hl = (ip->ip_hl << 2); 857 th = (struct tcphdr *)((caddr_t)ip + ip_hl); 956 ip_hl); 965 pn->hash = hash_pkt(*m, ip_hl); 1032 * in the ipv6 packet. ip->ip_hl gives the ip header length
|
H A D | ip_fastfwd.c | 220 hlen = ip->ip_hl << 2; 299 if (ip->ip_hl != (sizeof(struct ip) >> 2)) {
|
H A D | ip_ipsec.c | 338 sctp_delayed_cksum(*m, (uint32_t)(ip->ip_hl << 2));
|
H A D | ip_divert.c | 216 sctp_delayed_cksum(m, (uint32_t)(ip->ip_hl << 2)); 382 if ((((ip->ip_hl << 2) != sizeof(struct ip)) &&
|
/freebsd-10.0-release/sys/netpfil/pf/ |
H A D | pf_norm.c | 365 int hlen = ip->ip_hl << 2; 367 u_int16_t ip_len = ntohs(ip->ip_len) - ip->ip_hl * 4; 419 FR_IP_OFF(frep) + ntohs(frep->fr_ip->ip_len) - frep->fr_ip->ip_hl * 425 frep->fr_ip->ip_hl * 4 - off; 444 if (aftercut < ntohs(frea->fr_ip->ip_len) - frea->fr_ip->ip_hl 484 off += ntohs(frep->fr_ip->ip_len) - frep->fr_ip->ip_hl * 4; 501 if ((frent->fr_ip->ip_hl << 2) + off > IP_MAXPACKET) { 536 hlen = ip->ip_hl << 2; 566 int ip_len = ntohs(h->ip_len) - (h->ip_hl << 2); 672 m_adj(*m0, (h->ip_hl << [all...] |
H A D | if_pflog.c | 250 ip->ip_sum = in_cksum(m, ip->ip_hl << 2);
|
/freebsd-10.0-release/contrib/traceroute/ |
H A D | traceroute.c | 752 outip->ip_hl = (outp - (u_char *)outip) >> 2; 1012 -(outip->ip_hl << 3), 1013 outip->ip_hl << 3, 1297 hlen = ip->ip_hl << 2; 1331 hlen = hip->ip_hl << 2; 1477 hlen = ip->ip_hl << 2;
|
/freebsd-10.0-release/contrib/ipfilter/ipsd/ |
H A D | sdlpi.c | 72 bcopy(ep + (ip->ip_hl << 2), (char *)tcp, sizeof(*tcp));
|
H A D | snit.c | 67 bcopy(ep + 14 + (ip->ip_hl << 2), (char *)tcp, sizeof(*tcp));
|
/freebsd-10.0-release/sbin/dhclient/ |
H A D | packet.c | 118 ip.ip_hl = 5;
|
/freebsd-10.0-release/sbin/nos-tun/ |
H A D | nos-tun.c | 374 ipoff = (ip->ip_hl << 2);
|
/freebsd-10.0-release/usr.sbin/ppp/ |
H A D | ip.c | 273 datalen = ntohs(pip->ip_len) - (pip->ip_hl << 2); 274 payload = packet + (pip->ip_hl << 2); 601 datalen = ntohs(pip->ip_len) - (pip->ip_hl << 2); 602 payload = packet + (pip->ip_hl << 2);
|
/freebsd-10.0-release/usr.sbin/timed/timed/ |
H A D | measure.c | 187 icp = (struct icmp *)(packet + (ip->ip_hl << 2));
|
/freebsd-10.0-release/contrib/ipfilter/iplang/ |
H A D | iplang_y.y | 875 ip->ip_hl = sizeof(ip_t) >> 2; 939 inc = (newhl - ip->ip_hl) << 2; 941 ip->ip_hl = newhl; 1715 ip->ip_hl = (sizeof(*ip) + canip->ah_optlen) >> 2; 1750 ip->ip_sum = chksum((u_short *)ip, ip->ip_hl << 2); 1782 iptmp.ip_len = htons(ip->ip_len - (ip->ip_hl << 2)); 1803 iptmp.ip_len = htons(ip->ip_len - (ip->ip_hl << 2));
|
/freebsd-10.0-release/sbin/ping/ |
H A D | ping.c | 649 ip->ip_hl = sizeof(struct ip) >> 2; 1027 hlen = ip->ip_hl << 2; 1575 hlen = ip->ip_hl << 2; 1580 ip->ip_v, ip->ip_hl, ip->ip_tos, ntohs(ip->ip_len), 1627 hlen = ip->ip_hl << 2;
|
/freebsd-10.0-release/contrib/ipfilter/ |
H A D | mli_ipl.c | 194 hlen = ip->ip_hl << 2; 277 hlen = ip->ip_hl << 2;
|
/freebsd-10.0-release/sys/netgraph/ |
H A D | ng_nat.c | 779 (ip->ip_hl << 2)); 809 ip_len - (ip->ip_hl << 2)));
|
H A D | ng_tcpmss.c | 309 iphlen = ip->ip_hl << 2;
|
/freebsd-10.0-release/sys/netpfil/ipfw/ |
H A D | ip_fw_log.c | 80 #define L3HDR(T, ip) ((T *)((u_int32_t *)(ip) + (ip)->ip_hl)) 534 ntohs(ip->ip_id), iplen - (ip->ip_hl << 2),
|
/freebsd-10.0-release/sys/netinet/libalias/ |
H A D | alias_pptp.c | 446 hlen = (pip->ip_hl + tc->th_off) << 2;
|
H A D | alias_skinny.c | 314 hlen = (pip->ip_hl + tc->th_off) << 2;
|
/freebsd-10.0-release/tools/tools/net80211/wesside/dics/ |
H A D | dics.c | 238 iph->ip_hl = 5;
|
/freebsd-10.0-release/sys/netgraph/netflow/ |
H A D | ng_netflow.c | 771 ((ip->ip_hl << 2) < sizeof(struct ip))) 777 M_CHECK((ip->ip_hl << 2) - sizeof(struct ip)); 806 ((ip->ip_hl << 2) < sizeof(struct ip)))
|
/freebsd-10.0-release/sys/netipsec/ |
H A D | ipsec_input.c | 346 ip->ip_sum = in_cksum(m, ip->ip_hl << 2); 363 m_copydata(m, ip->ip_hl << 2, sizeof(struct ip), 403 m_copydata(m, ip->ip_hl << 2, sizeof(struct ip6_hdr),
|