Searched refs:ip_hl (Results 1 - 25 of 140) sorted by relevance

123456

/freebsd-11-stable/contrib/ipfilter/lib/
H A Dprintiphdr.c17 ip->ip_v, ip->ip_hl, ntohs(ip->ip_len), ip->ip_tos,
/freebsd-11-stable/sbin/natd/
H A Dicmp.c77 failHdrLen = (failedDgram->ip_hl << 2);
97 ip->ip_hl = 5;
/freebsd-11-stable/sys/netinet/libalias/
H A Dalias_util.c102 (pip->ip_hl << 2)));
114 nhdr = pip->ip_hl << 2;
H A Dalias_ftp.c236 hlen = (pip->ip_hl + tc->th_off) << 2;
300 hlen = (pip->ip_hl + tc->th_off) << 2;
676 hlen = (pip->ip_hl + tc->th_off) << 2;
747 AddSeq(lnk, delta + slen - dlen, pip->ip_hl,
H A Dalias_smedia.c254 hlen = (pip->ip_hl + tc->th_off) << 2;
409 AddSeq(lnk, delta + new_dlen - dlen, pip->ip_hl, pip->ip_len,
495 hlen = (pip->ip_hl + tc->th_off) << 2;
H A Dalias_proxy.c334 hlen = (pip->ip_hl + tc->th_off) << 2;
356 AddSeq(lnk, delta + slen, pip->ip_hl, pip->ip_len, tc->th_seq,
399 if (pip->ip_hl > (0x0f - OPTION_LEN_INT32))
435 pip->ip_hl += OPTION_LEN_INT32;
H A Dalias_local.h350 void AddSeq(struct alias_link *lnk, int delta, u_int ip_hl,
389 return (&p[iphdr->ip_hl * 4]);
H A Dalias_irc.c181 hlen = (pip->ip_hl + tc->th_off) << 2;
443 AddSeq(lnk, delta + copyat + iCopy - dlen, pip->ip_hl,
/freebsd-11-stable/sys/netinet/
H A Dip.h51 u_char ip_hl:4, /* header length */ member in struct:ip
56 ip_hl:4; /* header length */ member in struct:ip
H A Dip_icmp.h137 #define ICMP_ADVLEN(p) (8 + ((p)->icmp_ip.ip_hl << 2) + 8)
138 /* N.B.: must separately check that ip_hl >= 5 */
146 #define ICMP_ADVLENPREF(p) (8 + ((p)->icmp_ip.ip_hl << 2) + 8 + 8 + 12)
H A Dip_options.c122 cnt = (ip->ip_hl << 2) - sizeof (struct ip);
487 olen = (ip->ip_hl << 2) - sizeof(struct ip);
492 ip->ip_hl = sizeof(struct ip) >> 2;
546 ip->ip_hl = *phlen >> 2;
563 cnt = (ip->ip_hl << 2) - sizeof (struct ip);
726 cnt = (ip->ip_hl << 2) - sizeof (struct ip);
H A Dip_reass.c207 hlen = ip->ip_hl << 2;
431 if (next + (ip->ip_hl << 2) > IP_MAXPACKET) {
473 ip->ip_len = htons((ip->ip_hl << 2) + next);
479 m->m_len += (ip->ip_hl << 2);
480 m->m_data -= (ip->ip_hl << 2);
H A Dip_output.c255 hlen = len; /* ip->ip_hl is updated above */
263 ip->ip_hl = hlen >> 2;
267 hlen = ip->ip_hl << 2;
570 hlen = ip->ip_hl << 2;
614 sctp_delayed_cksum(m, (uint32_t)(ip->ip_hl << 2));
737 int hlen = ip->ip_hl << 2;
854 mhip->ip_hl = mhlen >> 2;
912 offset = ip->ip_hl << 2 ;
/freebsd-11-stable/tools/tools/netmap/
H A Dpkt_hash.c163 tcph = (struct tcphdr *)((uint8_t *)iph + (iph->ip_hl<<2));
170 udph = (struct udphdr *)((uint8_t *)iph + (iph->ip_hl<<2));
178 rc = decode_ip_n_hash((struct ip *)((uint8_t *)iph + (iph->ip_hl<<2)),
182 rc = decode_gre_hash((uint8_t *)iph + (iph->ip_hl<<2),
/freebsd-11-stable/usr.sbin/ppp/
H A Dslcompress.c164 register u_int hlen = ip->ip_hl;
200 *(int *) th != ((int *) &cs->cs_ip)[cs->cs_ip.ip_hl]) {
221 && *(int *) th == ((int *) &cs->cs_ip)[cs->cs_ip.ip_hl])
454 hlen = ip->ip_hl << 2;
501 hlen = cs->cs_ip.ip_hl << 2;
H A Dtcpmss.c157 hlen = pip->ip_hl << 2;
/freebsd-11-stable/sys/net/
H A Dslcompress.c157 u_int hlen = ip->ip_hl;
187 *(int32_t *)th != ((int32_t *)&cs->cs_ip)[cs->cs_ip.ip_hl]) {
209 ((int32_t *)&cs->cs_ip)[cs->cs_ip.ip_hl])
478 hlen = ip->ip_hl << 2;
519 hlen = cs->cs_ip.ip_hl << 2;
/freebsd-11-stable/stand/libsa/
H A Dip.c113 ip->ip_hl = sizeof(*ip) >> 2; /* half-char */
243 hlen = ip->ip_hl << 2;
357 n += ntohs(ipq->ipq_hdr->ip_len) - (ipq->ipq_hdr->ip_hl << 2);
373 ipr->ip_hdr->ip_hl = sizeof (*ipr->ip_hdr) >> 2;
384 hlen = ipq->ipq_hdr->ip_hl << 2;
/freebsd-11-stable/cddl/lib/libdtrace/
H A Dip.d229 ntohs(((struct ip *)p)->ip_len) - (((struct ip *)p)->ip_hl << 2):
247 (((struct ip *)m->m_data)->ip_hl << 2):
272 ipv4_ihl = p == NULL ? 0 : p->ip_hl;
/freebsd-11-stable/tools/tools/net80211/w00t/redir/
H A Dbuddy.c69 if (ih->ip_hl != 5)
/freebsd-11-stable/sys/dev/ixgbe/
H A Dif_fdir.c107 ip_hlen = ip->ip_hl << 2;
/freebsd-11-stable/sys/netipsec/
H A Dudpencap.c151 hlen = ip->ip_hl << 2;
226 hlen = ip->ip_hl << 2;
/freebsd-11-stable/contrib/wpa/src/common/
H A Ddhcp.h16 #define ihl ip_hl
/freebsd-11-stable/sys/netpfil/ipfw/nat64/
H A Dnat64_translate.h79 #define L3HDR(_ip, _t) ((_t)((uint32_t *)(_ip) + (_ip)->ip_hl))
/freebsd-11-stable/sys/kern/
H A Duipc_mbufhash.c135 iphlen = ip->ip_hl << 2;

Completed in 125 milliseconds

123456