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

12345

/freebsd-10.0-release/contrib/ipfilter/lib/
H A Dprintiphdr.c17 ip->ip_v, ip->ip_hl, ntohs(ip->ip_len), ip->ip_tos,
/freebsd-10.0-release/sys/netinet/
H A Dip_gre.c259 if (m->m_len < (ip->ip_hl << 2) + msiz) {
260 m = m_pullup(m, (ip->ip_hl << 2) + msiz);
275 bcopy((caddr_t)(ip) + (ip->ip_hl << 2) + msiz, (caddr_t)(ip) +
276 (ip->ip_hl << 2), m->m_len - msiz - (ip->ip_hl << 2));
288 ip->ip_sum = in_cksum(m, (ip->ip_hl << 2));
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_options.c117 cnt = (ip->ip_hl << 2) - sizeof (struct ip);
464 olen = (ip->ip_hl << 2) - sizeof(struct ip);
469 ip->ip_hl = sizeof(struct ip) >> 2;
523 ip->ip_hl = *phlen >> 2;
540 cnt = (ip->ip_hl << 2) - sizeof (struct ip);
703 cnt = (ip->ip_hl << 2) - sizeof (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 */
H A Dip_output.c176 hlen = len; /* ip->ip_hl is updated above */
195 ip->ip_hl = hlen >> 2;
200 hlen = ip->ip_hl << 2;
501 hlen = ip->ip_hl << 2;
593 sctp_delayed_cksum(m, (uint32_t)(ip->ip_hl << 2));
703 int hlen = ip->ip_hl << 2;
810 mhip->ip_hl = mhlen >> 2;
870 offset = ip->ip_hl << 2 ;
H A Dip_input.c405 hlen = ip->ip_hl << 2;
427 hlen = ip->ip_hl << 2;
744 hlen = ip->ip_hl << 2;
861 hlen = ip->ip_hl << 2;
1086 if (next + (ip->ip_hl << 2) > IP_MAXPACKET) {
1126 ip->ip_len = htons((ip->ip_hl << 2) + next);
1132 m->m_len += (ip->ip_hl << 2);
1133 m->m_data -= (ip->ip_hl << 2);
/freebsd-10.0-release/sbin/natd/
H A Dicmp.c77 failHdrLen = (failedDgram->ip_hl << 2);
97 ip->ip_hl = 5;
/freebsd-10.0-release/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.c332 hlen = (pip->ip_hl + tc->th_off) << 2;
354 AddSeq(lnk, delta + slen, pip->ip_hl, pip->ip_len, tc->th_seq,
397 if (pip->ip_hl > (0x0f - OPTION_LEN_INT32))
433 pip->ip_hl += OPTION_LEN_INT32;
H A Dalias_irc.c182 hlen = (pip->ip_hl + tc->th_off) << 2;
444 AddSeq(lnk, delta + copyat + iCopy - dlen, pip->ip_hl,
H A Dalias_local.h344 void AddSeq(struct alias_link *lnk, int delta, u_int ip_hl,
383 return (&p[iphdr->ip_hl * 4]);
/freebsd-10.0-release/contrib/ipfilter/ipsd/Celler/
H A Dip_compat.h162 __u8 ip_hl:4; member in struct:__anon1497
165 __u8 ip_hl:4;
/freebsd-10.0-release/contrib/ipfilter/ipsend/.OLD/
H A Dip_compat.h164 __u8 ip_hl:4; member in struct:__anon1504
167 __u8 ip_hl:4;
/freebsd-10.0-release/contrib/ipfilter/ipsd/
H A Dslinux.c56 bcopy(bp + (ip.ip_hl << 2), (char *)tcp, sizeof(*tcp));
H A Dsbpf.c80 bcopy(ep + 14 + (ip->ip_hl << 2), (char *)tcp, sizeof(*tcp));
/freebsd-10.0-release/sys/net/
H A Dslcompress.c162 register u_int hlen = ip->ip_hl;
192 *(int32_t *)th != ((int32_t *)&cs->cs_ip)[cs->cs_ip.ip_hl]) {
214 ((int32_t *)&cs->cs_ip)[cs->cs_ip.ip_hl])
492 hlen = ip->ip_hl << 2;
533 hlen = cs->cs_ip.ip_hl << 2;
/freebsd-10.0-release/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.c155 hlen = pip->ip_hl << 2;
/freebsd-10.0-release/tools/tools/net80211/w00t/redir/
H A Dbuddy.c69 if (ih->ip_hl != 5)
/freebsd-10.0-release/lib/libstand/
H A Dudp.c91 ip->ip_hl = sizeof(*ip) >> 2; /* half-char */
191 hlen = ip->ip_hl << 2;
/freebsd-10.0-release/sys/ofed/drivers/net/mlx4/
H A Den_frag.c97 iph->ip_sum = in_cksum_skip(mb, iph->ip_hl * 4,
137 ip_hlen = iph->ip_hl * 4;
/freebsd-10.0-release/cddl/lib/libdtrace/
H A Dip.d229 ntohs(((struct ip *)p)->ip_len) - (((struct ip *)p)->ip_hl << 2):
254 ipv4_ihl = p == NULL ? 0 : p->ip_hl;

Completed in 230 milliseconds

12345