Home
last modified time | relevance | path

Searched refs:ip_hl (Results 1 – 25 of 132) sorted by relevance

123456

/freebsd-10-stable/sbin/natd/
Dicmp.c77 failHdrLen = (failedDgram->ip_hl << 2); in SendNeedFragIcmp()
97 ip->ip_hl = 5; in SendNeedFragIcmp()
/freebsd-10-stable/sys/netinet/
Dip_options.c120 cnt = (ip->ip_hl << 2) - sizeof (struct ip); in ip_dooptions()
467 olen = (ip->ip_hl << 2) - sizeof(struct ip); in ip_stripoptions()
472 ip->ip_hl = sizeof(struct ip) >> 2; in ip_stripoptions()
526 ip->ip_hl = *phlen >> 2; in ip_insertoptions()
543 cnt = (ip->ip_hl << 2) - sizeof (struct ip); in ip_optcopy()
706 cnt = (ip->ip_hl << 2) - sizeof (struct ip); in ip_checkrouteralert()
Dip.h51 u_char ip_hl:4, /* header length */ member
56 ip_hl:4; /* header length */ member
Dip_output.c186 ip->ip_hl = hlen >> 2; in ip_output()
191 hlen = ip->ip_hl << 2; in ip_output()
504 hlen = ip->ip_hl << 2; in ip_output()
596 sctp_delayed_cksum(m, (uint32_t)(ip->ip_hl << 2)); in ip_output()
706 int hlen = ip->ip_hl << 2; in ip_fragment()
823 mhip->ip_hl = mhlen >> 2; in ip_fragment()
881 offset = ip->ip_hl << 2 ; in in_delayed_cksum()
Dip_icmp.c221 register unsigned oiphlen = oip->ip_hl << 2; in icmp_error()
355 nip->ip_hl = 5; in icmp_error()
517 icp->icmp_ip.ip_hl < (sizeof(struct ip) >> 2)) { in icmp_input()
645 icp->icmp_ip.ip_hl < (sizeof(struct ip) >> 2)) { in icmp_input()
711 int optlen = (ip->ip_hl << 2) - sizeof(struct ip); in icmp_reflect()
898 hlen = ip->ip_hl << 2; in icmp_send()
Dip_input.c376 hlen = ip->ip_hl << 2; in ip_input()
398 hlen = ip->ip_hl << 2; in ip_input()
715 hlen = ip->ip_hl << 2; in ip_input()
834 hlen = ip->ip_hl << 2; in ip_reass()
1059 if (next + (ip->ip_hl << 2) > IP_MAXPACKET) { in ip_reass()
1100 ip->ip_len = htons((ip->ip_hl << 2) + next); in ip_reass()
1106 m->m_len += (ip->ip_hl << 2); in ip_reass()
1107 m->m_data -= (ip->ip_hl << 2); in ip_reass()
Dsiftr.c832 unsigned int ip_hl; in siftr_chkpkt() local
867 ip_hl = (ip->ip_hl << 2); in siftr_chkpkt()
868 th = (struct tcphdr *)((caddr_t)ip + ip_hl); in siftr_chkpkt()
967 ip_hl); in siftr_chkpkt()
976 pn->hash = hash_pkt(*m, ip_hl); in siftr_chkpkt()
/freebsd-10-stable/sys/netinet/libalias/
Dalias_util.c102 (pip->ip_hl << 2))); in IpChecksum()
114 nhdr = pip->ip_hl << 2; in TcpChecksum()
Dalias_ftp.c236 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasHandleFtpOut()
300 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasHandleFtpIn()
676 hlen = (pip->ip_hl + tc->th_off) << 2; in NewFtpMessage()
747 AddSeq(lnk, delta + slen - dlen, pip->ip_hl, in NewFtpMessage()
Dalias_smedia.c254 hlen = (pip->ip_hl + tc->th_off) << 2; in alias_rtsp_out()
409 AddSeq(lnk, delta + new_dlen - dlen, pip->ip_hl, pip->ip_len, in alias_rtsp_out()
495 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasHandleRtspOut()
Dalias_proxy.c332 hlen = (pip->ip_hl + tc->th_off) << 2; in ProxyEncodeTcpStream()
354 AddSeq(lnk, delta + slen, pip->ip_hl, pip->ip_len, tc->th_seq, in ProxyEncodeTcpStream()
397 if (pip->ip_hl > (0x0f - OPTION_LEN_INT32)) in ProxyEncodeIpHeader()
433 pip->ip_hl += OPTION_LEN_INT32; in ProxyEncodeIpHeader()
Dalias_irc.c182 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasHandleIrcOut()
444 AddSeq(lnk, delta + copyat + iCopy - dlen, pip->ip_hl, in AliasHandleIrcOut()
Dalias_local.h344 void AddSeq(struct alias_link *lnk, int delta, u_int ip_hl,
383 return (&p[iphdr->ip_hl * 4]); in ip_next()
/freebsd-10-stable/sys/net/
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-stable/usr.sbin/ppp/
Dslcompress.c164 register u_int hlen = ip->ip_hl; in sl_compress_tcp()
200 *(int *) th != ((int *) &cs->cs_ip)[cs->cs_ip.ip_hl]) { in sl_compress_tcp()
221 && *(int *) th == ((int *) &cs->cs_ip)[cs->cs_ip.ip_hl]) in sl_compress_tcp()
454 hlen = ip->ip_hl << 2; in sl_uncompress_tcp()
501 hlen = cs->cs_ip.ip_hl << 2; in sl_uncompress_tcp()
/freebsd-10-stable/contrib/ipfilter/ipsd/Celler/
Dip_compat.h162 __u8 ip_hl:4; member
165 __u8 ip_hl:4;
/freebsd-10-stable/contrib/ipfilter/ipsend/.OLD/
Dip_compat.h164 __u8 ip_hl:4; member
167 __u8 ip_hl:4;
/freebsd-10-stable/contrib/ipfilter/lib/
Dprintiphdr.c17 ip->ip_v, ip->ip_hl, ntohs(ip->ip_len), ip->ip_tos,
/freebsd-10-stable/lib/libstand/
Dudp.c91 ip->ip_hl = sizeof(*ip) >> 2; /* half-char */
191 hlen = ip->ip_hl << 2;
/freebsd-10-stable/sys/netipsec/
Dipsec_output.c207 const int hlen = (ip->ip_hl << 2); in ipsec_process_done()
512 ip->ip_sum = in_cksum(m, ip->ip_hl << 2); in ipsec4_process_packet()
576 i = ip->ip_hl << 2; in ipsec4_process_packet()
722 i = ip->ip_hl << 2; in ipsec6_process_packet()
/freebsd-10-stable/contrib/ipfilter/ipsd/
Dslinux.c56 bcopy(bp + (ip.ip_hl << 2), (char *)tcp, sizeof(*tcp));
/freebsd-10-stable/cddl/lib/libdtrace/
Dip.d228 ntohs(((struct ip *)p)->ip_len) - (((struct ip *)p)->ip_hl << 2):
253 ipv4_ihl = p == NULL ? 0 : p->ip_hl;
/freebsd-10-stable/tools/tools/net80211/w00t/redir/
Dbuddy.c69 if (ih->ip_hl != 5) in handle_data()
/freebsd-10-stable/contrib/traceroute/
Dtraceroute.c784 outip->ip_hl = (outp - (u_char *)outip) >> 2; in main()
1044 -(outip->ip_hl << 3), in main()
1045 outip->ip_hl << 3, in main()
1329 hlen = ip->ip_hl << 2; in packet_ok()
1363 hlen = hip->ip_hl << 2; in packet_ok()
1574 hlen = ip->ip_hl << 2; in print()
/freebsd-10-stable/contrib/ipfilter/iplang/
Diplang_y.y875 ip->ip_hl = sizeof(ip_t) >> 2; in new_packet()
939 inc = (newhl - ip->ip_hl) << 2;
941 ip->ip_hl = newhl;
1715 ip->ip_hl = (sizeof(*ip) + canip->ah_optlen) >> 2; in end_ipopt()
1750 ip->ip_sum = chksum((u_short *)ip, ip->ip_hl << 2); in end_ipv4()
1782 iptmp.ip_len = htons(ip->ip_len - (ip->ip_hl << 2)); in end_udp()
1803 iptmp.ip_len = htons(ip->ip_len - (ip->ip_hl << 2)); in end_tcp()

123456