| /linux-6.15/net/netfilter/ |
| H A 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()
|
| H A 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()
|
| H A D | nft_osf.c | 10 u8 ttl; member 47 if (!nf_osf_find(skb, nf_osf_fingers, priv->ttl, &data)) { in nft_osf_eval() 66 u8 ttl; in nft_osf_init() local 72 ttl = nla_get_u8(tb[NFTA_OSF_TTL]); in nft_osf_init() 73 if (ttl > 2) in nft_osf_init() 75 priv->ttl = ttl; in nft_osf_init() 95 if (nla_put_u8(skb, NFTA_OSF_TTL, priv->ttl)) in nft_osf_dump() 143 priv->ttl != osf->ttl) { in nft_osf_reduce()
|
| H A 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() 180 u_int16_t family, u_int8_t ttl) in recent_entry_init() argument 195 e->ttl = ttl; in recent_entry_init() 248 u_int8_t ttl; in recent_mt() local 259 ttl = iph->ttl; in recent_mt() 268 ttl = iph->hop_limit; in recent_mt() 274 ttl++; in recent_mt() 282 (info->check_set & XT_RECENT_TTL) ? ttl : 0); in recent_mt() [all …]
|
| H A 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() 218 ttl_check = (info->flags & NF_OSF_TTL) ? info->ttl : 0; in nf_osf_match() 241 f->ttl - ip->ttl); in nf_osf_match()
|
| /linux-6.15/include/uapi/linux/ |
| H A D | batadv_packet.h | 220 __u8 ttl; member 246 __u8 ttl; member 292 __u8 ttl; member 315 __u8 ttl; member 344 __u8 ttl; member 383 __u8 ttl; member 417 __u8 ttl; member 458 __u8 ttl; member 488 __u8 ttl; member 508 __u8 ttl; member [all …]
|
| /linux-6.15/net/xfrm/ |
| H A D | xfrm_inout.h | 17 XFRM_MODE_SKB_CB(skb)->ttl = iph->ttl; in xfrm4_extract_header() 32 XFRM_MODE_SKB_CB(skb)->ttl = iph->hop_limit; in xfrm6_extract_header() 52 iph->hop_limit = XFRM_MODE_SKB_CB(skb)->ttl; in xfrm6_beet_make_header() 67 iph->ttl = XFRM_MODE_SKB_CB(skb)->ttl; in xfrm4_beet_make_header()
|
| /linux-6.15/arch/um/drivers/ |
| H A 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-6.15/net/mpls/ |
| H A D | mpls_iptunnel.c | 52 unsigned int ttl; in mpls_xmit() local 78 ttl = tun_encap_info->default_ttl; in mpls_xmit() 81 ttl = net->mpls.default_ttl; in mpls_xmit() 83 ttl = ip_hdr(skb)->ttl; in mpls_xmit() 87 ttl = tun_encap_info->default_ttl; in mpls_xmit() 90 ttl = net->mpls.default_ttl; in mpls_xmit() 92 ttl = ipv6_hdr(skb)->hop_limit; in mpls_xmit() 127 ttl, 0, bos); in mpls_xmit()
|
| /linux-6.15/net/mac80211/ |
| H A D | mesh_hwmp.c | 159 *pos++ = ttl; in mesh_path_sel_frame_tx() 275 *pos++ = ttl; in mesh_path_error_tx() 685 --ttl; in hwmp_preq_frame_process() 740 if (ttl <= 1) { in hwmp_prep_frame_process() 757 --ttl; in hwmp_prep_frame_process() 785 u8 ttl; in hwmp_perr_frame_process() local 792 if (ttl <= 1) { in hwmp_perr_frame_process() 796 ttl--; in hwmp_perr_frame_process() 912 if (ttl <= 1) { in hwmp_rann_frame_process() 917 ttl--; in hwmp_rann_frame_process() [all …]
|
| /linux-6.15/tools/testing/selftests/drivers/net/mlxsw/ |
| H A D | vxlan.sh | 92 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789 109 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789 126 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789 144 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789 \ 163 ttl 20 tos inherit dstport 4789 180 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789 234 ttl 20 tos 20 local $LOCAL_IP_1 dstport 4789 268 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789 345 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789 909 ip link set dev vxlan10 type vxlan ttl 10 [all …]
|
| H A D | vxlan_ipv6.sh | 28 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789 45 noudp6zerocsumrx udp6zerocsumtx ttl 20 tos inherit \ 54 udp6zerocsumrx noudp6zerocsumtx ttl 20 tos inherit \
|
| H A D | extack.sh | 43 dstport 4789 nolearning noudpcsum tos inherit ttl 100 56 dstport 4789 nolearning noudpcsum tos inherit ttl 100 67 ip link set dev vx2 type vxlan ttl 200 95 dstport 4789 tos inherit ttl 100 123 dstport 4789 tos inherit ttl 100
|
| H A D | mirror_gre.sh | 28 ttl 100 tos inherit allow-localremote \ 55 ttl 100 tos inherit allow-localremote 127 ip link set dev $tundev type $type ttl inherit 131 ip link set dev $tundev type $type ttl 100
|
| /linux-6.15/include/net/ |
| H A 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()
|
| H A D | dst_metadata.h | 199 __u8 tos, __u8 ttl, in __ip_tun_set_dst() argument 212 saddr, daddr, tos, ttl, in __ip_tun_set_dst() 224 return __ip_tun_set_dst(iph->saddr, iph->daddr, iph->tos, iph->ttl, in ip_tun_rx_dst() 230 __u8 tos, __u8 ttl, in __ipv6_tun_set_dst() argument 255 info->key.ttl = ttl; in __ipv6_tun_set_dst()
|
| H A D | mpls.h | 31 unsigned int ttl, in mpls_entry_encode() argument 41 (ttl << MPLS_LS_TTL_SHIFT)); in mpls_entry_encode()
|
| /linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | tc_tun.c | 25 u8 ttl; member 151 if (!attr->ttl) in mlx5e_route_lookup_ipv4_get() 239 attr.ttl = tun_key->ttl; in mlx5e_tc_tun_create_header_ipv4() 290 ip->ttl = attr.ttl; in mlx5e_tc_tun_create_header_ipv4() 355 attr.ttl = tun_key->ttl; in mlx5e_tc_tun_update_header_ipv4() 395 ip->ttl = attr.ttl; in mlx5e_tc_tun_update_header_ipv4() 460 if (!attr->ttl) in mlx5e_route_lookup_ipv6_get() 507 attr.ttl = tun_key->ttl; in mlx5e_tc_tun_create_header_ipv6() 621 attr.ttl = tun_key->ttl; in mlx5e_tc_tun_update_header_ipv6() 921 match.mask->ttl); in mlx5e_tc_tun_parse() [all …]
|
| /linux-6.15/tools/testing/selftests/net/ |
| H A D | l2_tos_ttl_inherit.sh | 96 ttl="fixed $test_ttl" 99 ttl="inherit $expected_ttl" 102 "$type" "$outer" "$inner" "$tos" "$ttl" "$vlan" 141 remote 198.18.0.2 tos $test_tos ttl $test_ttl \ 144 remote 198.18.0.1 tos $test_tos ttl $test_ttl \ 156 ttl $test_ttl $vxlan $geneve 159 ttl $test_ttl $vxlan $geneve 349 captured_ttl="$(get_field "ttl" "$out")"
|
| /linux-6.15/arch/arm64/include/asm/ |
| H A D | tlbflush.h | 113 u64 ttl = level & 3; \ 114 ttl |= get_trans_granule() << 2; \ 116 arg |= FIELD_PREP(TLBI_TTL_MASK, ttl); \ 152 #define __TLBI_VADDR_RANGE(baddr, asid, scale, num, ttl) \ argument 155 unsigned long __ttl = (ttl >= 1 && ttl <= 3) ? ttl : 0; \
|
| /linux-6.15/fs/nfs/ |
| H A D | dns_resolve.c | 180 long ttl; in nfs_dns_show() local 187 ttl = item->h.expiry_time - seconds_since_boot(); in nfs_dns_show() 188 if (ttl < 0) in nfs_dns_show() 189 ttl = 0; in nfs_dns_show() 198 seq_printf(m, "%15s %ld\n", item->hostname, ttl); in nfs_dns_show() 233 unsigned int ttl; in nfs_dns_parse() local 256 if (get_uint(&buf, &ttl) < 0) in nfs_dns_parse() 258 if (ttl == 0) in nfs_dns_parse() 260 key.h.expiry_time = ttl + seconds_since_boot(); in nfs_dns_parse()
|
| /linux-6.15/tools/testing/selftests/bpf/progs/ |
| H A D | test_cls_redirect_dynptr.c | 318 uint8_t ttl; in forward_with_gre() local 323 &ttl, 1); in forward_with_gre() 329 if (ttl == 0) { in forward_with_gre() 334 ttl--; in forward_with_gre() 337 &ttl, 1, 0); in forward_with_gre() 343 uint8_t ttl; in forward_with_gre() local 347 skb, payload_off + offsetof(struct iphdr, ttl), &ttl, in forward_with_gre() 354 if (ttl == 0) { in forward_with_gre() 365 ttl - 1, 2); in forward_with_gre() 371 ttl--; in forward_with_gre() [all …]
|
| H A D | test_cls_redirect.c | 424 uint8_t ttl; in forward_with_gre() local 429 &ttl, 1); in forward_with_gre() 435 if (ttl == 0) { in forward_with_gre() 440 ttl--; in forward_with_gre() 443 &ttl, 1, 0); in forward_with_gre() 449 uint8_t ttl; in forward_with_gre() local 453 skb, payload_off + offsetof(struct iphdr, ttl), &ttl, in forward_with_gre() 460 if (ttl == 0) { in forward_with_gre() 471 ttl - 1, 2); in forward_with_gre() 477 ttl--; in forward_with_gre() [all …]
|
| /linux-6.15/fs/smb/client/ |
| H A D | dfs_cache.c | 42 int ttl; /* DFS_REREFERRAL_V3.TimeToLive */ member 242 ce->srvtype == DFS_TYPE_ROOT ? "root" : "link", ce->ttl, in dump_ce() 270 ref->ttl, ref->ttl / 60); in dump_refs() 349 static inline struct timespec64 get_expire_time(int ttl) in get_expire_time() argument 352 .tv_sec = ttl, in get_expire_time() 389 ce->ttl = max_t(int, refs[0].ttl, CACHE_MIN_TTL); in copy_ref_data() 390 ce->etime = get_expire_time(ce->ttl); in copy_ref_data() 479 int ttl; in add_cache_entry_locked() local 496 ttl = min_t(int, atomic_read(&dfs_cache_ttl), ce->ttl); in add_cache_entry_locked() 497 atomic_set(&dfs_cache_ttl, ttl); in add_cache_entry_locked() [all …]
|
| /linux-6.15/net/ipv4/ |
| H A D | ip_tunnel.c | 596 u8 tos, ttl; in ip_md_tunnel_xmit() local 652 ttl = key->ttl; in ip_md_tunnel_xmit() 653 if (ttl == 0) { in ip_md_tunnel_xmit() 655 ttl = inner_iph->ttl; in ip_md_tunnel_xmit() 659 ttl = ip4_dst_hoplimit(&rt->dst); in ip_md_tunnel_xmit() 696 u8 tos, ttl; in ip_tunnel_xmit() local 835 ttl = tnl_params->ttl; in ip_tunnel_xmit() 836 if (ttl == 0) { in ip_tunnel_xmit() 838 ttl = inner_iph->ttl; in ip_tunnel_xmit() 891 t->parms.iph.ttl = p->iph.ttl; in ip_tunnel_update() [all …]
|