/freebsd/tools/tools/netmap/ |
H A D | pkt_hash.c | 152 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 D | util.c | 102 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 D | ip.c | 110 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 D | icmp.c | 74 failHdrLen = (failedDgram->ip_hl << 2); in SendNeedFragIcmp() 94 ip->ip_hl = 5; in SendNeedFragIcmp()
|
/freebsd/sys/netinet/ |
H A D | ip.h | 50 u_char ip_hl:4, /* header length */ member 55 ip_hl:4; /* header length */ member
|
H A D | ip_options.c | 125 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 D | ip_icmp.h | 136 #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 D | ip_icmp.c | 238 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 D | ip_output.c | 370 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 D | ip_reass.c | 231 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 D | alias_util.c | 101 (pip->ip_hl << 2))); in IpChecksum() 113 nhdr = pip->ip_hl << 2; in TcpChecksum()
|
H A D | alias_ftp.c | 230 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 D | alias_smedia.c | 250 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 D | alias_proxy.c | 328 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 D | alias_irc.c | 179 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasHandleIrcOut() 440 AddSeq(lnk, delta + copyat + iCopy - dlen, pip->ip_hl, in AliasHandleIrcOut()
|
H A D | alias_local.h | 323 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 D | slcompress.c | 155 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 D | slcompress.c | 162 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 D | ip.d | 230 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 D | printiphdr.c | 16 ip->ip_v, ip->ip_hl, ntohs(ip->ip_len), ip->ip_tos, in printiphdr()
|
/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | ip.h | 44 uint8_t ip_hl:4, ip_ver:4; /* (u) */ member
|
/freebsd/sys/netipsec/ |
H A D | ipsec_input.c | 313 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 D | udpencap.c | 154 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 D | virtio_net.h | 320 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 D | nat64_translate.c | 515 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()
|