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

1234567891011

/linux-master/include/uapi/linux/netfilter_ipv4/
H A Dipt_ttl.h20 __u8 ttl; member in struct:ipt_ttl_info
H A Dipt_TTL.h20 __u8 ttl; member in struct:ipt_TTL_info
/linux-master/net/netfilter/
H A Dxt_hl.c28 const u8 ttl = ip_hdr(skb)->ttl; local
32 return ttl == info->ttl;
34 return ttl != info->ttl;
36 return ttl < info->ttl;
38 return ttl > info->ttl;
[all...]
H A Dxt_HL.c39 new_ttl = info->ttl;
42 new_ttl = iph->ttl + info->ttl;
47 new_ttl = iph->ttl - info->ttl;
52 new_ttl = iph->ttl;
56 if (new_ttl != iph->ttl) {
57 csum_replace2(&iph->check, htons(iph->ttl << 8),
59 iph->ttl = new_ttl;
107 if (info->mode != IPT_TTL_SET && info->ttl
[all...]
H A Dnft_osf.c10 u8 ttl; member in struct:nft_osf
47 if (!nf_osf_find(skb, nf_osf_fingers, priv->ttl, &data)) {
66 u8 ttl; local
72 ttl = nla_get_u8(tb[NFTA_OSF_TTL]);
73 if (ttl > 2)
75 priv->ttl = ttl;
95 if (nla_put_u8(skb, NFTA_OSF_TTL, priv->ttl))
144 priv->ttl != osf->ttl) {
[all...]
H A Dxt_recent.c71 u_int8_t ttl; member in struct:recent_entry
126 u_int8_t ttl)
139 (ttl == e->ttl || ttl == 0 || e->ttl == 0))
180 u_int16_t family, u_int8_t ttl)
195 e->ttl = ttl;
248 u_int8_t ttl; local
124 recent_entry_lookup(const struct recent_table *table, const union nf_inet_addr *addrp, u_int16_t family, u_int8_t ttl) argument
179 recent_entry_init(struct recent_table *t, const union nf_inet_addr *addr, u_int16_t family, u_int8_t ttl) argument
[all...]
/linux-master/net/xfrm/
H A Dxfrm_inout.h17 XFRM_MODE_SKB_CB(skb)->ttl = iph->ttl;
32 XFRM_MODE_SKB_CB(skb)->ttl = iph->hop_limit;
52 iph->hop_limit = XFRM_MODE_SKB_CB(skb)->ttl;
67 iph->ttl = XFRM_MODE_SKB_CB(skb)->ttl;
/linux-master/include/net/
H A Dmpls.h31 unsigned int ttl,
41 (ttl << MPLS_LS_TTL_SHIFT));
30 mpls_entry_encode(u32 label, unsigned int ttl, unsigned int tc, bool bos) argument
H A Dnsh.h290 static inline void nsh_set_flags_and_ttl(struct nshhdr *nsh, u8 flags, u8 ttl) argument
293 ((ttl << NSH_TTL_SHIFT) & NSH_TTL_MASK),
298 u8 ttl, u8 len)
302 ((ttl << NSH_TTL_SHIFT) & NSH_TTL_MASK) |
297 nsh_set_flags_ttl_len(struct nshhdr *nsh, u8 flags, u8 ttl, u8 len) argument
H A Ddst_metadata.h199 __u8 tos, __u8 ttl,
212 saddr, daddr, tos, ttl,
224 return __ip_tun_set_dst(iph->saddr, iph->daddr, iph->tos, iph->ttl,
230 __u8 tos, __u8 ttl,
255 info->key.ttl = ttl;
197 __ip_tun_set_dst(__be32 saddr, __be32 daddr, __u8 tos, __u8 ttl, __be16 tp_dst, __be16 flags, __be64 tunnel_id, int md_size) argument
228 __ipv6_tun_set_dst(const struct in6_addr *saddr, const struct in6_addr *daddr, __u8 tos, __u8 ttl, __be16 tp_dst, __be32 label, __be16 flags, __be64 tunnel_id, int md_size) argument
/linux-master/arch/um/drivers/
H A Dumcast.h17 int ttl; member in struct:umcast_data
H A Dumcast_kern.c23 int ttl; member in struct:umcast_init
39 dpri->ttl = init->ttl;
47 "TTL:%u\n", dpri->addr, dpri->lport, dpri->ttl);
79 .ttl = 1 });
99 init->ttl = simple_strtoul(ttl_str, &last, 10);
101 printk(KERN_ERR "mcast_setup - Bad ttl : '%s'\n",
111 init->lport, init->ttl);
/linux-master/tools/testing/selftests/net/forwarding/
H A Dmirror_gre_topo_lib.sh22 # | | : ttl=100 : ttl=100 |
31 # | ttl=100 ttl=100 |
64 ttl 100 tos inherit
67 ttl 100 tos inherit allow-localremote
/linux-master/tools/testing/selftests/drivers/net/mlxsw/
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
/linux-master/include/uapi/linux/
H A Dbatadv_packet.h207 * @ttl: time to live for this packet, part of the general header
219 __u8 ttl; member in struct:batadv_ogm_packet
235 * @ttl: time to live for this packet, part of the general header
245 __u8 ttl; member in struct:batadv_ogm2_packet
277 * @ttl: time to live for this packet, part of the general header
291 __u8 ttl; member in struct:batadv_icmp_header
303 * @ttl: time to live for this packet, part of the general header
314 __u8 ttl; member in struct:batadv_icmp_packet
327 * @ttl: time to live for this packet, part of the general header
343 __u8 ttl; member in struct:batadv_icmp_tp_packet
382 __u8 ttl; member in struct:batadv_icmp_packet_rr
416 __u8 ttl; member in struct:batadv_unicast_packet
457 __u8 ttl; member in struct:batadv_frag_packet
487 __u8 ttl; member in struct:batadv_bcast_packet
507 __u8 ttl; member in struct:batadv_mcast_packet
535 __u8 ttl; member in struct:batadv_coded_packet
564 __u8 ttl; member in struct:batadv_unicast_tvlv_packet
[all...]
/linux-master/net/mpls/
H A Dmpls_iptunnel.c52 unsigned int ttl; local
66 /* Obtain the ttl using the following set of rules.
68 * LWT ttl propagation setting:
72 * Global ttl propagation setting:
78 ttl = tun_encap_info->default_ttl;
81 ttl = net->mpls.default_ttl;
83 ttl = ip_hdr(skb)->ttl;
87 ttl = tun_encap_info->default_ttl;
90 ttl
[all...]
/linux-master/include/uapi/linux/netfilter/
H A Dnfnetlink_osf.h51 __u32 ttl; member in struct:nf_osf_info
57 __u8 ttl, df; member in struct:nf_osf_user_finger
/linux-master/arch/arm64/include/asm/
H A Dtlbflush.h113 u64 ttl = level & 3; \
114 ttl |= get_trans_granule() << 2; \
116 arg |= FIELD_PREP(TLBI_TTL_MASK, ttl); \
145 #define __TLBI_VADDR_RANGE(baddr, asid, scale, num, ttl) \
148 unsigned long __ttl = (ttl >= 1 && ttl <= 3) ? ttl : 0; \
/linux-master/include/net/netfilter/ipv4/
H A Dnf_reject.h17 __u8 protocol, int ttl);
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
H A Dmpls.c33 mpls_info->ttl = act->mpls_push.ttl;
/linux-master/tools/testing/selftests/net/
H A Dl2_tos_ttl_inherit.sh87 # We don't want a test-ttl of 64 or 0,
88 # because 64 is when no ttl is set and 0 is not a valid ttl.
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
[all...]
/linux-master/net/mac80211/
H A Dmesh_hwmp.c104 u8 hop_count, u8 ttl,
159 *pos++ = ttl;
223 * @ttl: allowed remaining hops
237 u8 ttl, const u8 *target, u32 target_sn,
274 /* ttl */
275 *pos++ = ttl;
583 u8 target_flags, ttl, flags; local
655 ttl = ifmsh->mshcfg.element_ttl;
656 if (ttl != 0) {
660 target_sn, mgmt->sa, 0, ttl,
100 mesh_path_sel_frame_tx(enum mpath_frame_type action, u8 flags, const u8 *orig_addr, u32 orig_sn, u8 target_flags, const u8 *target, u32 target_sn, const u8 *da, u8 hop_count, u8 ttl, u32 lifetime, u32 metric, u32 preq_id, struct ieee80211_sub_if_data *sdata) argument
236 mesh_path_error_tx(struct ieee80211_sub_if_data *sdata, u8 ttl, const u8 *target, u32 target_sn, u16 target_rcode, const u8 *ra) argument
718 u8 ttl, hopcount, flags; local
779 u8 ttl; local
833 u8 ttl, flags, hopcount; local
1054 u8 ttl, target_flags = 0; local
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_tun.c25 u8 ttl; member in struct:mlx5e_tc_tun_route_attr
154 if (!attr->ttl)
155 attr->ttl = ip4_dst_hoplimit(&rt->dst);
242 attr.ttl = tun_key->ttl;
293 ip->ttl = attr.ttl;
358 attr.ttl = tun_key->ttl;
398 ip->ttl
[all...]
/linux-master/fs/nfs/
H A Ddns_resolve.c180 long ttl; local
183 seq_puts(m, "# ip address hostname ttl\n");
187 ttl = item->h.expiry_time - seconds_since_boot();
188 if (ttl < 0)
189 ttl = 0;
198 seq_printf(m, "%15s %ld\n", item->hostname, ttl);
233 unsigned int ttl; local
256 if (get_uint(&buf, &ttl) < 0)
258 if (ttl == 0)
260 key.h.expiry_time = ttl
[all...]

Completed in 193 milliseconds

1234567891011