Home
last modified time | relevance | path

Searched refs:ttl (Results 1 – 25 of 267) sorted by relevance

1234567891011

/linux-6.3-rc2/net/netfilter/
A Dxt_hl.c28 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()
A Dxt_HL.c39 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()
A Dnft_osf.c10 u8 ttl; member
47 if (!nf_osf_find(skb, nf_osf_fingers, priv->ttl, &data)) { in nft_osf_eval()
67 u8 ttl; in nft_osf_init() local
73 ttl = nla_get_u8(tb[NFTA_OSF_TTL]); in nft_osf_init()
74 if (ttl > 2) in nft_osf_init()
76 priv->ttl = ttl; in nft_osf_init()
100 if (nla_put_u8(skb, NFTA_OSF_TTL, priv->ttl)) in nft_osf_dump()
149 priv->ttl != osf->ttl) { in nft_osf_reduce()
A Dxt_recent.c71 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 …]
A Dnfnetlink_osf.c40 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.3-rc2/include/uapi/linux/
A Dbatadv_packet.h213 __u8 ttl; member
239 __u8 ttl; member
285 __u8 ttl; member
308 __u8 ttl; member
337 __u8 ttl; member
376 __u8 ttl; member
410 __u8 ttl; member
451 __u8 ttl; member
481 __u8 ttl; member
510 __u8 ttl; member
[all …]
/linux-6.3-rc2/net/xfrm/
A Dxfrm_inout.h17 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.3-rc2/arch/um/drivers/
A Dumcast_kern.c23 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.3-rc2/net/mpls/
A Dmpls_iptunnel.c52 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()
/linux-6.3-rc2/net/mac80211/
A Dmesh_hwmp.c159 *pos++ = ttl; in mesh_path_sel_frame_tx()
273 *pos++ = ttl; in mesh_path_error_tx()
668 --ttl; in hwmp_preq_frame_process()
723 if (ttl <= 1) { in hwmp_prep_frame_process()
740 --ttl; in hwmp_prep_frame_process()
768 u8 ttl; in hwmp_perr_frame_process() local
775 if (ttl <= 1) { in hwmp_perr_frame_process()
779 ttl--; in hwmp_perr_frame_process()
895 if (ttl <= 1) { in hwmp_rann_frame_process()
900 ttl--; in hwmp_rann_frame_process()
[all …]
/linux-6.3-rc2/tools/testing/selftests/drivers/net/mlxsw/
A Dvxlan.sh92 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
896 ip link set dev vxlan10 type vxlan ttl 10
[all …]
A Dvxlan_ipv6.sh28 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789
45 noudp6zerocsumrx udp6zerocsumtx ttl 20 tos inherit \
54 udp6zerocsumrx noudp6zerocsumtx ttl 20 tos inherit \
A Dextack.sh41 dstport 4789 nolearning noudpcsum tos inherit ttl 100
52 dstport 4789 nolearning noudpcsum tos inherit ttl 100
63 ip link set dev vx2 type vxlan ttl 200
89 dstport 4789 tos inherit ttl 100
117 dstport 4789 tos inherit ttl 100
A Dmirror_gre.sh21 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-6.3-rc2/include/net/
A Dnsh.h290 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()
A Ddst_metadata.h199 __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()
A Dmpls.h31 unsigned int ttl, in mpls_entry_encode() argument
41 (ttl << MPLS_LS_TTL_SHIFT)); in mpls_entry_encode()
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/en/
A Dtc_tun.c25 u8 ttl; member
154 if (!attr->ttl) in mlx5e_route_lookup_ipv4_get()
242 attr.ttl = tun_key->ttl; in mlx5e_tc_tun_create_header_ipv4()
293 ip->ttl = attr.ttl; in mlx5e_tc_tun_create_header_ipv4()
357 attr.ttl = tun_key->ttl; in mlx5e_tc_tun_update_header_ipv4()
397 ip->ttl = attr.ttl; in mlx5e_tc_tun_update_header_ipv4()
461 if (!attr->ttl) in mlx5e_route_lookup_ipv6_get()
508 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()
914 match.mask->ttl); in mlx5e_tc_tun_parse()
[all …]
/linux-6.3-rc2/tools/testing/selftests/net/
A Dl2_tos_ttl_inherit.sh96 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.3-rc2/fs/nfs/
A Ddns_resolve.c182 long ttl; in nfs_dns_show() local
189 ttl = item->h.expiry_time - seconds_since_boot(); in nfs_dns_show()
190 if (ttl < 0) in nfs_dns_show()
191 ttl = 0; in nfs_dns_show()
200 seq_printf(m, "%15s %ld\n", item->hostname, ttl); in nfs_dns_show()
235 unsigned int ttl; in nfs_dns_parse() local
258 if (get_uint(&buf, &ttl) < 0) in nfs_dns_parse()
260 if (ttl == 0) in nfs_dns_parse()
262 key.h.expiry_time = ttl + seconds_since_boot(); in nfs_dns_parse()
/linux-6.3-rc2/arch/arm64/include/asm/
A Dtlbflush.h109 u64 ttl = level & 3; \
110 ttl |= get_trans_granule() << 2; \
112 arg |= FIELD_PREP(TLBI_TTL_MASK, ttl); \
136 #define __TLBI_VADDR_RANGE(addr, asid, scale, num, ttl) \ argument
140 __ta |= (unsigned long)(ttl) << 37; \
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/
A Dtest_cls_redirect.c421 uint8_t ttl; in forward_with_gre() local
426 &ttl, 1); in forward_with_gre()
432 if (ttl == 0) { in forward_with_gre()
437 ttl--; in forward_with_gre()
440 &ttl, 1, 0); in forward_with_gre()
446 uint8_t ttl; in forward_with_gre() local
450 skb, payload_off + offsetof(struct iphdr, ttl), &ttl, in forward_with_gre()
457 if (ttl == 0) { in forward_with_gre()
468 ttl - 1, 2); in forward_with_gre()
474 ttl--; in forward_with_gre()
[all …]
/linux-6.3-rc2/net/ipv4/
A Dip_tunnel.c554 u8 tos, ttl; in ip_md_tunnel_xmit() local
606 ttl = key->ttl; in ip_md_tunnel_xmit()
607 if (ttl == 0) { in ip_md_tunnel_xmit()
609 ttl = inner_iph->ttl; in ip_md_tunnel_xmit()
613 ttl = ip4_dst_hoplimit(&rt->dst); in ip_md_tunnel_xmit()
650 u8 tos, ttl; in ip_tunnel_xmit() local
789 ttl = tnl_params->ttl; in ip_tunnel_xmit()
790 if (ttl == 0) { in ip_tunnel_xmit()
792 ttl = inner_iph->ttl; in ip_tunnel_xmit()
845 t->parms.iph.ttl = p->iph.ttl; in ip_tunnel_update()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/netronome/nfp/flower/
A Daction.c56 mpls_lse |= act->mpls_push.ttl << MPLS_LS_TTL_SHIFT; in nfp_fl_push_mpls()
96 if (act->mpls_mangle.ttl) { in nfp_fl_set_mpls()
448 if (ip_tun->key.ttl) { in nfp_fl_set_tun()
449 set_tun->ttl = ip_tun->key.ttl; in nfp_fl_set_tun()
460 set_tun->ttl = ip6_dst_hoplimit(dst); in nfp_fl_set_tun()
463 set_tun->ttl = net->ipv6.devconf_all->hop_limit; in nfp_fl_set_tun()
481 set_tun->ttl = ip4_dst_hoplimit(&rt->dst); in nfp_fl_set_tun()
549 __u8 ttl; member
592 case offsetof(struct iphdr, ttl): in nfp_fl_set_ip4()
602 set_ip_ttl_tos->ipv4_ttl &= ~ttl_word_mask->ttl; in nfp_fl_set_ip4()
[all …]
/linux-6.3-rc2/net/openvswitch/
A Dactions.c473 nh->ttl = new_ttl; in set_ip_ttl()
517 flow_key->ip.ttl = nh->ttl; in set_ipv4()
605 u8 ttl; in set_nsh() local
633 ttl = nsh_get_ttl(nh); in set_nsh()
634 ttl = OVS_MASKED(ttl, key.base.ttl, mask.base.ttl); in set_nsh()
635 flow_key->nsh.base.ttl = ttl; in set_nsh()
1254 key->ip.ttl = --nh->hop_limit; in execute_dec_ttl()
1265 if (nh->ttl <= 1) in execute_dec_ttl()
1268 old_ttl = nh->ttl--; in execute_dec_ttl()
1270 htons(nh->ttl << 8)); in execute_dec_ttl()
[all …]

Completed in 50 milliseconds

1234567891011