| /xnu-10063.141.1/bsd/netinet/ |
| H A D | ip.h | 111 u_char ip_ttl; /* time to live */ member
|
| H A D | ip_output.c | 657 ip->ip_ttl = 1; in ip_output_list() 917 ip->ip_ttl = ttl; in ip_output_list() 925 ip->ip_ttl = ttl; in ip_output_list() 1044 if (ip->ip_ttl == 0 || ifp->if_flags & IFF_LOOPBACK) { in ip_output_list() 1129 if (ip->ip_ttl != MAXTTL) { in ip_output_list() 1131 ip->ip_ttl = MAXTTL; in ip_output_list()
|
| H A D | in_gif.c | 179 iphdr.ip_ttl = ip_gif_ttl; in in_gif_output()
|
| H A D | ip_input.c | 1108 if (ip->ip_ttl != MAXTTL) { in ip_input_first_pass() 1861 if (ip->ip_ttl != MAXTTL) { in ip_input() 3448 ip->ip_ttl); in ip_forward() 3460 if (ip->ip_ttl <= IPTTLDEC) { in ip_forward() 3514 ip->ip_ttl -= IPTTLDEC; in ip_forward() 3874 mp = sbcreatecontrol_mbuf((caddr_t)&ip->ip_ttl, in ip_savecontrol() 3875 sizeof(ip->ip_ttl), IP_RECVTTL, IPPROTO_IP, mp); in ip_savecontrol()
|
| H A D | ip_compat.h | 573 __u8 ip_ttl;
|
| H A D | udp_usrreq.c | 824 ip6->ip6_hlim = ip->ip_ttl; in ip_2_ip6_hdr() 1896 ((struct ip *)ui)->ip_ttl = inp->inp_ip_ttl; /* XXX */ in udp_output() 3024 ip->ip_ttl = inp->inp_ip_ttl; in udp_fill_keepalive_offload_frames()
|
| H A D | ip_icmp.c | 893 ip->ip_ttl = (u_char)ip_defttl; in icmp_reflect()
|
| H A D | raw_ip.c | 546 ip->ip_ttl = inp->inp_ip_ttl; in rip_output()
|
| H A D | tcp_subr.c | 681 ip->ip_ttl = 0; in tcp_fillheaders() 857 ip->ip_ttl = (uint8_t)ip_defttl; in tcp_respond() 3951 ip->ip_ttl = inp->inp_ip_ttl; in tcp_make_keepalive_frame()
|
| H A D | igmp.c | 1739 if (igmp->igmp_type != IGMP_DVMRP && ip->ip_ttl != 1) { in igmp_input()
|
| H A D | tcp_output.c | 2918 ip->ip_ttl = inp->inp_ip_ttl; /* XXX */ in tcp_output()
|
| /xnu-10063.141.1/bsd/net/ |
| H A D | pf_norm.c | 2159 if (r->min_ttl && h->ip_ttl < r->min_ttl) { in pf_normalize_ip() 2160 u_int16_t ip_ttl = h->ip_ttl; in pf_normalize_ip() local 2162 h->ip_ttl = r->min_ttl; in pf_normalize_ip() 2163 h->ip_sum = pf_cksum_fixup(h->ip_sum, ip_ttl, h->ip_ttl, 0); in pf_normalize_ip() 2183 if (r->min_ttl && h->ip_ttl < r->min_ttl) { in pf_normalize_ip() 2184 u_int16_t ip_ttl = h->ip_ttl; in pf_normalize_ip() local 2186 h->ip_ttl = r->min_ttl; in pf_normalize_ip() 2187 h->ip_sum = pf_cksum_fixup(h->ip_sum, ip_ttl, h->ip_ttl, 0); in pf_normalize_ip() 2772 src->scrub->pfss_ttl = h->ip_ttl; in pf_normalize_tcp_init() 2873 if (h->ip_ttl > src->scrub->pfss_ttl) { in pf_normalize_tcp_stateful() [all …]
|
| H A D | nat464_utils.c | 322 ptr = PTR_IP(ip_ttl); in nat464_translate_icmp() 431 } else if (ptr == PTR_IP(ip_ttl)) { in nat464_translate_icmp() 517 ip4->ip_ttl = ttl2; in nat464_translate_icmp_ip() 674 ip4->ip_ttl = ttl; in nat464_translate_64() 961 &hlen2, iph2->ip_p, iph2->ip_ttl, tot_len2, in nat464_translate_proto()
|
| H A D | pf_osfp.c | 137 fp.fp_ttl = ip->ip_ttl; in pf_osfp_fingerprint_hdr()
|
| H A D | if_stf.c | 596 ip->ip_ttl = ip_stf_ttl; in stf_pre_output()
|
| H A D | pf.c | 2828 h->ip_ttl = ttl ? ttl : ip_defttl; in pf_send_tcp() 4583 ip4->ip_ttl = pd2->ttl; in pf_change_icmp_af() 4690 ptr = PTR_IP(ip_ttl); in pf_translate_icmp_af() 4792 } else if (ptr == PTR_IP(ip_ttl)) { in pf_translate_icmp_af() 4851 ip4->ip_ttl = pd->ttl; in pf_nat64_ipv6() 9777 pd.ttl = h->ip_ttl; in pf_test() 9820 pd.ttl = h->ip_ttl; in pf_test()
|
| /xnu-10063.141.1/tests/ |
| H A D | icmp_fragmented_payload.c | 254 pcb->inner_ip_hdr->ip_ttl = 64; in icmp4_pcb_set_payload() 343 .ip_ttl = 64,
|
| H A D | net_test_lib.c | 125 ip_udp->ip.ip_ttl = MAXTTL; in ethernet_udp4_frame_populate()
|
| H A D | ipsec.m | 482 ipheader->ip_ttl = MAXTTL;
|
| /xnu-10063.141.1/bsd/dev/dtrace/scripts/ |
| H A D | ip.d | 166 ipv4_ttl = (ip != NULL) ? ip->ip_ttl : 0;
|
| /xnu-10063.141.1/osfmk/kdp/ |
| H A D | kdp_udp.c | 165 u_char ip_ttl; /* time to live */ member 592 ip->ip_ttl = udp_ttl; in kdp_reply() 669 ip->ip_ttl = udp_ttl; in kdp_send() 1559 ip->ip_ttl = udp_ttl; in create_panic_header()
|
| /xnu-10063.141.1/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_agg.c | 125 .ip_ttl = 0xff, 1033 if (siph->ip_ttl != iph->ip_ttl) { in can_agg_slowpath() 1035 DTRACE_SKYWALK2(aggr__fail3, uint8_t, siph->ip_ttl, in can_agg_slowpath() 1036 uint8_t, iph->ip_ttl); in can_agg_slowpath()
|
| H A D | flow_track.c | 878 ip->ip_ttl = (uint8_t)ip_defttl; in flow_track_abort_tcp() 1017 ip->ip_ttl = (uint8_t)ip_defttl; in flow_track_abort_quic()
|
| /xnu-10063.141.1/bsd/netinet6/ |
| H A D | ah_core.c | 811 iphdr.ip_ttl = 0; in ah4_calccksum()
|
| H A D | ipsec.c | 2380 ip->ip_ttl = IPDEFTTL; in ipsec4_encapsulate() 2520 ip->ip_ttl = IPDEFTTL; in ipsec64_encapsulate() 5229 ip->ip_ttl = (u_char)ip_defttl; in ipsec_send_natt_keepalive() 5414 ip->ip_ttl = (u_char)ip_defttl; in ipsec_fill_offload_frame()
|