Home
last modified time | relevance | path

Searched refs:IP_VHL_HL (Results 1 – 19 of 19) sorted by relevance

/xnu-12377.1.9/tests/
H A Dicmp_fragmented_payload.c155 (uint16_t)(pcb->inner_ip_hdr == NULL ? -1 : IP_VHL_HL(pcb->inner_ip_hdr->ip_vhl) << 2), in icmp4_pcb_print()
236 pcb->inner_ip_hdr_len = (uint16_t)(IP_VHL_HL(ip_in->ip_vhl) << 2); in icmp4_pcb_set_payload()
308 int inner_ip_hdr_len = (IP_VHL_HL(pcb->inner_ip_hdr->ip_vhl) << 2); in icmp4_pcb_assert_payload_correct()
/xnu-12377.1.9/bsd/netinet/
H A Dip_icmp.c233 oiphlen = IP_VHL_HL(oip->ip_vhl) << 2; in icmp_error()
585 || IP_VHL_HL(icp->icmp_ip.ip_vhl) < in icmp_input()
623 .ipc_off = hlen + offsetof(struct icmp, icmp_ip) + (IP_VHL_HL(icp->icmp_ip.ip_vhl) << 2) in icmp_input()
751 IP_VHL_HL(icp->icmp_ip.ip_vhl) < (sizeof(struct ip) >> 2)) { in icmp_input()
825 int optlen = (IP_VHL_HL(ip->ip_vhl) << 2) - sizeof(struct ip); in icmp_reflect()
1011 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in icmp_send()
1256 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in icmp_dgram_send()
H A Dip_input.c847 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ip_input_dispatch_chain()
856 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ip_input_dispatch_chain()
1016 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ip_input_first_pass()
1033 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ip_input_first_pass()
1079 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ip_input_first_pass()
1232 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ip_input_first_pass()
1392 ip->ip_p == IPPROTO_UDP && (IP_VHL_HL(ip->ip_vhl) << 2) == sizeof(struct ip)) { in ip_input_check_interface()
1471 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ip_input_second_pass()
1585 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ip_input_second_pass()
1827 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ip_reass()
[all …]
H A Dip.h119 #define IP_VHL_HL(vhl) ((vhl) & 0x0f) macro
H A Dip_icmp.h163 #define ICMP_ADVLEN(p) (8 + (IP_VHL_HL((p)->icmp_ip.ip_vhl) << 2) + 8)
H A Dip_output.c511 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ip_output_list()
582 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ip_output_list()
1156 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ip_output_list()
1497 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ip_output_list()
1636 ip_output_checksum(ifp, m, (IP_VHL_HL(ip->ip_vhl) << 2), in ip_output_list()
1897 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ip_fragment()
2086 hlen = IP_VHL_HL(ip->ip_vhl) << 2; /* IP header len */ in in_finalize_cksum()
2281 cnt = (IP_VHL_HL(ip->ip_vhl) << 2) - sizeof(struct ip); in ip_optcopy()
H A Din_cksum.c160 hdrlen = IP_VHL_HL(ip->ip_vhl) << 2; in in_cksum_hdr_opt()
H A Draw_ip.c561 ((IP_VHL_HL(ip->ip_vhl) != (sizeof(*ip) >> 2)) && inp->inp_options) || in rip_output()
563 (ip->ip_len < (IP_VHL_HL(ip->ip_vhl) << 2))) { in rip_output()
H A Dkpi_ipfilter.c390 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ipf_inject_input()
/xnu-12377.1.9/bsd/netinet6/
H A Dah_output.c242 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ah4_output()
571 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ah4_finaldst()
H A Desp_output.c398 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in esp_output()
422 iphlen = IP_VHL_HL(inner_ip->ip_vhl) << 2; in esp_output()
898 udp->uh_ulen = htons((u_int16_t)(ntohs(ip->ip_len) - (IP_VHL_HL(ip->ip_vhl) << 2))); in esp_output()
1021 iphlen = IP_VHL_HL(ip_hdr->ip_vhl) << 2; in esp_kpipe_output()
H A Desp_input.c186 iphlen = (u_int8_t)(IP_VHL_HL(inner_ip->ip_vhl) << 2); in esp_input_log()
271 hlen = (u_int8_t)(IP_VHL_HL(ip->ip_vhl) << 2); in esp4_input_extended()
1770 iphlen = IP_VHL_HL(ip_hdr->ip_vhl) << 2; in esp_kpipe_input()
H A Dah_core.c575 hlen = IP_VHL_HL(iphdr.ip_vhl) << 2; in ah4_calccksum()
H A Dah_input.c155 hlen = (u_int8_t)(IP_VHL_HL(ip->ip_vhl) << 2); in ah4_input()
H A Dipsec.c3420 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ipsec4_interface_kpipe_output()
3727 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ipsec4_output()
/xnu-12377.1.9/bsd/net/
H A Dpktap.c993 hlen = IP_VHL_HL(ip.ip_vhl) << 2; in pktap_fill_proc_info()
H A Dif_bridge.c4678 ip_hlen = IP_VHL_HL(ip->ip_vhl) << 2;
8130 ip_header_len = IP_VHL_HL(iphdr->ip_vhl) << 2;
8998 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
9247 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
H A Dif_ipsec.c1394 iphlen = IP_VHL_HL(ip->ip_vhl) << 2; in ipsec_transform_kpipe_pkt_to_netif_pkt()
H A Dcontent_filter.c4390 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in cfil_strip_ip_header()