| /xnu-11215.1.10/bsd/netinet/ |
| H A D | ip_input.c | 658 ip->ip_off = htons(ip->ip_off); in ip_proto_dispatch_in() 688 ip->ip_off = ntohs(ip->ip_off); in ip_proto_dispatch_in() 910 if ((ip->ip_off & (IP_MF | IP_OFFMASK)) == 0 && in ip_input_adjust() 1028 ip->ip_off = ntohs(ip->ip_off); in ip_input_first_pass() 1056 ip->ip_p, ip->ip_off, ip->ip_len); in ip_input_first_pass() 1165 NTOHS(ip->ip_off); in ip_input_first_pass() 1254 if (ip->ip_off & ~(IP_DF | IP_RF)) { in ip_input_first_pass() 1564 if (ip->ip_off & ~(IP_DF | IP_RF)) { in ip_input_second_pass() 1810 ip->ip_off = ntohs(ip->ip_off); in ip_input() 1832 ip->ip_p, ip->ip_off, ip->ip_len); in ip_input() [all …]
|
| H A D | ip_output.c | 567 ip->ip_off &= IP_DF; in ip_output_list() 568 if (rfc6864 && IP_OFF_IS_ATOMIC(ip->ip_off)) { in ip_output_list() 594 ip->ip_p, ip->ip_off, ip->ip_len); in ip_output_list() 1008 HTONS(ip->ip_off); in ip_output_list() 1041 NTOHS(ip->ip_off); in ip_output_list() 1179 HTONS(ip->ip_off); in ip_output_list() 1207 NTOHS(ip->ip_off); in ip_output_list() 1399 HTONS(ip->ip_off); in ip_output_list() 1519 NTOHS(ip->ip_off); in ip_output_list() 1550 HTONS(ip->ip_off); in ip_output_list() [all …]
|
| H A D | ip.h | 106 u_short ip_off; /* fragment offset field */ member
|
| H A D | ip_icmp.c | 245 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() 1264 if ((ip->ip_off & ~IP_DF) != 0) { in icmp_dgram_send()
|
| H A D | raw_ip.c | 542 ip->ip_off = IP_DF; in rip_output() 544 ip->ip_off = 0; in rip_output() 568 if (ip->ip_id == 0 && !(rfc6864 && IP_OFF_IS_ATOMIC(ntohs(ip->ip_off)))) { in rip_output()
|
| H A D | ip_compat.h | 572 __u16 ip_off;
|
| H A D | kpi_ipfilter.c | 484 NTOHS(ip->ip_off); in ipf_injectv4_out()
|
| H A D | udp_usrreq.c | 1880 ip->ip_off |= IP_DF; in udp_output() 2836 HTONS(ip->ip_off); in udp_input_checksum() 2849 NTOHS(ip->ip_off); in udp_input_checksum()
|
| H A D | igmp.c | 2710 ip->ip_off = 0; in igmp_v1v2_queue_report() 4163 ip->ip_off = IP_DF; in igmp_v3_encap_report()
|
| /xnu-11215.1.10/bsd/net/ |
| H A D | pf_norm.c | 500 #define FR_IP_OFF(fr) ((ntohs((fr)->fr_ip->ip_off) & IP_OFFMASK) << 3) 510 u_int16_t off = (ntohs(ip->ip_off) & IP_OFFMASK) << 3; in pf_reassemble() 544 HTONS(ip->ip_off); in pf_reassemble() 557 NTOHS(ip->ip_off); in pf_reassemble() 652 ip->ip_off = htons(ntohs(ip->ip_off) + (precut >> 3)); in pf_reassemble() 653 off = (ntohs(ip->ip_off) & IP_OFFMASK) << 3; in pf_reassemble() 668 frea->fr_ip->ip_off = htons(ntohs(frea->fr_ip->ip_off) + in pf_reassemble() 808 u_int16_t off = ntohs(h->ip_off) << 3; in pf_fragcache() 936 h->ip_off = htons(ntohs(h->ip_off) + in pf_fragcache() 1913 int mff = (ntohs(h->ip_off) & IP_MF); in pf_normalize_ip() [all …]
|
| H A D | nat464_utils.c | 522 ip4->ip_off = htons(IP_DF); in nat464_translate_icmp_ip() 679 ip4->ip_off = 0; in nat464_translate_64() 696 ip4->ip_off = htons(ip_frag_off); in nat464_translate_64() 698 ip4->ip_off |= htons(IP_DF); in nat464_translate_64()
|
| H A D | pf_osfp.c | 131 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 D | if_ports_used.c | 1527 if ((ntohs(iphdr.ip_off) & ~(IP_DF | IP_RF)) && in if_ports_used_match_mbuf() 1528 (ntohs(iphdr.ip_off) & IP_OFFMASK) != 0) { in if_ports_used_match_mbuf()
|
| H A D | pf.c | 2808 h->ip_off = (path_mtu_discovery ? IP_DF : 0); in pf_send_tcp() 4563 ip4->ip_off = htons(IP_DF); in pf_change_icmp_af() 4831 ip4->ip_off = htons(IP_DF); in pf_nat64_ipv6() 6465 NTOHS(iphdr->ip_off); in pf_test_dummynet() 8071 if (h2.ip_off & htons(IP_OFFMASK)) { in pf_test_state_icmp() 9100 u_int16_t fragoff = (ntohs(h->ip_off) & IP_OFFMASK) << 3; in pf_pull_hdr() 9346 (!(ip->ip_off & htons(IP_DF)) && in pf_route() 9363 if ((ip->ip_off & htons(IP_DF)) || in pf_route() 9379 NTOHS(ip->ip_off); in pf_route() 9813 if (h->ip_off & htons(IP_MF | IP_OFFMASK)) { in pf_test()
|
| /xnu-11215.1.10/bsd/netinet6/ |
| H A D | ah_input.c | 299 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 D | ipsec.c | 1226 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 D | ah_core.c | 584 iphdr.ip_off = htons(ntohs(iphdr.ip_off) & ip4_ah_offsetmask); in ah4_calccksum()
|
| H A D | esp_input.c | 850 ip->ip_off = htons(ip->ip_off); in esp4_input_extended()
|
| /xnu-11215.1.10/bsd/dev/dtrace/scripts/ |
| H A D | ip.d | 164 ipv4_flags = (ip != NULL) ? (ntohs(ip->ip_off) & 0xe000) : 0; 165 ipv4_offset = (ip != NULL) ? (ntohs(ip->ip_off) & 0x1fff) : 0;
|
| /xnu-11215.1.10/tests/ |
| H A D | icmp_fragmented_payload.c | 253 pcb->inner_ip_hdr->ip_off = 0; in icmp4_pcb_set_payload() 342 .ip_off = 0,
|
| /xnu-11215.1.10/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_classifier.c | 245 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 D | flow_agg.c | 133 .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 D | flow_track.c | 878 ip->ip_off = IP_DF; in flow_track_abort_tcp() 1018 ip->ip_off = IP_DF; in flow_track_abort_quic()
|
| /xnu-11215.1.10/tests/skywalk/ |
| H A D | skywalk_test_utils.c | 2376 ip->ip_off = ((off >> 3) & IP_OFFMASK); in sktu_create_ip_frames() 2378 ip->ip_off |= IP_MF; in sktu_create_ip_frames() 2380 ip->ip_off = htons(ip->ip_off); in sktu_create_ip_frames()
|
| /xnu-11215.1.10/bsd/skywalk/nexus/flowswitch/ |
| H A D | fsw_ip_frag.c | 292 offflag = ntohs(ip4->ip_off); in fsw_ip_frag_reass_v4()
|