Home
last modified time | relevance | path

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

12

/xnu-10002.1.13/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 Dudp_usrreq.c2750 ASSERT((ip->ip_hl << 2) == sizeof(*ip)); in udp_input_checksum()
2983 ip->ip_hl = (sizeof(struct ip) >> 2); in udp_fill_keepalive_offload_frames()
H A Dip_output.c1433 hlen = ip->ip_hl << 2; in ip_output_list()
1825 hlen = ip->ip_hl << 2; in ip_fragment()
/xnu-10002.1.13/bsd/net/
H A Dnat464_utils.c513 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 Dpacket_mangler.c840 ip_pld_len = ntohs(ip.ip_len) - (ip.ip_hl << 2); in pktmnglr_ipfilter_input()
1051 err = mbuf_inet_cksum(data, 0, 0, ip->ip_hl << 2, &ip_sum); // ip sum in chksm_update()
1057 tcp = (struct tcphdr *)(void *)(ptr + (ip->ip_hl << 2)); in chksm_update()
1059 err = mbuf_inet_cksum(data, IPPROTO_TCP, ip->ip_hl << 2, in chksm_update()
1060 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.c431 ip->ip_sum = in_cksum(m, ip->ip_hl << 2); in pflog_packet()
H A Dif_ports_used.c1411 if ((iphdr.ip_hl << 2) < pkt_data_len) { in if_ports_used_match_mbuf()
1412 pkt_data_len -= iphdr.ip_hl << 2; in if_ports_used_match_mbuf()
1429 error = mbuf_copydata(m, iphdr.ip_hl << 2, sizeof(struct tcphdr), &th); in if_ports_used_match_mbuf()
1455 size_t udp_offset = iphdr.ip_hl << 2; in if_ports_used_match_mbuf()
H A Dpf.c2821 h->ip_hl = sizeof(*h) >> 2; in pf_send_tcp()
4579 ip4->ip_hl = sizeof(*ip4) >> 2; in pf_change_icmp_af()
4591 ip4->ip_sum = pbuf_inet_cksum(pbuf, 0, 0, ip4->ip_hl << 2); in pf_change_icmp_af()
4846 ip4->ip_hl = 5; in pf_nat64_ipv6()
4856 ip4->ip_sum = pbuf_inet_cksum(pbuf, 0, 0, ip4->ip_hl << 2); in pf_nat64_ipv6()
8097 off2 = ipoff2 + (h2.ip_hl << 2); in pf_test_state_icmp()
8099 pd2.off = ipoff2 + (h2.ip_hl << 2); in pf_test_state_icmp()
9353 ip_output_checksum(ifp, m0, ((ip->ip_hl) << 2), ntohs(ip->ip_len), in pf_route()
9369 ip->ip_sum = in_cksum(m0, ip->ip_hl << 2); in pf_route()
9800 off = h->ip_hl << 2; in pf_test()
[all …]
/xnu-10002.1.13/osfmk/kdp/
H A Dkdp_udp.c169 #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-10002.1.13/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.c1241 off = ip.ip_hl << 2; in ipsec4_get_ulp()
2300 hlen = ip->ip_hl << 2; in ipsec4_encapsulate()
2350 ip->ip_hl = sizeof(struct ip) >> 2; in ipsec4_encapsulate()
2515 ip->ip_hl = sizeof(struct ip) >> 2; in ipsec64_encapsulate()
2728 hlen = ip->ip_hl << 2; in ipsec46_encapsulate()
3437 hlen = ip->ip_hl << 2; in ipsec4_interface_kpipe_output()
3744 hlen = ip->ip_hl << 2; in ipsec4_output()
4551 hlen = ip->ip_hl << 2; in ipsec4_splithdr()
4656 hlen = oip->ip_hl << 2; in ipsec4_tunnel_validate()
5396 ip->ip_hl = sizeof(struct ip) >> 2; in ipsec_fill_offload_frame()
H A Dah_input.c155 hlen = (u_int8_t)(ip->ip_hl << 2); in ah4_input()
H A Desp_input.c271 hlen = ip->ip_hl << 2; in esp4_input_extended()
1774 iphlen = ip_hdr->ip_hl << 2; in esp_kpipe_input()
/xnu-10002.1.13/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_classifier.c205 l3hlen = (uint8_t)(iph->ip_hl << 2); in flow_pkt_classify()
H A Dflow_track.c857 ip->ip_hl = sizeof(*ip) >> 2; in flow_track_abort_tcp()
996 ip->ip_hl = sizeof(*ip) >> 2; in flow_track_abort_quic()
H A Dflow_agg.c118 .ip_hl = 0xf,
1025 sl3hlen = (siph->ip_hl << 2); in can_agg_slowpath()
1317 l3hlen = siph->ip_hl << 2; in flow_agg_merge_hdr()
/xnu-10002.1.13/tests/
H A Dnet_test_lib.c124 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-10002.1.13/bsd/skywalk/nexus/flowswitch/
H A Dfsw_ip_frag.c290 unfragpartlen = (uint16_t)(ip4->ip_hl << 2); in fsw_ip_frag_reass_v4()
293 fragpartlen = ntohs(ip4->ip_len) - (uint16_t)(ip4->ip_hl << 2); in fsw_ip_frag_reass_v4()
/xnu-10002.1.13/bsd/skywalk/nexus/netif/
H A Dnx_netif_gso.c649 ip_hlen = (uint8_t)(ip->ip_hl << 2); in netif_gso_ipv4_tcp()
/xnu-10002.1.13/bsd/skywalk/nexus/
H A Dnexus_traffic_rule.c387 l3hlen = (uint8_t)(iph->ip_hl << 2); in fill_inet_td()

12