Home
last modified time | relevance | path

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

12

/xnu-11215.81.4/bsd/netinet/
H A Dip.h95 u_int ip_hl:4, /* header length */
100 ip_hl:4; /* header length */
H A Dip_compat.h106 #define IPMINLEN(i, h) ((i)->ip_len >= ((i)->ip_hl * 4 + sizeof(struct h)))
563 __u8 ip_hl:4;
566 __u8 ip_hl:4;
H A Dip_icmp.h160 #define ICMP_ADVLEN(p) (8 + ((p)->icmp_ip.ip_hl << 2) + 8)
H A Dtcp_input.c3397 memcpy(&saved_hdr, ip, ip->ip_hl << 2); in tcp_input()
5793 memcpy(&saved_hdr, ip, ip->ip_hl << 2); in tcp_input()
5813 memcpy(&saved_hdr, ip, ip->ip_hl << 2); in tcp_input()
6097 ip->ip_len += (ip->ip_hl << 2); in tcp_input()
7545 ASSERT((ip->ip_hl << 2) == sizeof(*ip)); in tcp_input_checksum()
/xnu-11215.81.4/bsd/net/
H A Dnat464_utils.c519 ip4->ip_hl = sizeof(*ip4) >> 2; in nat464_translate_icmp_ip()
531 ip4->ip_sum = pbuf_inet_cksum(pbuf, 0, 0, ip4->ip_hl << 2); in nat464_translate_icmp_ip()
675 ip4->ip_hl = 5; in nat464_translate_64()
706 ip4->ip_sum = pbuf_inet_cksum(pbuf, 0, 0, ip4->ip_hl << 2); in nat464_translate_64()
808 hlen = (uint16_t)(iph->ip_hl << 2); in nat464_translate_proto()
961 hlen2 = (uint16_t)(ip2off + (iph2->ip_hl << 2)); in nat464_translate_proto()
1055 iph->ip_sum = pbuf_inet_cksum(pbuf, 0, 0, iph->ip_hl << 2); in nat464_translate_proto()
H A Dpacket_mangler.c842 ip_pld_len = ntohs(ip.ip_len) - (ip.ip_hl << 2); in pktmnglr_ipfilter_input()
1053 err = mbuf_inet_cksum(data, 0, 0, ip->ip_hl << 2, &ip_sum); // ip sum in chksm_update()
1059 tcp = (struct tcphdr *)(void *)(ptr + (ip->ip_hl << 2)); in chksm_update()
1061 err = mbuf_inet_cksum(data, IPPROTO_TCP, ip->ip_hl << 2, in chksm_update()
1062 ntohs(ip->ip_len) - (ip->ip_hl << 2), &tsum); in chksm_update()
H A Dpf_norm.c509 uint32_t hlen = ip->ip_hl << 2; in pf_reassemble()
511 u_int16_t ip_len = ntohs(ip->ip_len) - ip->ip_hl * 4; in pf_reassemble()
640 FR_IP_OFF(frep) + ntohs(frep->fr_ip->ip_len) - frep->fr_ip->ip_hl * in pf_reassemble()
645 frep->fr_ip->ip_hl * 4 - off; in pf_reassemble()
664 if (aftercut < ntohs(frea->fr_ip->ip_len) - frea->fr_ip->ip_hl in pf_reassemble()
708 off += ntohs(frep->fr_ip->ip_len) - frep->fr_ip->ip_hl * 4; in pf_reassemble()
725 if ((frent->fr_ip->ip_hl << 2) + off > IP_MAXPACKET) { in pf_reassemble()
774 hlen = ip->ip_hl << 2; in pf_reassemble()
807 int ip_len = ntohs(h->ip_len) - (h->ip_hl << 2); in pf_fragcache()
913 *m0 = m_copym(m, 0, h->ip_hl << 2, M_NOWAIT); in pf_fragcache()
[all …]
H A Dif_pflog.c407 ip->ip_sum = in_cksum(m, ip->ip_hl << 2); in pflog_packet()
H A Dif_ports_used.c1533 if ((iphdr.ip_hl << 2) < pkt_data_len) { in if_ports_used_match_mbuf()
1534 pkt_data_len -= iphdr.ip_hl << 2; in if_ports_used_match_mbuf()
1551 error = mbuf_copydata(m, iphdr.ip_hl << 2, sizeof(struct tcphdr), &th); in if_ports_used_match_mbuf()
1577 size_t udp_offset = iphdr.ip_hl << 2; in if_ports_used_match_mbuf()
H A Dpf.c2802 h->ip_hl = sizeof(*h) >> 2; in pf_send_tcp()
4560 ip4->ip_hl = sizeof(*ip4) >> 2; in pf_change_icmp_af()
4572 ip4->ip_sum = pbuf_inet_cksum(pbuf, 0, 0, ip4->ip_hl << 2); in pf_change_icmp_af()
4827 ip4->ip_hl = 5; in pf_nat64_ipv6()
4837 ip4->ip_sum = pbuf_inet_cksum(pbuf, 0, 0, ip4->ip_hl << 2); in pf_nat64_ipv6()
8077 off2 = ipoff2 + (h2.ip_hl << 2); in pf_test_state_icmp()
8079 pd2.off = ipoff2 + (h2.ip_hl << 2); in pf_test_state_icmp()
9334 ip_output_checksum(ifp, m0, ((ip->ip_hl) << 2), ntohs(ip->ip_len), in pf_route()
9350 ip->ip_sum = in_cksum(m0, ip->ip_hl << 2); in pf_route()
9781 off = h->ip_hl << 2; in pf_test()
[all …]
/xnu-11215.81.4/osfmk/kdp/
H A Dkdp_udp.c171 #define ip_hl ip_vhltl.ip_x.ip_xhl macro
591 ip->ip_hl = sizeof(struct kdp_ip) >> 2; in kdp_reply()
594 ip->ip_sum = htons(~ip_sum((unsigned char *)ip, ip->ip_hl)); in kdp_reply()
668 ip->ip_hl = sizeof(struct kdp_ip) >> 2; in kdp_send()
671 ip->ip_sum = htons(~ip_sum((unsigned char *)ip, ip->ip_hl)); in kdp_send()
985 if (ip->ip_hl > (sizeof(struct kdp_ip) >> 2)) { in kdp_poll()
1558 ip->ip_hl = sizeof(struct kdp_ip) >> 2; in create_panic_header()
1561 ip->ip_sum = htons(~ip_sum((unsigned char *)ip, ip->ip_hl)); in create_panic_header()
/xnu-11215.81.4/bsd/netinet6/
H A Dah_output.c244 hlen = ip->ip_hl << 2; in ah4_output()
573 hlen = ip->ip_hl << 2; in ah4_finaldst()
H A Desp_output.c400 hlen = ip->ip_hl << 2; in esp_output()
424 iphlen = inner_ip->ip_hl << 2; in esp_output()
1023 iphlen = ip_hdr->ip_hl << 2; in esp_kpipe_output()
H A Dipsec.c1234 off = ip.ip_hl << 2; in ipsec4_get_ulp()
2288 hlen = ip->ip_hl << 2; in ipsec4_encapsulate()
2338 ip->ip_hl = sizeof(struct ip) >> 2; in ipsec4_encapsulate()
2501 ip->ip_hl = sizeof(struct ip) >> 2; in ipsec64_encapsulate()
2713 hlen = ip->ip_hl << 2; in ipsec46_encapsulate()
3422 hlen = ip->ip_hl << 2; in ipsec4_interface_kpipe_output()
3729 hlen = ip->ip_hl << 2; in ipsec4_output()
4536 hlen = ip->ip_hl << 2; in ipsec4_splithdr()
4641 hlen = oip->ip_hl << 2; in ipsec4_tunnel_validate()
5461 ip->ip_hl = sizeof(struct ip) >> 2; in ipsec_fill_offload_frame()
H A Dah_core.c577 hlen = iphdr.ip_hl << 2; in ah4_calccksum()
H A Dah_input.c157 hlen = (u_int8_t)(ip->ip_hl << 2); in ah4_input()
H A Desp_input.c273 hlen = ip->ip_hl << 2; in esp4_input_extended()
1772 iphlen = ip_hdr->ip_hl << 2; in esp_kpipe_input()
/xnu-11215.81.4/bsd/skywalk/nexus/flowswitch/
H A Dfsw_ip_frag.c291 unfragpartlen = (uint16_t)(ip4->ip_hl << 2); in fsw_ip_frag_reass_v4()
294 fragpartlen = ntohs(ip4->ip_len) - (uint16_t)(ip4->ip_hl << 2); in fsw_ip_frag_reass_v4()
/xnu-11215.81.4/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_classifier.c211 l3hlen = (uint8_t)(iph->ip_hl << 2); in flow_pkt_classify()
H A Dflow_track.c872 ip->ip_hl = sizeof(*ip) >> 2; in flow_track_abort_tcp()
1012 ip->ip_hl = sizeof(*ip) >> 2; in flow_track_abort_quic()
H A Dflow_agg.c127 .ip_hl = 0xf,
1058 sl3hlen = (siph->ip_hl << 2); in can_agg_slowpath()
1353 l3hlen = siph->ip_hl << 2; in flow_agg_merge_hdr()
/xnu-11215.81.4/bsd/skywalk/nexus/netif/
H A Dnx_netif_gso.c665 ip_hlen = (uint8_t)(ip->ip_hl << 2); in netif_gso_ipv4_tcp()
/xnu-11215.81.4/tests/
H A Dnet_test_lib.c261 ip_udp->ip.ip_hl = sizeof(struct ip) >> 2; in ethernet_udp4_frame_populate()
H A Dipsec.m481 ipheader->ip_hl = (sizeof(struct ip) - 4) >> 2;
/xnu-11215.81.4/tests/skywalk/
H A Dskt_xfer.c467 assert(ip_udp->ip.ip_hl == (sizeof(struct ip) >> 2)); in ip_frame_dump()
584 ip_tcp->ip.ip_hl = sizeof(struct ip) >> 2; in tcp_frame_populate()
674 ip_udp->ip.ip_hl = sizeof(struct ip) >> 2; in udp_frame_populate()
734 ip->ip_hl = sizeof(struct ip) >> 2; in ip_frame_populate()

12