| /xnu-8019.80.24/bsd/netinet/ |
| H A D | ip.h | 95 u_int ip_hl:4, /* header length */ 100 ip_hl:4; /* header length */
|
| H A D | ip_compat.h | 106 #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 D | ip_icmp.h | 160 #define ICMP_ADVLEN(p) (8 + ((p)->icmp_ip.ip_hl << 2) + 8)
|
| H A D | tcp_input.c | 3136 memcpy(&saved_hdr, ip, ip->ip_hl << 2); in tcp_input() 4226 memcpy(&saved_hdr, ip, ip->ip_hl << 2); in tcp_input() 5190 memcpy(&saved_hdr, ip, ip->ip_hl << 2); in tcp_input() 5210 memcpy(&saved_hdr, ip, ip->ip_hl << 2); in tcp_input() 6887 ASSERT((ip->ip_hl << 2) == sizeof(*ip)); in tcp_input_checksum()
|
| H A D | udp_usrreq.c | 2716 ASSERT((ip->ip_hl << 2) == sizeof(*ip)); in udp_input_checksum() 2949 ip->ip_hl = (sizeof(struct ip) >> 2); in udp_fill_keepalive_offload_frames()
|
| H A D | ip_output.c | 1419 hlen = ip->ip_hl << 2; in ip_output_list() 1811 hlen = ip->ip_hl << 2; in ip_fragment()
|
| /xnu-8019.80.24/bsd/net/ |
| H A D | nat464_utils.c | 513 ip4->ip_hl = sizeof(*ip4) >> 2; in nat464_translate_icmp_ip() 525 ip4->ip_sum = pbuf_inet_cksum(pbuf, 0, 0, ip4->ip_hl << 2); in nat464_translate_icmp_ip() 669 ip4->ip_hl = 5; in nat464_translate_64() 700 ip4->ip_sum = pbuf_inet_cksum(pbuf, 0, 0, ip4->ip_hl << 2); in nat464_translate_64() 802 hlen = (uint16_t)(iph->ip_hl << 2); in nat464_translate_proto() 955 hlen2 = (uint16_t)(ip2off + (iph2->ip_hl << 2)); in nat464_translate_proto() 1049 iph->ip_sum = pbuf_inet_cksum(pbuf, 0, 0, iph->ip_hl << 2); in nat464_translate_proto()
|
| H A D | packet_mangler.c | 889 ip_pld_len = ntohs(ip.ip_len) - (ip.ip_hl << 2); in pktmnglr_ipfilter_input() 1100 err = mbuf_inet_cksum(data, 0, 0, ip->ip_hl << 2, &ip_sum); // ip sum in chksm_update() 1106 tcp = (struct tcphdr *)(void *)(ptr + (ip->ip_hl << 2)); in chksm_update() 1108 err = mbuf_inet_cksum(data, IPPROTO_TCP, ip->ip_hl << 2, in chksm_update() 1109 ntohs(ip->ip_len) - (ip->ip_hl << 2), &tsum); in chksm_update()
|
| H A D | pf_norm.c | 509 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 D | if_pflog.c | 373 ip->ip_sum = in_cksum(m, ip->ip_hl << 2); in pflog_packet()
|
| H A D | if_ports_used.c | 1268 error = mbuf_copydata(m, iphdr.ip_hl << 2, sizeof(struct tcphdr), &th); in if_ports_used_match_mbuf() 1286 size_t udp_offset = iphdr.ip_hl << 2; in if_ports_used_match_mbuf()
|
| H A D | pf.c | 2707 h->ip_hl = sizeof(*h) >> 2; in pf_send_tcp() 4445 ip4->ip_hl = sizeof(*ip4) >> 2; in pf_change_icmp_af() 4457 ip4->ip_sum = pbuf_inet_cksum(pbuf, 0, 0, ip4->ip_hl << 2); in pf_change_icmp_af() 4712 ip4->ip_hl = 5; in pf_nat64_ipv6() 4722 ip4->ip_sum = pbuf_inet_cksum(pbuf, 0, 0, ip4->ip_hl << 2); in pf_nat64_ipv6() 7912 off2 = ipoff2 + (h2.ip_hl << 2); in pf_test_state_icmp() 7914 pd2.off = ipoff2 + (h2.ip_hl << 2); in pf_test_state_icmp() 9170 ip_output_checksum(ifp, m0, ((ip->ip_hl) << 2), ntohs(ip->ip_len), in pf_route() 9186 ip->ip_sum = in_cksum(m0, ip->ip_hl << 2); in pf_route() 9617 off = h->ip_hl << 2; in pf_test() [all …]
|
| /xnu-8019.80.24/osfmk/kdp/ |
| H A D | kdp_udp.c | 169 #define ip_hl ip_vhltl.ip_x.ip_xhl macro 589 ip->ip_hl = sizeof(struct kdp_ip) >> 2; in kdp_reply() 592 ip->ip_sum = htons(~ip_sum((unsigned char *)ip, ip->ip_hl)); in kdp_reply() 666 ip->ip_hl = sizeof(struct kdp_ip) >> 2; in kdp_send() 669 ip->ip_sum = htons(~ip_sum((unsigned char *)ip, ip->ip_hl)); in kdp_send() 983 if (ip->ip_hl > (sizeof(struct kdp_ip) >> 2)) { in kdp_poll() 1556 ip->ip_hl = sizeof(struct kdp_ip) >> 2; in create_panic_header() 1559 ip->ip_sum = htons(~ip_sum((unsigned char *)ip, ip->ip_hl)); in create_panic_header()
|
| /xnu-8019.80.24/bsd/netinet6/ |
| H A D | ah_output.c | 244 hlen = ip->ip_hl << 2; in ah4_output() 573 hlen = ip->ip_hl << 2; in ah4_finaldst()
|
| H A D | esp_output.c | 396 hlen = ip->ip_hl << 2; in esp_output() 420 iphlen = inner_ip->ip_hl << 2; in esp_output()
|
| H A D | ipsec.c | 1239 off = ip.ip_hl << 2; in ipsec4_get_ulp() 2313 hlen = ip->ip_hl << 2; in ipsec4_encapsulate() 2363 ip->ip_hl = sizeof(struct ip) >> 2; in ipsec4_encapsulate() 2523 ip->ip_hl = sizeof(struct ip) >> 2; in ipsec64_encapsulate() 2735 hlen = ip->ip_hl << 2; in ipsec46_encapsulate() 3459 hlen = ip->ip_hl << 2; in ipsec4_output() 4253 hlen = ip->ip_hl << 2; in ipsec4_splithdr() 4358 hlen = oip->ip_hl << 2; in ipsec4_tunnel_validate() 5080 ip->ip_hl = sizeof(struct ip) >> 2; in ipsec_fill_offload_frame()
|
| H A D | ah_input.c | 155 hlen = (u_int8_t)(ip->ip_hl << 2); in ah4_input()
|
| H A D | ah_core.c | 1270 hlen = iphdr.ip_hl << 2; in ah4_calccksum()
|
| H A D | esp_input.c | 267 hlen = ip->ip_hl << 2; in esp4_input_extended()
|
| /xnu-8019.80.24/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_classifier.c | 204 l3hlen = (uint8_t)(iph->ip_hl << 2); in flow_pkt_classify()
|
| H A D | flow_agg.c | 99 .ip_hl = 0xf, 977 sl3hlen = (siph->ip_hl << 2); in can_agg_slowpath() 1234 l3hlen = siph->ip_hl << 2; in flow_agg_merge_hdr()
|
| /xnu-8019.80.24/bsd/skywalk/nexus/flowswitch/ |
| H A D | fsw_ip_frag.c | 293 unfragpartlen = (uint16_t)(ip4->ip_hl << 2); in fsw_ip_frag_reass_v4() 296 fragpartlen = ntohs(ip4->ip_len) - (uint16_t)(ip4->ip_hl << 2); in fsw_ip_frag_reass_v4()
|
| /xnu-8019.80.24/bsd/skywalk/nexus/netif/ |
| H A D | nx_netif_gso.c | 564 ip_hlen = (uint8_t)(ip->ip_hl << 2); in netif_gso_ipv4_tcp()
|
| /xnu-8019.80.24/tests/ |
| H A D | ipsec.m | 472 ipheader->ip_hl = (sizeof(struct ip) - 4) >> 2;
|
| H A D | net_bridge.c | 830 T_ASSERT_EQ((u_int)(ip_udp->ip.ip_hl << 2), in ip_frame_validate() 1033 ip_udp->ip.ip_hl = sizeof(struct ip) >> 2; in ethernet_udp4_frame_populate() 1238 T_ASSERT_EQ((u_int)ip_udp->ip.ip_hl << 2, (u_int)sizeof(struct ip), in ethernet_frame_get_udp4_payload()
|