Home
last modified time | relevance | path

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

12

/xnu-10063.141.1/bsd/netinet/
H A Dip_input.c651 ip->ip_off = htons(ip->ip_off); in ip_proto_dispatch_in()
679 ip->ip_off = ntohs(ip->ip_off); in ip_proto_dispatch_in()
899 if ((ip->ip_off & (IP_MF | IP_OFFMASK)) == 0 && in ip_input_adjust()
1017 ip->ip_off = ntohs(ip->ip_off); in ip_input_first_pass()
1044 ip->ip_p, ip->ip_off, ip->ip_len); in ip_input_first_pass()
1147 NTOHS(ip->ip_off); in ip_input_first_pass()
1235 if (ip->ip_off & ~(IP_DF | IP_RF)) { in ip_input_first_pass()
1547 if (ip->ip_off & ~(IP_DF | IP_RF)) { in ip_input_second_pass()
1792 ip->ip_off = ntohs(ip->ip_off); in ip_input()
1814 ip->ip_p, ip->ip_off, ip->ip_len); in ip_input()
[all …]
H A Dip_output.c562 ip->ip_off &= IP_DF; in ip_output_list()
563 if (rfc6864 && IP_OFF_IS_ATOMIC(ip->ip_off)) { in ip_output_list()
589 ip->ip_p, ip->ip_off, ip->ip_len); in ip_output_list()
994 HTONS(ip->ip_off); in ip_output_list()
1026 NTOHS(ip->ip_off); in ip_output_list()
1160 HTONS(ip->ip_off); in ip_output_list()
1187 NTOHS(ip->ip_off); in ip_output_list()
1364 HTONS(ip->ip_off); in ip_output_list()
1481 NTOHS(ip->ip_off); in ip_output_list()
1511 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()
394 HTONS(nip->ip_off); in icmp_error()
426 nip->ip_off = 0; in icmp_error()
1255 if ((ip->ip_off & ~IP_DF) != 0) { in icmp_dgram_send()
H A Draw_ip.c538 ip->ip_off = IP_DF; in rip_output()
540 ip->ip_off = 0; in rip_output()
564 if (ip->ip_id == 0 && !(rfc6864 && IP_OFF_IS_ATOMIC(ntohs(ip->ip_off)))) { in rip_output()
H A Dkpi_ipfilter.c478 NTOHS(ip->ip_off); in ipf_injectv4_out()
H A Dip_compat.h572 __u16 ip_off;
H A Dudp_usrreq.c1864 ip->ip_off |= IP_DF; in udp_output()
2822 HTONS(ip->ip_off); in udp_input_checksum()
2835 NTOHS(ip->ip_off); in udp_input_checksum()
H A Digmp.c2718 ip->ip_off = 0; in igmp_v1v2_queue_report()
4171 ip->ip_off = IP_DF; in igmp_v3_encap_report()
/xnu-10063.141.1/bsd/net/
H A Dpf_norm.c500 #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 Dnat464_utils.c516 ip4->ip_off = htons(IP_DF); in nat464_translate_icmp_ip()
673 ip4->ip_off = 0; in nat464_translate_64()
690 ip4->ip_off = htons(ip_frag_off); in nat464_translate_64()
692 ip4->ip_off |= htons(IP_DF); in nat464_translate_64()
H A Dpf_osfp.c128 if ((ip->ip_off & htons(IP_OFFMASK)) != 0) { in pf_osfp_fingerprint_hdr()
138 if (ip->ip_off & htons(IP_DF)) { in pf_osfp_fingerprint_hdr()
H A Dif_ports_used.c1448 if ((ntohs(iphdr.ip_off) & ~(IP_DF | IP_RF)) && in if_ports_used_match_mbuf()
1449 (ntohs(iphdr.ip_off) & IP_OFFMASK) != 0) { in if_ports_used_match_mbuf()
H A Dpf.c2827 h->ip_off = (path_mtu_discovery ? IP_DF : 0); in pf_send_tcp()
4582 ip4->ip_off = htons(IP_DF); in pf_change_icmp_af()
4850 ip4->ip_off = htons(IP_DF); in pf_nat64_ipv6()
6485 NTOHS(iphdr->ip_off); in pf_test_dummynet()
8091 if (h2.ip_off & htons(IP_OFFMASK)) { in pf_test_state_icmp()
9119 u_int16_t fragoff = (ntohs(h->ip_off) & IP_OFFMASK) << 3; in pf_pull_hdr()
9365 (!(ip->ip_off & htons(IP_DF)) && in pf_route()
9382 if ((ip->ip_off & htons(IP_DF)) || in pf_route()
9398 NTOHS(ip->ip_off); in pf_route()
9832 if (h->ip_off & htons(IP_MF | IP_OFFMASK)) { in pf_test()
H A Dif_ipsec.c2011 ip->ip_off = ntohs(ip->ip_off); in ipsec_netif_sync_rx_mbuf()
4563 NTOHS(ip->ip_off); in ipsec_output()
/xnu-10063.141.1/bsd/netinet6/
H A Dah_input.c296 ip->ip_off = htons(ip->ip_off); in ah4_input()
307 ip->ip_off = ntohs(ip->ip_off); in ah4_input()
536 ip->ip_off = htons(ip->ip_off); in ah4_input()
H A Dipsec.c1233 if (ip.ip_off & (IP_MF | IP_OFFMASK)) { in ipsec4_get_ulp()
2352 ip->ip_off &= htons(~IP_OFFMASK); in ipsec4_encapsulate()
2353 ip->ip_off &= htons(~IP_MF); in ipsec4_encapsulate()
2356 ip->ip_off &= htons(~IP_DF); in ipsec4_encapsulate()
2359 ip->ip_off |= htons(IP_DF); in ipsec4_encapsulate()
2371 if (rfc6864 && IP_OFF_IS_ATOMIC(ntohs(ip->ip_off))) { in ipsec4_encapsulate()
2519 ip->ip_off = 0; in ipsec64_encapsulate()
5396 ip->ip_off &= htons(~IP_OFFMASK); in ipsec_fill_offload_frame()
5397 ip->ip_off &= htons(~IP_MF); in ipsec_fill_offload_frame()
5400 ip->ip_off &= htons(~IP_DF); in ipsec_fill_offload_frame()
[all …]
H A Dah_core.c816 iphdr.ip_off = htons(ntohs(iphdr.ip_off) & ip4_ah_offsetmask); in ah4_calccksum()
H A Desp_input.c847 ip->ip_off = htons(ip->ip_off); in esp4_input_extended()
/xnu-10063.141.1/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-10063.141.1/tests/
H A Dicmp_fragmented_payload.c253 pcb->inner_ip_hdr->ip_off = 0; in icmp4_pcb_set_payload()
342 .ip_off = 0,
/xnu-10063.141.1/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_classifier.c234 if (__improbable(ntohs(iph->ip_off) & ~(IP_DF | IP_RF))) { in flow_pkt_classify()
238 if ((ntohs(iph->ip_off) & IP_OFFMASK) != 0) { in flow_pkt_classify()
H A Dflow_agg.c124 .ip_off = 0xffff,
1047 if ((ntohs(siph->ip_off) & (IP_DF | IP_RF)) != in can_agg_slowpath()
1048 (ntohs(iph->ip_off) & (IP_DF | IP_RF))) { in can_agg_slowpath()
1051 ntohs(siph->ip_off), uint16_t, ntohs(iph->ip_off)); in can_agg_slowpath()
H A Dflow_track.c877 ip->ip_off = IP_DF; in flow_track_abort_tcp()
1016 ip->ip_off = IP_DF; in flow_track_abort_quic()
/xnu-10063.141.1/bsd/skywalk/nexus/flowswitch/
H A Dfsw_ip_frag.c291 offflag = ntohs(ip4->ip_off); in fsw_ip_frag_reass_v4()

12