/Linux-v4.19/net/netfilter/ |
D | xt_hl.c | 31 const u8 ttl = ip_hdr(skb)->ttl; in ttl_mt() local 35 return ttl == info->ttl; in ttl_mt() 37 return ttl != info->ttl; in ttl_mt() 39 return ttl < info->ttl; in ttl_mt() 41 return ttl > info->ttl; in ttl_mt()
|
D | xt_HL.c | 42 new_ttl = info->ttl; in ttl_tg() 45 new_ttl = iph->ttl + info->ttl; in ttl_tg() 50 new_ttl = iph->ttl - info->ttl; in ttl_tg() 55 new_ttl = iph->ttl; in ttl_tg() 59 if (new_ttl != iph->ttl) { in ttl_tg() 60 csum_replace2(&iph->check, htons(iph->ttl << 8), in ttl_tg() 62 iph->ttl = new_ttl; in ttl_tg() 110 if (info->mode != IPT_TTL_SET && info->ttl == 0) in ttl_tg_check()
|
D | xt_recent.c | 74 u_int8_t ttl; member 129 u_int8_t ttl) in recent_entry_lookup() argument 142 (ttl == e->ttl || ttl == 0 || e->ttl == 0)) in recent_entry_lookup() 176 u_int16_t family, u_int8_t ttl) in recent_entry_init() argument 191 e->ttl = ttl; in recent_entry_init() 244 u_int8_t ttl; in recent_mt() local 255 ttl = iph->ttl; in recent_mt() 264 ttl = iph->hop_limit; in recent_mt() 270 ttl++; in recent_mt() 278 (info->check_set & XT_RECENT_TTL) ? ttl : 0); in recent_mt() [all …]
|
D | nfnetlink_osf.c | 37 return ip->ttl == f_ttl; in nf_osf_ttl() 40 else if (ip->ttl <= f_ttl) in nf_osf_ttl() 48 ret = (ip->ttl == f_ttl); in nf_osf_ttl() 58 return ip->ttl == f_ttl; in nf_osf_ttl() 79 if (ctx->totlen != f->ss || !nf_osf_ttl(skb, ttl_check, f->ttl)) in nf_osf_match_one() 216 ttl_check = (info->flags & NF_OSF_TTL) ? info->ttl : -1; in nf_osf_match() 239 f->ttl - ip->ttl); in nf_osf_match()
|
/Linux-v4.19/include/uapi/linux/ |
D | batadv_packet.h | 215 __u8 ttl; member 241 __u8 ttl; member 287 __u8 ttl; member 310 __u8 ttl; member 339 __u8 ttl; member 378 __u8 ttl; member 412 __u8 ttl; member 453 __u8 ttl; member 483 __u8 ttl; member 512 __u8 ttl; member [all …]
|
/Linux-v4.19/net/mpls/ |
D | mpls_iptunnel.c | 57 unsigned int ttl; in mpls_xmit() local 85 ttl = tun_encap_info->default_ttl; in mpls_xmit() 88 ttl = net->mpls.default_ttl; in mpls_xmit() 90 ttl = ip_hdr(skb)->ttl; in mpls_xmit() 94 ttl = tun_encap_info->default_ttl; in mpls_xmit() 97 ttl = net->mpls.default_ttl; in mpls_xmit() 99 ttl = ipv6_hdr(skb)->hop_limit; in mpls_xmit() 134 ttl, 0, bos); in mpls_xmit()
|
D | internal.h | 13 u8 ttl; member 175 static inline struct mpls_shim_hdr mpls_entry_encode(u32 label, unsigned ttl, unsigned tc, bool bos) in mpls_entry_encode() argument 182 (ttl << MPLS_LS_TTL_SHIFT)); in mpls_entry_encode() 192 result.ttl = (entry & MPLS_LS_TTL_MASK) >> MPLS_LS_TTL_SHIFT; in mpls_entry_decode()
|
/Linux-v4.19/arch/um/drivers/ |
D | umcast_kern.c | 23 int ttl; member 39 dpri->ttl = init->ttl; in umcast_init() 47 "TTL:%u\n", dpri->addr, dpri->lport, dpri->ttl); in umcast_init() 79 .ttl = 1 }); in mcast_setup() 99 init->ttl = simple_strtoul(ttl_str, &last, 10); in mcast_setup() 111 init->lport, init->ttl); in mcast_setup()
|
/Linux-v4.19/net/mac80211/ |
D | mesh_hwmp.c | 106 u8 hop_count, u8 ttl, in mesh_path_sel_frame_tx() argument 161 *pos++ = ttl; in mesh_path_sel_frame_tx() 237 u8 ttl, const u8 *target, u32 target_sn, in mesh_path_error_tx() argument 275 *pos++ = ttl; in mesh_path_error_tx() 549 u8 target_flags, ttl, flags; in hwmp_preq_frame_process() local 621 ttl = ifmsh->mshcfg.element_ttl; in hwmp_preq_frame_process() 622 if (ttl != 0) { in hwmp_preq_frame_process() 626 target_sn, mgmt->sa, 0, ttl, in hwmp_preq_frame_process() 638 ttl = PREQ_IE_TTL(preq_elem); in hwmp_preq_frame_process() 640 if (ttl <= 1) { in hwmp_preq_frame_process() [all …]
|
/Linux-v4.19/include/net/ |
D | nsh.h | 290 static inline void nsh_set_flags_and_ttl(struct nshhdr *nsh, u8 flags, u8 ttl) in nsh_set_flags_and_ttl() argument 293 ((ttl << NSH_TTL_SHIFT) & NSH_TTL_MASK), in nsh_set_flags_and_ttl() 298 u8 ttl, u8 len) in nsh_set_flags_ttl_len() argument 302 ((ttl << NSH_TTL_SHIFT) & NSH_TTL_MASK) | in nsh_set_flags_ttl_len()
|
D | dst_metadata.h | 143 __u8 tos, __u8 ttl, in __ip_tun_set_dst() argument 156 saddr, daddr, tos, ttl, in __ip_tun_set_dst() 168 return __ip_tun_set_dst(iph->saddr, iph->daddr, iph->tos, iph->ttl, in ip_tun_rx_dst() 174 __u8 tos, __u8 ttl, in __ipv6_tun_set_dst() argument 199 info->key.ttl = ttl; in __ipv6_tun_set_dst()
|
D | ip_tunnels.h | 53 u8 ttl; /* TTL for IPv4, HL for IPv6 */ member 191 u8 tos, u8 ttl, __be32 label, in ip_tunnel_key_init() argument 201 key->ttl = ttl; in ip_tunnel_key_init() 386 return iph->ttl; in ip_tunnel_get_ttl() 413 u8 tos, u8 ttl, __be16 df, bool xnet);
|
/Linux-v4.19/fs/nfs/ |
D | dns_resolve.c | 171 long ttl; in nfs_dns_show() local 178 ttl = item->h.expiry_time - seconds_since_boot(); in nfs_dns_show() 179 if (ttl < 0) in nfs_dns_show() 180 ttl = 0; in nfs_dns_show() 189 seq_printf(m, "%15s %ld\n", item->hostname, ttl); in nfs_dns_show() 224 unsigned int ttl; in nfs_dns_parse() local 247 if (get_uint(&buf, &ttl) < 0) in nfs_dns_parse() 249 if (ttl == 0) in nfs_dns_parse() 251 key.h.expiry_time = ttl + seconds_since_boot(); in nfs_dns_parse()
|
/Linux-v4.19/net/ipv4/ |
D | ip_tunnel.c | 561 u8 tos, ttl; in ip_md_tunnel_xmit() local 592 ttl = key->ttl; in ip_md_tunnel_xmit() 593 if (ttl == 0) { in ip_md_tunnel_xmit() 595 ttl = inner_iph->ttl; in ip_md_tunnel_xmit() 597 ttl = ((const struct ipv6hdr *)inner_iph)->hop_limit; in ip_md_tunnel_xmit() 599 ttl = ip4_dst_hoplimit(&rt->dst); in ip_md_tunnel_xmit() 613 iptunnel_xmit(NULL, rt, skb, fl4.saddr, fl4.daddr, proto, tos, ttl, in ip_md_tunnel_xmit() 633 u8 tos, ttl; in ip_tunnel_xmit() local 759 ttl = tnl_params->ttl; in ip_tunnel_xmit() 760 if (ttl == 0) { in ip_tunnel_xmit() [all …]
|
D | ip_tunnel_core.c | 61 __u8 tos, __u8 ttl, __be16 df, bool xnet) in iptunnel_xmit() argument 88 iph->ttl = ttl; in iptunnel_xmit() 264 tun_info->key.ttl = nla_get_u8(tb[LWTUNNEL_IP_TTL]); in ip_tun_build_state() 290 nla_put_u8(skb, LWTUNNEL_IP_TTL, tun_info->key.ttl) || in ip_tun_fill_encap_info() 363 tun_info->key.ttl = nla_get_u8(tb[LWTUNNEL_IP6_HOPLIMIT]); in ip6_tun_build_state() 389 nla_put_u8(skb, LWTUNNEL_IP6_HOPLIMIT, tun_info->key.ttl) || in ip6_tun_fill_encap_info()
|
D | inetpeer.c | 152 __u32 delta, ttl; in inet_peer_gc() local 156 ttl = 0; /* be aggressive */ in inet_peer_gc() 158 ttl = inet_peer_maxttl in inet_peer_gc() 164 if (delta < ttl || !refcount_dec_if_one(&p->refcnt)) in inet_peer_gc()
|
D | ah4.c | 135 top_iph->ttl = iph->ttl; in ah_output_done() 194 iph->ttl = top_iph->ttl; in ah_output() 211 top_iph->ttl = 0; in ah_output() 251 top_iph->ttl = iph->ttl; in ah_output() 385 iph->ttl = 0; in ah_input()
|
D | ip_output.c | 132 int ttl = inet->uc_ttl; in ip_select_ttl() local 134 if (ttl < 0) in ip_select_ttl() 135 ttl = ip4_dst_hoplimit(dst); in ip_select_ttl() 136 return ttl; in ip_select_ttl() 158 iph->ttl = ip_select_ttl(inet, &rt->dst); in ip_build_and_send_pkt() 376 if (ip_hdr(skb)->ttl == 0) { in ip_mc_output() 487 iph->ttl = ip_select_ttl(inet, &rt->dst); in __ip_queue_xmit() 1154 cork->ttl = ipc->ttl; in ip_setup_cork() 1357 __u8 ttl; in __ip_make_skb() local 1396 if (cork->ttl != 0) in __ip_make_skb() [all …]
|
/Linux-v4.19/tools/testing/selftests/drivers/net/mlxsw/ |
D | mirror_gre.sh | 21 ttl 100 tos inherit allow-localremote \ 48 ttl 100 tos inherit allow-localremote 120 ip link set dev $tundev type $type ttl inherit 124 ip link set dev $tundev type $type ttl 100
|
/Linux-v4.19/tools/testing/selftests/net/forwarding/ |
D | mirror_gre_topo_lib.sh | 64 ttl 100 tos inherit 67 ttl 100 tos inherit allow-localremote
|
/Linux-v4.19/include/uapi/linux/netfilter/ |
D | nfnetlink_osf.h | 51 __u32 ttl; member 57 __u8 ttl, df; member
|
/Linux-v4.19/net/batman-adv/ |
D | bat_v_ogm.c | 214 ntohl(ogm_packet->throughput), ogm_packet->ttl, in batadv_v_ogm_send() 367 if (ogm_received->ttl <= 1) { in batadv_v_ogm_forward() 390 ogm_forward->ttl--; in batadv_v_ogm_forward() 395 ogm_forward->ttl, if_incoming->net_dev->name); in batadv_v_ogm_forward() 467 orig_ifinfo->last_ttl = ogm2->ttl; in batadv_v_ogm_metric_update() 478 neigh_ifinfo->last_ttl = ogm2->ttl; in batadv_v_ogm_metric_update() 690 ntohl(ogm_packet->seqno), ogm_throughput, ogm_packet->ttl, in batadv_v_ogm_process() 875 ogm_packet->ttl = BATADV_TTL; in batadv_v_ogm_init()
|
/Linux-v4.19/net/sched/ |
D | act_tunnel_key.c | 216 u8 tos, ttl; in tunnel_key_init() local 277 ttl = 0; in tunnel_key_init() 279 ttl = nla_get_u8(tb[TCA_TUNNEL_KEY_ENC_TTL]); in tunnel_key_init() 289 metadata = __ip_tun_set_dst(saddr, daddr, tos, ttl, in tunnel_key_init() 300 metadata = __ipv6_tun_set_dst(&saddr, &daddr, tos, ttl, dst_port, in tunnel_key_init() 523 if (key->ttl && nla_put_u8(skb, TCA_TUNNEL_KEY_ENC_TTL, key->ttl)) in tunnel_key_dump()
|
/Linux-v4.19/include/linux/qed/ |
D | tcp_common.h | 108 u8 ttl; member 174 u8 ttl; member 244 u8 ttl; member
|
/Linux-v4.19/net/ipv4/netfilter/ |
D | nf_reject_ipv4.c | 49 __u8 protocol, int ttl) in nf_reject_iphdr_put() argument 64 niph->ttl = ttl; in nf_reject_iphdr_put()
|