Home
last modified time | relevance | path

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

12

/xnu-12377.61.12/bsd/netinet/
H A Dip_input.c663 ip->ip_off = htons(ip->ip_off); in ip_proto_dispatch_in()
693 ip->ip_off = ntohs(ip->ip_off); in ip_proto_dispatch_in()
922 if ((ip->ip_off & (IP_MF | IP_OFFMASK)) == 0 && in ip_input_adjust()
1040 ip->ip_off = ntohs(ip->ip_off); in ip_input_first_pass()
1068 ip->ip_p, ip->ip_off, ip->ip_len); in ip_input_first_pass()
1177 NTOHS(ip->ip_off); in ip_input_first_pass()
1266 if (ip->ip_off & ~(IP_DF | IP_RF)) { in ip_input_first_pass()
1576 if (ip->ip_off & ~(IP_DF | IP_RF)) { in ip_input_second_pass()
1904 HTONS(ip->ip_off); in ip_reass()
1916 NTOHS(ip->ip_off); in ip_reass()
[all …]
H A Dip_output.c573 ip->ip_off &= IP_DF; in ip_output_list()
574 if (rfc6864 && IP_OFF_IS_ATOMIC(ip->ip_off)) { in ip_output_list()
600 ip->ip_p, ip->ip_off, ip->ip_len); in ip_output_list()
1026 HTONS(ip->ip_off); in ip_output_list()
1059 NTOHS(ip->ip_off); in ip_output_list()
1197 HTONS(ip->ip_off); in ip_output_list()
1225 NTOHS(ip->ip_off); in ip_output_list()
1429 HTONS(ip->ip_off); in ip_output_list()
1549 NTOHS(ip->ip_off); in ip_output_list()
1580 HTONS(ip->ip_off); in ip_output_list()
[all …]
H A Dip.h106 u_short ip_off; /* fragment offset field */ member
H A Dip_icmp.c245 if (oip->ip_off & ~(IP_MF | IP_DF)) { in icmp_error()
396 HTONS(nip->ip_off); in icmp_error()
428 nip->ip_off = 0; in icmp_error()
1269 if ((ip->ip_off & ~IP_DF) != 0) { in icmp_dgram_send()
H A Draw_ip.c541 ip->ip_off = IP_DF; in rip_output()
543 ip->ip_off = 0; in rip_output()
567 if (ip->ip_id == 0 && !(rfc6864 && IP_OFF_IS_ATOMIC(ntohs(ip->ip_off)))) { in rip_output()
H A Dkpi_ipfilter.c484 NTOHS(ip->ip_off); in ipf_injectv4_out()
H A Dip_compat.h572 __u16 ip_off;
H A Dudp_usrreq.c1938 ip->ip_off |= IP_DF; in udp_output()
2908 HTONS(ip->ip_off); in udp_input_checksum()
2921 NTOHS(ip->ip_off); in udp_input_checksum()
/xnu-12377.61.12/bsd/net/
H A Dpf_norm.c501 #define FR_IP_OFF(fr) ((ntohs((fr)->fr_ip->ip_off) & IP_OFFMASK) << 3)
511 u_int16_t off = (ntohs(ip->ip_off) & IP_OFFMASK) << 3; in pf_reassemble()
545 HTONS(ip->ip_off); in pf_reassemble()
558 NTOHS(ip->ip_off); in pf_reassemble()
653 ip->ip_off = htons(ntohs(ip->ip_off) + (precut >> 3)); in pf_reassemble()
654 off = (ntohs(ip->ip_off) & IP_OFFMASK) << 3; in pf_reassemble()
669 frea->fr_ip->ip_off = htons(ntohs(frea->fr_ip->ip_off) + in pf_reassemble()
810 u_int16_t off = ntohs(h->ip_off) << 3; in pf_fragcache()
938 h->ip_off = htons(ntohs(h->ip_off) + in pf_fragcache()
1916 int mff = (ntohs(h->ip_off) & IP_MF); in pf_normalize_ip()
[all …]
H A Dnat464_utils.c528 ip4->ip_off = htons(IP_DF); in nat464_translate_icmp_ip()
685 ip4->ip_off = 0; in nat464_translate_64()
702 ip4->ip_off = htons(ip_frag_off); in nat464_translate_64()
704 ip4->ip_off |= htons(IP_DF); in nat464_translate_64()
H A Ddlil_subr.c712 ip_frag_off = ntohs(iph->ip_off) & IP_OFFMASK; in dlil_clat46()
731 if (ntohs(iph->ip_off) & ~(IP_DF | IP_RF)) { in dlil_clat46()
740 if (ntohs(iph->ip_off) & IP_MF) { in dlil_clat46()
H A Dpf_osfp.c131 if ((ip->ip_off & htons(IP_OFFMASK)) != 0) { in pf_osfp_fingerprint_hdr()
141 if (ip->ip_off & htons(IP_DF)) { in pf_osfp_fingerprint_hdr()
H A Dpf.c2811 h->ip_off = (path_mtu_discovery ? IP_DF : 0); in pf_send_tcp()
4566 ip4->ip_off = htons(IP_DF); in pf_change_icmp_af()
4834 ip4->ip_off = htons(IP_DF); in pf_nat64_ipv6()
6468 NTOHS(iphdr->ip_off); in pf_test_dummynet()
8074 if (h2.ip_off & htons(IP_OFFMASK)) { in pf_test_state_icmp()
9103 u_int16_t fragoff = (ntohs(h->ip_off) & IP_OFFMASK) << 3; in pf_pull_hdr()
9357 (!(ip->ip_off & htons(IP_DF)) && in pf_route()
9374 if ((ip->ip_off & htons(IP_DF)) || in pf_route()
9391 NTOHS(ip->ip_off); in pf_route()
9834 if (h->ip_off & htons(IP_MF | IP_OFFMASK)) { in pf_test()
H A Dif_ports_used.c1862 if ((ntohs(iphdr.ip_off) & ~(IP_DF | IP_RF)) && in if_ports_used_match_mbuf()
1863 (ntohs(iphdr.ip_off) & IP_OFFMASK) != 0) { in if_ports_used_match_mbuf()
/xnu-12377.61.12/bsd/netinet6/
H A Dah_input.c299 ip->ip_off = htons(ip->ip_off); in ah4_input()
310 ip->ip_off = ntohs(ip->ip_off); in ah4_input()
539 ip->ip_off = htons(ip->ip_off); in ah4_input()
H A Dipsec.c1226 if (ip.ip_off & (IP_MF | IP_OFFMASK)) { in ipsec4_get_ulp()
2340 ip->ip_off &= htons(~IP_OFFMASK); in ipsec4_encapsulate()
2341 ip->ip_off &= htons(~IP_MF); in ipsec4_encapsulate()
2344 ip->ip_off &= htons(~IP_DF); in ipsec4_encapsulate()
2347 ip->ip_off |= htons(IP_DF); in ipsec4_encapsulate()
2359 if (rfc6864 && IP_OFF_IS_ATOMIC(ntohs(ip->ip_off))) { in ipsec4_encapsulate()
2505 ip->ip_off = 0; in ipsec64_encapsulate()
5462 ip->ip_off &= htons(~IP_OFFMASK); in ipsec_fill_offload_frame()
5463 ip->ip_off &= htons(~IP_MF); in ipsec_fill_offload_frame()
5466 ip->ip_off &= htons(~IP_DF); in ipsec_fill_offload_frame()
[all …]
H A Dah_core.c584 iphdr.ip_off = htons(ntohs(iphdr.ip_off) & ip4_ah_offsetmask); in ah4_calccksum()
H A Desp_input.c850 ip->ip_off = htons(ip->ip_off); in esp4_input_extended()
/xnu-12377.61.12/bsd/dev/dtrace/scripts/
H A Dip.d164 ipv4_flags = (ip != NULL) ? (ntohs(ip->ip_off) & 0xe000) : 0;
165 ipv4_offset = (ip != NULL) ? (ntohs(ip->ip_off) & 0x1fff) : 0;
/xnu-12377.61.12/tests/
H A Dicmp_fragmented_payload.c253 pcb->inner_ip_hdr->ip_off = 0; in icmp4_pcb_set_payload()
342 .ip_off = 0,
/xnu-12377.61.12/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_classifier.c245 if (__improbable(ntohs(iph->ip_off) & ~(IP_DF | IP_RF))) { in flow_pkt_classify()
249 if ((ntohs(iph->ip_off) & IP_OFFMASK) != 0) { in flow_pkt_classify()
H A Dflow_agg.c133 .ip_off = 0xffff,
1080 if ((ntohs(siph->ip_off) & (IP_DF | IP_RF)) != in can_agg_slowpath()
1081 (ntohs(iph->ip_off) & (IP_DF | IP_RF))) { in can_agg_slowpath()
1084 ntohs(siph->ip_off), uint16_t, ntohs(iph->ip_off)); in can_agg_slowpath()
H A Dflow_track.c883 ip->ip_off = IP_DF; in flow_track_abort_tcp()
1023 ip->ip_off = IP_DF; in flow_track_abort_quic()
/xnu-12377.61.12/tests/skywalk/
H A Dskywalk_test_utils.c2355 ip->ip_off = ((off >> 3) & IP_OFFMASK); in sktu_create_ip_frames()
2357 ip->ip_off |= IP_MF; in sktu_create_ip_frames()
2359 ip->ip_off = htons(ip->ip_off); in sktu_create_ip_frames()
/xnu-12377.61.12/bsd/skywalk/nexus/flowswitch/
H A Dfsw_ip_frag.c295 offflag = ntohs(ip4->ip_off); in fsw_ip_frag_reass_v4()

12