Home
last modified time | relevance | path

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

123456

/freebsd/tools/tools/netmap/
H A Dpkt_hash.c152 if (iph->ip_hl < 5 || iph->ip_hl * 4 > iph->ip_len) { in decode_ip_n_hash()
165 tcph = (const struct tcphdr *)((const uint8_t *)iph + (iph->ip_hl<<2)); in decode_ip_n_hash()
172 udph = (const struct udphdr *)((const uint8_t *)iph + (iph->ip_hl<<2)); in decode_ip_n_hash()
180 rc = decode_ip_n_hash((const struct ip *)((const uint8_t *)iph + (iph->ip_hl<<2)), in decode_ip_n_hash()
184 rc = decode_gre_hash((const uint8_t *)iph + (iph->ip_hl<<2), in decode_ip_n_hash()
/freebsd/tests/sys/netinet/libalias/
H A Dutil.c102 p->ip_hl = sizeof(*p)/4; in ip_packet()
106 REQUIRE(p->ip_hl == 5); in ip_packet()
113 int hlen = p->ip_hl << 2; in set_udp()
/freebsd/stand/libsa/
H A Dip.c110 ip->ip_hl = sizeof(*ip) >> 2; /* half-char */ in sendip()
240 hlen = ip->ip_hl << 2; in readipv4()
354 n += ntohs(ipq->ipq_hdr->ip_len) - (ipq->ipq_hdr->ip_hl << 2); in readipv4()
370 ipr->ip_hdr->ip_hl = sizeof (*ipr->ip_hdr) >> 2; in readipv4()
381 hlen = ipq->ipq_hdr->ip_hl << 2; in readipv4()
/freebsd/sbin/natd/
H A Dicmp.c74 failHdrLen = (failedDgram->ip_hl << 2); in SendNeedFragIcmp()
94 ip->ip_hl = 5; in SendNeedFragIcmp()
/freebsd/sys/netinet/
H A Dip.h50 u_char ip_hl:4, /* header length */ member
55 ip_hl:4; /* header length */ member
H A Dip_options.c125 cnt = (ip->ip_hl << 2) - sizeof (struct ip); in ip_dooptions()
486 olen = (ip->ip_hl << 2) - sizeof(struct ip); in ip_stripoptions()
491 ip->ip_hl = sizeof(struct ip) >> 2; in ip_stripoptions()
547 ip->ip_hl = *phlen >> 2; in ip_insertoptions()
564 cnt = (ip->ip_hl << 2) - sizeof (struct ip); in ip_optcopy()
726 cnt = (ip->ip_hl << 2) - sizeof (struct ip); in ip_checkrouteralert()
H A Dip_icmp.h136 #define ICMP_ADVLEN(p) (8 + ((p)->icmp_ip.ip_hl << 2) + 8)
145 #define ICMP_ADVLENPREF(p) (8 + ((p)->icmp_ip.ip_hl << 2) + 8 + 8 + 12)
H A Dip_icmp.c238 oiphlen = oip->ip_hl << 2; in icmp_error()
391 nip->ip_hl = 5; in icmp_error()
555 icp->icmp_ip.ip_hl < (sizeof(struct ip) >> 2)) { in icmp_input()
690 icp->icmp_ip.ip_hl < (sizeof(struct ip) >> 2)) { in icmp_input()
780 int optlen = (ip->ip_hl << 2) - sizeof(struct ip); in icmp_reflect()
1009 hlen = ip->ip_hl << 2; in icmp_send()
H A Dip_output.c370 ip->ip_hl = hlen >> 2; in ip_output()
374 hlen = ip->ip_hl << 2; in ip_output()
691 hlen = ip_hdr.ip_hl << 2; in ip_output()
767 sctp_delayed_cksum(m, (uint32_t)(ip->ip_hl << 2)); in ip_output()
880 int hlen = ip->ip_hl << 2; in ip_fragment()
995 mhip->ip_hl = mhlen >> 2; in ip_fragment()
1054 offset = ip->ip_hl << 2 ; in in_delayed_cksum()
H A Dip_reass.c231 hlen = ip->ip_hl << 2; in ip_reass()
476 if (next + (ip->ip_hl << 2) > IP_MAXPACKET) { in ip_reass()
518 ip->ip_len = htons((ip->ip_hl << 2) + next); in ip_reass()
524 m->m_len += (ip->ip_hl << 2); in ip_reass()
525 m->m_data -= (ip->ip_hl << 2); in ip_reass()
/freebsd/sys/netinet/libalias/
H A Dalias_util.c101 (pip->ip_hl << 2))); in IpChecksum()
113 nhdr = pip->ip_hl << 2; in TcpChecksum()
H A Dalias_ftp.c230 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasHandleFtpOut()
289 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasHandleFtpIn()
664 hlen = (pip->ip_hl + tc->th_off) << 2; in NewFtpMessage()
735 AddSeq(lnk, delta + slen - dlen, pip->ip_hl, in NewFtpMessage()
H A Dalias_smedia.c250 hlen = (pip->ip_hl + tc->th_off) << 2; in alias_rtsp_out()
396 AddSeq(lnk, delta + new_dlen - dlen, pip->ip_hl, pip->ip_len, in alias_rtsp_out()
478 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasHandleRtspOut()
H A Dalias_proxy.c328 hlen = (pip->ip_hl + tc->th_off) << 2; in ProxyEncodeTcpStream()
349 AddSeq(lnk, delta + slen, pip->ip_hl, pip->ip_len, tc->th_seq, in ProxyEncodeTcpStream()
391 if (pip->ip_hl > (0x0f - OPTION_LEN_INT32)) in ProxyEncodeIpHeader()
427 pip->ip_hl += OPTION_LEN_INT32; in ProxyEncodeIpHeader()
H A Dalias_irc.c179 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasHandleIrcOut()
440 AddSeq(lnk, delta + copyat + iCopy - dlen, pip->ip_hl, in AliasHandleIrcOut()
H A Dalias_local.h323 void AddSeq(struct alias_link *lnk, int delta, u_int ip_hl,
361 return (&p[iphdr->ip_hl * 4]); in ip_next()
/freebsd/sys/net/
H A Dslcompress.c155 u_int hlen = ip->ip_hl; in sl_compress_tcp()
185 *(int32_t *)th != ((int32_t *)&cs->cs_ip)[cs->cs_ip.ip_hl]) { in sl_compress_tcp()
207 ((int32_t *)&cs->cs_ip)[cs->cs_ip.ip_hl]) in sl_compress_tcp()
473 hlen = ip->ip_hl << 2; in sl_uncompress_tcp_core()
514 hlen = cs->cs_ip.ip_hl << 2; in sl_uncompress_tcp_core()
/freebsd/usr.sbin/ppp/
H A Dslcompress.c162 register u_int hlen = ip->ip_hl; in sl_compress_tcp()
198 *(int *) th != ((int *) &cs->cs_ip)[cs->cs_ip.ip_hl]) { in sl_compress_tcp()
219 && *(int *) th == ((int *) &cs->cs_ip)[cs->cs_ip.ip_hl]) in sl_compress_tcp()
452 hlen = ip->ip_hl << 2; in sl_uncompress_tcp()
499 hlen = cs->cs_ip.ip_hl << 2; in sl_uncompress_tcp()
/freebsd/cddl/lib/libdtrace/
H A Dip.d230 ntohs(((struct ip *)p)->ip_len) - (((struct ip *)p)->ip_hl << 2):
248 (((struct ip *)m->m_data)->ip_hl << 2):
273 ipv4_ihl = p == NULL ? 0 : p->ip_hl;
/freebsd/sbin/ipf/libipf/
H A Dprintiphdr.c16 ip->ip_v, ip->ip_hl, ntohs(ip->ip_len), ip->ip_tos, in printiphdr()
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dip.h44 uint8_t ip_hl:4, ip_ver:4; /* (u) */ member
/freebsd/sys/netipsec/
H A Dipsec_input.c313 memcpy(&spi, (caddr_t)ip + (ip->ip_hl << 2), sizeof(spi)); in ipsec4_ctlinput()
379 ip->ip_sum = in_cksum(m, ip->ip_hl << 2); in ipsec4_common_input_cb()
412 m_striphdr(m, 0, ip->ip_hl << 2); in ipsec4_common_input_cb()
424 m_striphdr(m, 0, ip->ip_hl << 2); in ipsec4_common_input_cb()
H A Dudpencap.c154 hlen = ip->ip_hl << 2; in udp_ipsec_input()
256 hlen = ip->ip_hl << 2; in udp_ipsec_output()
/freebsd/sys/dev/virtio/network/
H A Dvirtio_net.h320 offset = ip_start + (ip->ip_hl << 2); in virtio_net_rx_csum_by_parse()
443 *start = offset + (ip->ip_hl << 2); in virtio_net_tx_offload_ctx()
/freebsd/sys/netpfil/ipfw/nat64/
H A Dnat64_translate.c515 ip->ip_hl = sizeof(*ip) >> 2; in nat64_init_ip4hdr()
805 if (m->m_len < (ip->ip_hl << 2)) { in nat64_icmp_reflect()
809 icmp = mtodo(m, ip->ip_hl << 2); in nat64_icmp_reflect()
825 len = (m->m_pkthdr.len > NAT64_ICMP_PLEN) ? (ip->ip_hl << 2) + 8: in nat64_icmp_reflect()
843 oip->ip_hl = sizeof(struct ip) >> 2; in nat64_icmp_reflect()
1051 hlen += ip.ip_hl << 2; /* Skip inner IP header */ in nat64_icmp_translate()
1111 eip6->ip6_plen = htons(ntohs(ip.ip_len) - (ip.ip_hl << 2)); in nat64_icmp_translate()
1248 hlen = ip->ip_hl << 2; in nat64_do_handle_ip4()

123456