Home
last modified time | relevance | path

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

/xnu-8796.121.2/bsd/netinet/
H A Dip_input.c827 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ip_input_dispatch_chain()
836 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ip_input_dispatch_chain()
996 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ip_input_first_pass()
1013 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ip_input_first_pass()
1057 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ip_input_first_pass()
1204 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ip_input_first_pass()
1369 ip->ip_p == IPPROTO_UDP && (IP_VHL_HL(ip->ip_vhl) << 2) == sizeof(struct ip)) { in ip_input_check_interface()
1448 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ip_input_second_pass()
1558 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ip_input_second_pass()
1771 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ip_input()
[all …]
H A Dip_icmp.c232 oiphlen = IP_VHL_HL(oip->ip_vhl) << 2; in icmp_error()
580 || IP_VHL_HL(icp->icmp_ip.ip_vhl) < in icmp_input()
618 .ipc_off = hlen + offsetof(struct icmp, icmp_ip) + (IP_VHL_HL(icp->icmp_ip.ip_vhl) << 2) in icmp_input()
746 IP_VHL_HL(icp->icmp_ip.ip_vhl) < (sizeof(struct ip) >> 2)) { in icmp_input()
820 int optlen = (IP_VHL_HL(ip->ip_vhl) << 2) - sizeof(struct ip); in icmp_reflect()
1006 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in icmp_send()
1241 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in icmp_dgram_send()
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.c490 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ip_output_list()
560 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ip_output_list()
1109 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ip_output_list()
1421 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ip_output_list()
1554 ip_output_checksum(ifp, m, (IP_VHL_HL(ip->ip_vhl) << 2), in ip_output_list()
1813 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ip_fragment()
2003 hlen = IP_VHL_HL(ip->ip_vhl) << 2; /* IP header len */ in in_finalize_cksum()
2198 cnt = (IP_VHL_HL(ip->ip_vhl) << 2) - sizeof(struct ip); in ip_optcopy()
H A Din_cksum.c157 return ~b_sum16(ip, (IP_VHL_HL(ip->ip_vhl) << 2)) & 0xffff; in in_cksum_hdr_opt()
H A Dkpi_ipfilter.c384 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ipf_inject_input()
H A Draw_ip.c535 ((IP_VHL_HL(ip->ip_vhl) != (sizeof(*ip) >> 2)) && inp->inp_options) || in rip_output()
537 (ip->ip_len < (IP_VHL_HL(ip->ip_vhl) << 2))) { in rip_output()
/xnu-8796.121.2/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-8796.121.2/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.c394 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in esp_output()
418 iphlen = IP_VHL_HL(inner_ip->ip_vhl) << 2; in esp_output()
894 udp->uh_ulen = htons((u_int16_t)(ntohs(ip->ip_len) - (IP_VHL_HL(ip->ip_vhl) << 2))); in esp_output()
H A Desp_input.c182 iphlen = (u_int8_t)(IP_VHL_HL(inner_ip->ip_vhl) << 2); in esp_input_log()
265 hlen = (u_int8_t)(IP_VHL_HL(ip->ip_vhl) << 2); in esp4_input_extended()
H A Dah_input.c153 hlen = (u_int8_t)(IP_VHL_HL(ip->ip_vhl) << 2); in ah4_input()
H A Dah_core.c1272 hlen = IP_VHL_HL(iphdr.ip_vhl) << 2; in ah4_calccksum()
H A Dipsec.c3458 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ipsec4_output()
/xnu-8796.121.2/bsd/net/
H A Dpktap.c962 hlen = IP_VHL_HL(ip.ip_vhl) << 2; in pktap_fill_proc_info()
H A Dif_bridge.c4412 ip_hlen = IP_VHL_HL(ip->ip_vhl) << 2;
7561 (IP_VHL_HL(iphdr.ip_vhl) << 2);
8263 ip_header_len = IP_VHL_HL(iphdr->ip_vhl) << 2;
8940 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
9189 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
H A Dcontent_filter.c4249 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in cfil_service_inject_queue()