/Linux-v5.4/net/netfilter/ |
D | xt_hl.c | 28 const u8 ttl = ip_hdr(skb)->ttl; in ttl_mt() local 32 return ttl == info->ttl; in ttl_mt() 34 return ttl != info->ttl; in ttl_mt() 36 return ttl < info->ttl; in ttl_mt() 38 return ttl > info->ttl; in ttl_mt()
|
D | xt_HL.c | 39 new_ttl = info->ttl; in ttl_tg() 42 new_ttl = iph->ttl + info->ttl; in ttl_tg() 47 new_ttl = iph->ttl - info->ttl; in ttl_tg() 52 new_ttl = iph->ttl; in ttl_tg() 56 if (new_ttl != iph->ttl) { in ttl_tg() 57 csum_replace2(&iph->check, htons(iph->ttl << 8), in ttl_tg() 59 iph->ttl = new_ttl; in ttl_tg() 107 if (info->mode != IPT_TTL_SET && info->ttl == 0) in ttl_tg_check()
|
D | nft_osf.c | 10 u8 ttl; member 42 if (!nf_osf_find(skb, nf_osf_fingers, priv->ttl, &data)) { in nft_osf_eval() 62 u8 ttl; in nft_osf_init() local 65 ttl = nla_get_u8(tb[NFTA_OSF_TTL]); in nft_osf_init() 66 if (ttl > 2) in nft_osf_init() 68 priv->ttl = ttl; in nft_osf_init() 91 if (nla_put_u8(skb, NFTA_OSF_TTL, priv->ttl)) in nft_osf_dump()
|
D | xt_recent.c | 71 u_int8_t ttl; member 126 u_int8_t ttl) in recent_entry_lookup() argument 139 (ttl == e->ttl || ttl == 0 || e->ttl == 0)) in recent_entry_lookup() 173 u_int16_t family, u_int8_t ttl) in recent_entry_init() argument 188 e->ttl = ttl; in recent_entry_init() 241 u_int8_t ttl; in recent_mt() local 252 ttl = iph->ttl; in recent_mt() 261 ttl = iph->hop_limit; in recent_mt() 267 ttl++; in recent_mt() 275 (info->check_set & XT_RECENT_TTL) ? ttl : 0); in recent_mt() [all …]
|
D | nfnetlink_osf.c | 40 return ip->ttl == f_ttl; in nf_osf_ttl() 43 else if (ip->ttl <= f_ttl) in nf_osf_ttl() 48 ret = (ip->ttl == f_ttl); in nf_osf_ttl() 75 if (ctx->totlen != f->ss || !nf_osf_ttl(skb, ttl_check, f->ttl)) in nf_osf_match_one() 215 ttl_check = (info->flags & NF_OSF_TTL) ? info->ttl : 0; in nf_osf_match() 238 f->ttl - ip->ttl); in nf_osf_match()
|
/Linux-v5.4/include/uapi/linux/ |
D | batadv_packet.h | 211 __u8 ttl; member 237 __u8 ttl; member 283 __u8 ttl; member 306 __u8 ttl; member 335 __u8 ttl; member 374 __u8 ttl; member 408 __u8 ttl; member 449 __u8 ttl; member 479 __u8 ttl; member 508 __u8 ttl; member [all …]
|
/Linux-v5.4/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-v5.4/net/mpls/ |
D | mpls_iptunnel.c | 52 unsigned int ttl; in mpls_xmit() local 80 ttl = tun_encap_info->default_ttl; in mpls_xmit() 83 ttl = net->mpls.default_ttl; in mpls_xmit() 85 ttl = ip_hdr(skb)->ttl; in mpls_xmit() 89 ttl = tun_encap_info->default_ttl; in mpls_xmit() 92 ttl = net->mpls.default_ttl; in mpls_xmit() 94 ttl = ipv6_hdr(skb)->hop_limit; in mpls_xmit() 129 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-v5.4/net/mac80211/ |
D | mesh_hwmp.c | 104 u8 hop_count, u8 ttl, in mesh_path_sel_frame_tx() argument 159 *pos++ = ttl; in mesh_path_sel_frame_tx() 235 u8 ttl, const u8 *target, u32 target_sn, in mesh_path_error_tx() argument 273 *pos++ = ttl; in mesh_path_error_tx() 564 u8 target_flags, ttl, flags; in hwmp_preq_frame_process() local 636 ttl = ifmsh->mshcfg.element_ttl; in hwmp_preq_frame_process() 637 if (ttl != 0) { in hwmp_preq_frame_process() 641 target_sn, mgmt->sa, 0, ttl, in hwmp_preq_frame_process() 653 ttl = PREQ_IE_TTL(preq_elem); in hwmp_preq_frame_process() 655 if (ttl <= 1) { in hwmp_preq_frame_process() [all …]
|
/Linux-v5.4/tools/testing/selftests/drivers/net/mlxsw/ |
D | vxlan.sh | 66 ttl 20 tos inherit local 198.51.100.1 dstport 4789 83 ttl 20 tos inherit local 198.51.100.1 dstport 4789 100 ttl 20 tos inherit local 198.51.100.1 dstport 4789 118 ttl 20 tos inherit local 198.51.100.1 dstport 4789 \ 137 ttl 20 tos inherit dstport 4789 154 ttl 20 tos inherit local 2001:db8::1 dstport 4789 171 ttl 20 tos inherit local 198.51.100.1 dstport 4789 189 ttl 20 tos inherit local 198.51.100.1 dstport 4789 dev dummy1 207 ttl 20 tos inherit local 198.51.100.1 dstport 4789 \ 225 ttl 20 tos 20 local 198.51.100.1 dstport 4789 [all …]
|
D | extack.sh | 40 dstport 4789 nolearning noudpcsum tos inherit ttl 100 51 dstport 4789 nolearning noudpcsum tos inherit ttl 100 62 ip link set dev vx2 type vxlan ttl 200 88 dstport 4789 tos inherit ttl 100 118 dstport 4789 tos inherit ttl 100
|
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-v5.4/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()
|
/Linux-v5.4/net/xfrm/ |
D | xfrm_inout.h | 20 iph->hop_limit = XFRM_MODE_SKB_CB(skb)->ttl; in xfrm6_beet_make_header() 35 iph->ttl = XFRM_MODE_SKB_CB(skb)->ttl; in xfrm4_beet_make_header()
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | tc_tun.c | 219 u8 nud_state, ttl; in mlx5e_tc_tun_create_header_ipv4() local 227 ttl = tun_key->ttl; in mlx5e_tc_tun_create_header_ipv4() 230 &fl4, &n, &ttl); in mlx5e_tc_tun_create_header_ipv4() 283 ip->ttl = ttl; in mlx5e_tc_tun_create_header_ipv4() 339 u8 nud_state, ttl; in mlx5e_tc_tun_create_header_ipv6() local 342 ttl = tun_key->ttl; in mlx5e_tc_tun_create_header_ipv6() 349 &fl6, &n, &ttl); in mlx5e_tc_tun_create_header_ipv6() 401 ip6h->hop_limit = ttl; in mlx5e_tc_tun_create_header_ipv6()
|
/Linux-v5.4/fs/nfs/ |
D | dns_resolve.c | 181 long ttl; in nfs_dns_show() local 188 ttl = item->h.expiry_time - seconds_since_boot(); in nfs_dns_show() 189 if (ttl < 0) in nfs_dns_show() 190 ttl = 0; in nfs_dns_show() 199 seq_printf(m, "%15s %ld\n", item->hostname, ttl); in nfs_dns_show() 234 unsigned int ttl; in nfs_dns_parse() local 257 if (get_uint(&buf, &ttl) < 0) in nfs_dns_parse() 259 if (ttl == 0) in nfs_dns_parse() 261 key.h.expiry_time = ttl + seconds_since_boot(); in nfs_dns_parse()
|
/Linux-v5.4/net/ipv4/ |
D | ip_tunnel.c | 558 u8 tos, ttl; in ip_md_tunnel_xmit() local 609 ttl = key->ttl; in ip_md_tunnel_xmit() 610 if (ttl == 0) { in ip_md_tunnel_xmit() 612 ttl = inner_iph->ttl; in ip_md_tunnel_xmit() 614 ttl = ((const struct ipv6hdr *)inner_iph)->hop_limit; in ip_md_tunnel_xmit() 616 ttl = ip4_dst_hoplimit(&rt->dst); in ip_md_tunnel_xmit() 630 iptunnel_xmit(NULL, rt, skb, fl4.saddr, fl4.daddr, proto, tos, ttl, in ip_md_tunnel_xmit() 655 u8 tos, ttl; in ip_tunnel_xmit() local 790 ttl = tnl_params->ttl; in ip_tunnel_xmit() 791 if (ttl == 0) { in ip_tunnel_xmit() [all …]
|
D | xfrm4_state.c | 26 XFRM_MODE_SKB_CB(skb)->ttl = iph->ttl; in xfrm4_extract_header()
|
D | ip_tunnel_core.c | 48 __u8 tos, __u8 ttl, __be16 df, bool xnet) in iptunnel_xmit() argument 75 iph->ttl = ttl; in iptunnel_xmit() 263 tun_info->key.ttl = nla_get_u8(tb[LWTUNNEL_IP_TTL]); in ip_tun_build_state() 298 nla_put_u8(skb, LWTUNNEL_IP_TTL, tun_info->key.ttl) || in ip_tun_fill_encap_info() 372 tun_info->key.ttl = nla_get_u8(tb[LWTUNNEL_IP6_HOPLIMIT]); in ip6_tun_build_state() 398 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()
|
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/flower/ |
D | match.c | 171 ext->ttl = match.key->ttl; in nfp_flower_compile_ip_ext() 173 msk->ttl = match.mask->ttl; in nfp_flower_compile_ip_ext() 313 ext->ttl = match.key->ttl; in nfp_flower_compile_tun_ip_ext() 315 msk->ttl = match.mask->ttl; in nfp_flower_compile_tun_ip_ext()
|
/Linux-v5.4/tools/testing/selftests/net/forwarding/ |
D | mirror_gre_topo_lib.sh | 64 ttl 100 tos inherit 67 ttl 100 tos inherit allow-localremote
|
/Linux-v5.4/include/uapi/linux/netfilter/ |
D | nfnetlink_osf.h | 51 __u32 ttl; member 57 __u8 ttl, df; member
|