Searched refs:ip_hl (Results 26 - 50 of 125) sorted by relevance

12345

/freebsd-10.0-release/sys/netinet/
H A Dip_icmp.c216 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 Dsiftr.c821 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 Dip_fastfwd.c220 hlen = ip->ip_hl << 2;
299 if (ip->ip_hl != (sizeof(struct ip) >> 2)) {
H A Dip_ipsec.c338 sctp_delayed_cksum(*m, (uint32_t)(ip->ip_hl << 2));
H A Dip_divert.c216 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 Dpf_norm.c365 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 Dif_pflog.c250 ip->ip_sum = in_cksum(m, ip->ip_hl << 2);
/freebsd-10.0-release/contrib/traceroute/
H A Dtraceroute.c752 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 Dsdlpi.c72 bcopy(ep + (ip->ip_hl << 2), (char *)tcp, sizeof(*tcp));
H A Dsnit.c67 bcopy(ep + 14 + (ip->ip_hl << 2), (char *)tcp, sizeof(*tcp));
/freebsd-10.0-release/sbin/dhclient/
H A Dpacket.c118 ip.ip_hl = 5;
/freebsd-10.0-release/sbin/nos-tun/
H A Dnos-tun.c374 ipoff = (ip->ip_hl << 2);
/freebsd-10.0-release/usr.sbin/ppp/
H A Dip.c273 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 Dmeasure.c187 icp = (struct icmp *)(packet + (ip->ip_hl << 2));
/freebsd-10.0-release/contrib/ipfilter/iplang/
H A Diplang_y.y875 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 Dping.c649 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 Dmli_ipl.c194 hlen = ip->ip_hl << 2;
277 hlen = ip->ip_hl << 2;
/freebsd-10.0-release/sys/netgraph/
H A Dng_nat.c779 (ip->ip_hl << 2));
809 ip_len - (ip->ip_hl << 2)));
H A Dng_tcpmss.c309 iphlen = ip->ip_hl << 2;
/freebsd-10.0-release/sys/netpfil/ipfw/
H A Dip_fw_log.c80 #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 Dalias_pptp.c446 hlen = (pip->ip_hl + tc->th_off) << 2;
H A Dalias_skinny.c314 hlen = (pip->ip_hl + tc->th_off) << 2;
/freebsd-10.0-release/tools/tools/net80211/wesside/dics/
H A Ddics.c238 iph->ip_hl = 5;
/freebsd-10.0-release/sys/netgraph/netflow/
H A Dng_netflow.c771 ((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 Dipsec_input.c346 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),

Completed in 164 milliseconds

12345