Home
last modified time | relevance | path

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

12345678910

/linux/net/netfilter/
H A Dxt_hl.c41 const u8 ttl = ip_hdr(skb)->ttl; in ttl_mt() local
45 return ttl == info->ttl; in ttl_mt()
47 return ttl != info->ttl; in ttl_mt()
49 return ttl < info->ttl; in ttl_mt()
51 return ttl > info->ttl; in ttl_mt()
H 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()
H A Dnft_osf.c10 u8 ttl; member
52 if (!nf_osf_find(skb, nf_osf_fingers, priv->ttl, &data)) { in nft_osf_eval()
71 u8 ttl; in nft_osf_init() local
77 ttl = nla_get_u8(tb[NFTA_OSF_TTL]); in nft_osf_init()
78 if (ttl > 2) in nft_osf_init()
80 priv->ttl = ttl; in nft_osf_init()
100 if (nla_put_u8(skb, NFTA_OSF_TTL, priv->ttl)) in nft_osf_dump()
H 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
[all...]
/linux/include/uapi/linux/
H A Dbatadv_packet.h226 __u8 ttl; member
252 __u8 ttl; member
298 __u8 ttl; member
321 __u8 ttl; member
350 __u8 ttl; member
389 __u8 ttl; member
423 __u8 ttl; member
464 __u8 ttl; member
494 __u8 ttl; member
514 __u8 ttl; member
[all …]
/linux/net/xfrm/
H 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/tools/testing/selftests/drivers/net/mlxsw/
H 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
198 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789 dev dummy1
216 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789 \
234 ttl 20 tos 20 local $LOCAL_IP_1 dstport 4789
251 ttl inherit tos inherit local $LOCAL_IP_1 dstport 4789
[all …]
H 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 \
H A Dextack.sh43 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 Dmirror_gre.sh28 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/net/batman-adv/
H A Drouting.c240 BUILD_BUG_ON(offsetof(struct batadv_ogm_packet, ttl) != ttl_offset); in batadv_skb_decrement_ttl()
241 BUILD_BUG_ON(offsetof(struct batadv_ogm2_packet, ttl) != ttl_offset); in batadv_skb_decrement_ttl()
242 BUILD_BUG_ON(offsetof(struct batadv_icmp_header, ttl) != ttl_offset); in batadv_skb_decrement_ttl()
243 BUILD_BUG_ON(offsetof(struct batadv_icmp_packet, ttl) != ttl_offset); in batadv_skb_decrement_ttl()
244 BUILD_BUG_ON(offsetof(struct batadv_icmp_tp_packet, ttl) != ttl_offset); in batadv_skb_decrement_ttl()
245 BUILD_BUG_ON(offsetof(struct batadv_icmp_packet_rr, ttl) != ttl_offset); in batadv_skb_decrement_ttl()
246 BUILD_BUG_ON(offsetof(struct batadv_unicast_packet, ttl) != ttl_offset); in batadv_skb_decrement_ttl()
247 BUILD_BUG_ON(offsetof(struct batadv_frag_packet, ttl) != ttl_offset); in batadv_skb_decrement_ttl()
248 BUILD_BUG_ON(offsetof(struct batadv_bcast_packet, ttl) != ttl_offset); in batadv_skb_decrement_ttl()
249 BUILD_BUG_ON(offsetof(struct batadv_mcast_packet, ttl) != ttl_offset); in batadv_skb_decrement_ttl()
[all …]
/linux/include/net/
H 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()
H A Ddst_metadata.h205 __u8 tos, __u8 ttl, in __ip_tun_set_dst()
218 saddr, daddr, tos, ttl, in __ip_tun_set_dst()
231 tun_dst = __ip_tun_set_dst(iph->saddr, iph->daddr, iph->tos, iph->ttl, in ip_tun_rx_dst()
242 __u8 tos, __u8 ttl, in __ipv6_tun_set_dst()
267 info->key.ttl = ttl; in __ipv6_tun_set_dst()
203 __ip_tun_set_dst(__be32 saddr,__be32 daddr,__u8 tos,__u8 ttl,__be16 tp_dst,const unsigned long * flags,__be64 tunnel_id,int md_size) __ip_tun_set_dst() argument
240 __ipv6_tun_set_dst(const struct in6_addr * saddr,const struct in6_addr * daddr,__u8 tos,__u8 ttl,__be16 tp_dst,__be32 label,const unsigned long * flags,__be64 tunnel_id,int md_size) __ipv6_tun_set_dst() argument
H A Dmpls.h31 unsigned int ttl, in mpls_entry_encode() argument
41 (ttl << MPLS_LS_TTL_SHIFT)); in mpls_entry_encode()
/linux/tools/testing/selftests/net/
H 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/tools/testing/selftests/bpf/progs/
H A Dtest_cls_redirect.c422 uint8_t ttl; in forward_with_gre()
427 &ttl, 1); in forward_with_gre()
433 if (ttl == 0) { in forward_with_gre()
438 ttl--; in forward_with_gre()
441 &ttl, 1, 0); in forward_with_gre()
447 uint8_t ttl; in forward_with_gre()
451 skb, payload_off + offsetof(struct iphdr, ttl), &ttl, in forward_with_gre()
458 if (ttl == 0) { in forward_with_gre()
468 skb, payload_off + offsetof(struct iphdr, check), ttl, in forward_with_gre()
424 uint8_t ttl; forward_with_gre() local
449 uint8_t ttl; forward_with_gre() local
[all...]
H A Dtest_cls_redirect_dynptr.c318 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()
364 skb, payload_off + offsetof(struct iphdr, check), ttl, in forward_with_gre()
[all...]
/linux/arch/arm64/kvm/
H A Dnested.c521 static unsigned int __ttl_to_size(u8 ttl) in __ttl_to_size()
523 int level = ttl & 3; in __ttl_to_size()
524 int gran = (ttl >> 2) & 3; in __ttl_to_size()
577 static unsigned int ttl_to_size(u8 ttl) in pgshift_level_to_ttl()
579 return __ttl_to_size(ttl) ?: SZ_1G; in pgshift_level_to_ttl()
584 u8 ttl; in pgshift_level_to_ttl()
595 ttl = TLBI_TTL_TG_4K; in pgshift_level_to_ttl()
598 ttl = TLBI_TTL_TG_16K; in pgshift_level_to_ttl()
601 ttl = TLBI_TTL_TG_64K; in pgshift_level_to_ttl()
607 ttl <<
513 __ttl_to_size(u8 ttl) __ttl_to_size() argument
569 ttl_to_size(u8 ttl) ttl_to_size() argument
576 u8 ttl; pgshift_level_to_ttl() local
615 u8 ttl, level; get_guest_mapping_ttl() local
685 u8 ttl; compute_tlb_inval_range() local
[all...]
/linux/net/ipv4/
H A Dip_tunnel.c586 u8 tos, ttl; in ip_md_tunnel_xmit()
643 ttl = key->ttl; in ip_md_tunnel_xmit()
644 if (ttl == 0) { in ip_md_tunnel_xmit()
646 ttl = inner_iph->ttl; in ip_md_tunnel_xmit()
648 ttl = ((const struct ipv6hdr *)inner_iph)->hop_limit; in ip_md_tunnel_xmit()
650 ttl = ip4_dst_hoplimit(&rt->dst); in ip_md_tunnel_xmit()
661 iptunnel_xmit(NULL, rt, skb, fl4.saddr, fl4.daddr, proto, tos, ttl, in ip_md_tunnel_xmit()
688 u8 tos, ttl; in ip_tunnel_xmit()
582 u8 tos, ttl; ip_md_tunnel_xmit() local
683 u8 tos, ttl; ip_tunnel_xmit() local
[all...]
H A Dah4.c138 top_iph->ttl = iph->ttl; in ah_output_done()
197 iph->ttl = top_iph->ttl; in ah_output()
214 top_iph->ttl = 0; in ah_output()
254 top_iph->ttl = iph->ttl; in ah_output()
393 iph->ttl = 0; in ah_input()
/linux/fs/smb/client/
H A Ddfs_cache.c42 int ttl; /* DFS_REREFERRAL_V3.TimeToLive */ member
176 "cache entry: path=%s,type=%s,ttl=%d,etime=%ld,hdr_flags=0x%x,ref_flags=0x%x,interlink=%s,path_consumed=%d,expired=%s\n", in dfscache_proc_show()
178 ce->ttl, ce->etime.tv_nsec, ce->hdr_flags, ce->ref_flags, in dfscache_proc_show()
243 cifs_dbg(FYI, "cache entry: path=%s,type=%s,ttl=%d,etime=%ld,hdr_flags=0x%x,ref_flags=0x%x,interlink=%s,path_consumed=%d,expired=%s\n", in dump_ce()
245 ce->srvtype == DFS_TYPE_ROOT ? "root" : "link", ce->ttl, in dump_ce()
270 "ttl: %d (%dm)\n", in dump_refs()
273 ref->ttl, ref->ttl / 60); in dump_refs()
352 static inline struct timespec64 get_expire_time(int ttl) in get_expire_time() argument
355 .tv_sec = ttl, in get_expire_time()
482 int ttl; add_cache_entry_locked() local
[all...]
/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Dmatch.c230 tmp = match.key->ttl & match.mask->ttl; in nfp_flower_compile_ip_ext()
231 ext->ttl |= tmp & (~msk->ttl); in nfp_flower_compile_ip_ext()
232 msk->ttl |= match.mask->ttl; in nfp_flower_compile_ip_ext()
447 ext->ttl |= match.key->ttl & match.mask->ttl; in nfp_flower_compile_tun_ip_ext()
449 msk->ttl |= match.mask->ttl; in nfp_flower_compile_tun_ip_ext()
/linux/include/linux/
H A Dieee80211-mesh.h25 u8 ttl; member
40 u8 ttl; member
59 u8 ttl; member
83 u8 ttl; member
/linux/tools/testing/selftests/net/forwarding/
H A Dmirror_gre_topo_lib.sh64 ttl 100 tos inherit
67 ttl 100 tos inherit allow-localremote
/linux/include/uapi/linux/netfilter/
H A Dnfnetlink_osf.h51 __u32 ttl; member
57 __u8 ttl, df; member

12345678910