Home
last modified time | relevance | path

Searched refs:ip_ttl (Results 1 – 25 of 28) sorted by relevance

12

/xnu-12377.61.12/bsd/netinet/
H A Dip.h111 u_char ip_ttl; /* time to live */ member
H A Dip_output.c671 ip->ip_ttl = 1; in ip_output_list()
947 ip->ip_ttl = ttl; in ip_output_list()
955 ip->ip_ttl = ttl; in ip_output_list()
1077 if (ip->ip_ttl == 0 || ifp->if_flags & IFF_LOOPBACK) { in ip_output_list()
1165 if (ip->ip_ttl != MAXTTL) { in ip_output_list()
1167 ip->ip_ttl = MAXTTL; in ip_output_list()
H A Din_gif.c179 iphdr.ip_ttl = ip_gif_ttl; in in_gif_output()
H A Dip_input.c1135 if (ip->ip_ttl != MAXTTL) { in ip_input_first_pass()
3094 ip->ip_ttl); in ip_forward()
3107 if (ip->ip_ttl <= IPTTLDEC) { in ip_forward()
3161 ip->ip_ttl -= IPTTLDEC; in ip_forward()
3521 mp = sbcreatecontrol_mbuf((caddr_t)&ip->ip_ttl, in ip_savecontrol()
3522 sizeof(ip->ip_ttl), IP_RECVTTL, IPPROTO_IP, mp); in ip_savecontrol()
H A Dip_compat.h573 __u8 ip_ttl;
H A Dudp_usrreq.c892 ip6->ip6_hlim = ip->ip_ttl; in ip_2_ip6_hdr()
1970 ((struct ip *)ui)->ip_ttl = inp->inp_ip_ttl; /* XXX */ in udp_output()
3110 ip->ip_ttl = inp->inp_ip_ttl; in udp_fill_keepalive_offload_frames()
H A Dip_icmp.c897 ip->ip_ttl = (u_char)ip_defttl; in icmp_reflect()
H A Draw_ip.c549 ip->ip_ttl = inp->inp_ip_ttl; in rip_output()
H A Dtcp_subr.c826 ip->ip_ttl = 0; in tcp_fillheaders()
1063 ip->ip_ttl = (uint8_t)ip_defttl; in tcp_respond()
4925 ip->ip_ttl = inp->inp_ip_ttl; in tcp_make_keepalive_frame()
/xnu-12377.61.12/bsd/net/
H A Dpf_norm.c2162 if (r->min_ttl && h->ip_ttl < r->min_ttl) { in pf_normalize_ip()
2163 u_int16_t ip_ttl = h->ip_ttl; in pf_normalize_ip() local
2165 h->ip_ttl = r->min_ttl; in pf_normalize_ip()
2166 h->ip_sum = pf_cksum_fixup(h->ip_sum, ip_ttl, h->ip_ttl, 0); in pf_normalize_ip()
2186 if (r->min_ttl && h->ip_ttl < r->min_ttl) { in pf_normalize_ip()
2187 u_int16_t ip_ttl = h->ip_ttl; in pf_normalize_ip() local
2189 h->ip_ttl = r->min_ttl; in pf_normalize_ip()
2190 h->ip_sum = pf_cksum_fixup(h->ip_sum, ip_ttl, h->ip_ttl, 0); in pf_normalize_ip()
2775 src->scrub->pfss_ttl = h->ip_ttl; in pf_normalize_tcp_init()
2875 if (h->ip_ttl > src->scrub->pfss_ttl) { in pf_normalize_tcp_stateful()
[all …]
H A Dnat464_utils.c334 ptr = PTR_IP(ip_ttl); in nat464_translate_icmp()
443 } else if (ptr == PTR_IP(ip_ttl)) { in nat464_translate_icmp()
529 ip4->ip_ttl = ttl2; in nat464_translate_icmp_ip()
686 ip4->ip_ttl = ttl; in nat464_translate_64()
979 &hlen2, iph2->ip_p, iph2->ip_ttl, tot_len2, in nat464_translate_proto()
H A Dpf_osfp.c140 fp.fp_ttl = ip->ip_ttl; in pf_osfp_fingerprint_hdr()
H A Dif_stf.c597 ip->ip_ttl = ip_stf_ttl; in stf_pre_output()
H A Ddlil_subr.c777 iph->ip_ttl, src_storage, dstsock.sin6_addr, tot_len) == NT_NAT64) ? 0 : -1; in dlil_clat46()
H A Dpf.c2812 h->ip_ttl = ttl ? ttl : ip_defttl; in pf_send_tcp()
4567 ip4->ip_ttl = pd2->ttl; in pf_change_icmp_af()
4674 ptr = PTR_IP(ip_ttl); in pf_translate_icmp_af()
4776 } else if (ptr == PTR_IP(ip_ttl)) { in pf_translate_icmp_af()
4835 ip4->ip_ttl = pd->ttl; in pf_nat64_ipv6()
9779 pd.ttl = h->ip_ttl; in pf_test()
9822 pd.ttl = h->ip_ttl; in pf_test()
/xnu-12377.61.12/tests/
H A Dicmp_fragmented_payload.c254 pcb->inner_ip_hdr->ip_ttl = 64; in icmp4_pcb_set_payload()
343 .ip_ttl = 64,
H A Dipsec.m482 ipheader->ip_ttl = MAXTTL;
H A Dnet_test_lib.c280 ip_udp->ip.ip_ttl = MAXTTL; in ethernet_udp4_frame_populate()
/xnu-12377.61.12/bsd/dev/dtrace/scripts/
H A Dip.d166 ipv4_ttl = (ip != NULL) ? ip->ip_ttl : 0;
/xnu-12377.61.12/osfmk/kdp/
H A Dkdp_udp.c165 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-12377.61.12/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_agg.c134 .ip_ttl = 0xff,
1066 if (siph->ip_ttl != iph->ip_ttl) { in can_agg_slowpath()
1068 DTRACE_SKYWALK2(aggr__fail3, uint8_t, siph->ip_ttl, in can_agg_slowpath()
1069 uint8_t, iph->ip_ttl); in can_agg_slowpath()
H A Dflow_track.c884 ip->ip_ttl = (uint8_t)ip_defttl; in flow_track_abort_tcp()
1024 ip->ip_ttl = (uint8_t)ip_defttl; in flow_track_abort_quic()
/xnu-12377.61.12/bsd/netinet6/
H A Dah_core.c579 iphdr.ip_ttl = 0; in ah4_calccksum()
H A Dipsec.c2368 ip->ip_ttl = IPDEFTTL; in ipsec4_encapsulate()
2506 ip->ip_ttl = IPDEFTTL; in ipsec64_encapsulate()
5210 ip->ip_ttl = (u_char)ip_defttl; in ipsec_send_natt_keepalive()
5480 ip->ip_ttl = (u_char)ip_defttl; in ipsec_fill_offload_frame()
/xnu-12377.61.12/tests/skywalk/
H A Dskt_xfer.c586 ip_tcp->ip.ip_ttl = MAXTTL; in tcp_frame_populate()
676 ip_udp->ip.ip_ttl = MAXTTL; in udp_frame_populate()
736 ip->ip_ttl = MAXTTL; in ip_frame_populate()

12