Home
last modified time | relevance | path

Searched full:ttl (Results 1 – 25 of 350) sorted by relevance

12345678910>>...14

/kernel/linux/linux-5.10/net/netfilter/
Dxt_hl.c3 * IP tables module for matching the value of the TTL
20 MODULE_DESCRIPTION("Xtables: Hoplimit/TTL field match");
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()
65 .name = "ttl",
Dxt_HL.c3 * TTL modification target for IP tables
22 MODULE_DESCRIPTION("Xtables: Hoplimit/TTL Limit field modification target");
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()
[all …]
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()
99 if (nla_put_u8(skb, NFTA_OSF_TTL, priv->ttl)) in nft_osf_dump()
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()
271 /* use TTL as seen before forwarding */ in recent_mt()
274 ttl++; in recent_mt()
[all …]
/kernel/linux/linux-5.10/net/mpls/
Dmpls_iptunnel.c52 unsigned int ttl; in mpls_xmit() local
68 /* Obtain the ttl using the following set of rules. in mpls_xmit()
70 * LWT ttl propagation setting: in mpls_xmit()
71 * - disabled => use default TTL value from LWT in mpls_xmit()
72 * - enabled => use TTL value from IPv4/IPv6 header in mpls_xmit()
74 * Global ttl propagation setting: in mpls_xmit()
75 * - disabled => use default TTL value from global setting in mpls_xmit()
76 * - enabled => use TTL value from IPv4/IPv6 header in mpls_xmit()
80 ttl = tun_encap_info->default_ttl; in mpls_xmit()
83 ttl = net->mpls.default_ttl; in mpls_xmit()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/
Dvxlan.sh67 ttl 20 tos inherit local 198.51.100.1 dstport 4789
84 ttl 20 tos inherit local 198.51.100.1 dstport 4789
101 ttl 20 tos inherit local 198.51.100.1 dstport 4789
119 ttl 20 tos inherit local 198.51.100.1 dstport 4789 \
138 ttl 20 tos inherit dstport 4789
155 ttl 20 tos inherit local 2001:db8::1 dstport 4789
172 ttl 20 tos inherit local 198.51.100.1 dstport 4789
190 ttl 20 tos inherit local 198.51.100.1 dstport 4789 dev dummy1
208 ttl 20 tos inherit local 198.51.100.1 dstport 4789 \
226 ttl 20 tos 20 local 198.51.100.1 dstport 4789
[all …]
Dextack.sh41 dstport 4789 nolearning noudpcsum tos inherit ttl 100
52 dstport 4789 nolearning noudpcsum tos inherit ttl 100
61 # devices have the same TTL.
63 ip link set dev vx2 type vxlan ttl 200
89 dstport 4789 tos inherit ttl 100
117 dstport 4789 tos inherit ttl 100
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
129 log_test "$what: no offload on TTL of inherit ($tcflags)"
/kernel/linux/linux-5.10/tools/testing/selftests/tc-testing/tc-tests/actions/
Dmpls.json286 "name": "Add mpls dec_ttl action with ttl (invalid)",
299 "cmdUnderTest": "$TC actions add action mpls dec_ttl ttl 20",
302 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*ttl.*20.*pipe",
468 "name": "Add mpls pop action with ttl (invalid)",
481 "cmdUnderTest": "$TC actions add action mpls pop protocol ipv4 ttl 20",
484 "matchPattern": "action order [0-9]+: mpls.*pop.*ttl.*20.*pipe",
528 …"matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*20.*ttl.*[0-9]+.*pipe",
552 …"matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_mc.*label.*20.*ttl.*[0-9]+.*pipe",
560 "name": "Add mpls push action with label, tc and ttl",
573 "cmdUnderTest": "$TC actions add action mpls push label 20 tc 3 ttl 128",
[all …]
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dbatadv_packet.h88 __u8 ttl; member
101 __u8 ttl; member
120 __u8 ttl; member
130 __u8 ttl; member
141 __u8 ttl; member
159 __u8 ttl; member
172 __u8 ttl; member
187 __u8 ttl; member
207 __u8 ttl; member
216 __u8 ttl; member
[all …]
/kernel/linux/linux-5.10/include/uapi/linux/
Dbatadv_packet.h199 * @ttl: time to live for this packet, part of the general header
211 __u8 ttl; member
227 * @ttl: time to live for this packet, part of the general header
237 __u8 ttl; member
269 * @ttl: time to live for this packet, part of the general header
283 __u8 ttl; member
295 * @ttl: time to live for this packet, part of the general header
306 __u8 ttl; member
319 * @ttl: time to live for this packet, part of the general header
335 __u8 ttl; member
[all …]
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dbatadv_packet.h100 __u8 ttl; member
113 __u8 ttl; member
132 __u8 ttl; member
142 __u8 ttl; member
153 __u8 ttl; member
171 __u8 ttl; member
184 __u8 ttl; member
197 __u8 ttl; member
217 __u8 ttl; member
225 __u8 ttl; member
[all …]
/kernel/linux/linux-5.10/arch/um/drivers/
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()
101 printk(KERN_ERR "mcast_setup - Bad ttl : '%s'\n", in mcast_setup()
111 init->lport, init->ttl); in mcast_setup()
/kernel/linux/linux-5.10/net/xfrm/
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()
/kernel/linux/linux-5.10/drivers/gpio/
Dgpio-pcie-idio-24.c80 * @ttl_out0_7: Read: TTL/CMOS Outputs 0-7
81 * Write: TTL/CMOS Outputs 0-7
88 * @ttl_in0_7: Read: TTL/CMOS Inputs 0-7
96 * @cos_ttl0_7: Read: COS Status TTL/CMOS 0-7
97 * Write: COS Clear TTL/CMOS 0-7
155 /* TTL/CMOS I/O */ in idio_24_gpio_get_direction()
156 /* OUT MODE = 1 when TTL/CMOS Output Mode is set */ in idio_24_gpio_get_direction()
171 /* TTL/CMOS I/O */ in idio_24_gpio_direction_input()
175 /* Clear TTL/CMOS Output Mode */ in idio_24_gpio_direction_input()
193 /* TTL/CMOS I/O */ in idio_24_gpio_direction_output()
[all …]
/kernel/linux/linux-5.10/net/mac80211/
Dmesh_hwmp.c104 u8 hop_count, u8 ttl, in mesh_path_sel_frame_tx() argument
159 *pos++ = ttl; in mesh_path_sel_frame_tx()
223 * @ttl: allowed remaining hops
235 u8 ttl, const u8 *target, u32 target_sn, in mesh_path_error_tx() argument
272 /* ttl */ in mesh_path_error_tx()
273 *pos++ = ttl; in mesh_path_error_tx()
567 u8 target_flags, ttl, flags; in hwmp_preq_frame_process() local
639 ttl = ifmsh->mshcfg.element_ttl; in hwmp_preq_frame_process()
640 if (ttl != 0) { in hwmp_preq_frame_process()
644 target_sn, mgmt->sa, 0, ttl, in hwmp_preq_frame_process()
[all …]
/kernel/linux/linux-5.10/include/uapi/linux/netfilter/
Dnfnetlink_osf.h19 #define NF_OSF_TTL_TRUE 0 /* True ip and fingerprint TTL comparison */
21 /* Check if ip TTL is less than fingerprint one */
24 /* Do not compare ip and fingerprint TTL at all */
51 __u32 ttl; member
57 __u8 ttl, df; member
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/display/bridge/
Dthine,thc63lvd1024.yaml16 modes, handling up to two LVDS input streams and up to two digital CMOS/TTL
56 description: First digital CMOS/TTL parallel output
60 description: Second digital CMOS/TTL parallel output
79 Power supply for the TTL output, TTL CLOCKOUT signal, LVDS input, PLL and
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/
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
/kernel/linux/linux-5.10/include/net/
Dnsh.h11 * |Ver|O|U| TTL | Length |U|U|U|U|MD Type| Next Protocol |
48 * TTL: Indicates the maximum SFF hops for an SFP. This field is used
49 * for service plane loop detection. The initial TTL value SHOULD be
52 * provided, the default initial TTL value of 63 MUST be used. Each SFF
53 * involved in forwarding an NSH packet MUST decrement the TTL value by
55 * value of 0 shall result in a TTL value of 63. The packet MUST NOT be
56 * forwarded if TTL is, after decrement, 0.
136 * reporting service paths. Additionally, while the TTL field is the
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()
[all …]
Ddst_metadata.h145 __u8 tos, __u8 ttl, in __ip_tun_set_dst() argument
158 saddr, daddr, tos, ttl, in __ip_tun_set_dst()
170 return __ip_tun_set_dst(iph->saddr, iph->daddr, iph->tos, iph->ttl, in ip_tun_rx_dst()
176 __u8 tos, __u8 ttl, in __ipv6_tun_set_dst() argument
201 info->key.ttl = ttl; in __ipv6_tun_set_dst()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun.c196 u8 nud_state, ttl; in mlx5e_tc_tun_create_header_ipv4() local
204 ttl = tun_key->ttl; in mlx5e_tc_tun_create_header_ipv4()
207 &fl4, &n, &ttl); in mlx5e_tc_tun_create_header_ipv4()
260 ip->ttl = ttl; in mlx5e_tc_tun_create_header_ipv4()
362 u8 nud_state, ttl; in mlx5e_tc_tun_create_header_ipv6() local
365 ttl = tun_key->ttl; in mlx5e_tc_tun_create_header_ipv6()
372 &fl6, &n, &ttl); in mlx5e_tc_tun_create_header_ipv6()
424 ip6h->hop_limit = ttl; in mlx5e_tc_tun_create_header_ipv6()
613 match.mask->ttl); in mlx5e_tc_tun_parse()
615 match.key->ttl); in mlx5e_tc_tun_parse()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_fw.c29 mlx5dr_err(dmn, "Failed creating TTL W/A FW flow table %d\n", ret); in mlx5dr_fw_create_recalc_cs_ft()
37 mlx5dr_err(dmn, "Failed creating TTL W/A FW flow group %d\n", ret); in mlx5dr_fw_create_recalc_cs_ft()
41 /* Modify TTL action by adding zero to trigger CS recalculation */ in mlx5dr_fw_create_recalc_cs_ft()
50 mlx5dr_err(dmn, "Failed modify header TTL %d\n", ret); in mlx5dr_fw_create_recalc_cs_ft()
59 mlx5dr_err(dmn, "Failed setting TTL W/A flow table entry %d\n", ret); in mlx5dr_fw_create_recalc_cs_ft()
/kernel/linux/linux-5.10/fs/nfs/
Ddns_resolve.c181 long ttl; in nfs_dns_show() local
184 seq_puts(m, "# ip address hostname ttl\n"); in nfs_dns_show()
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()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dtest_cls_redirect.c411 /* Loop protection: the inner packet's TTL is decremented as a safeguard in forward_with_gre()
412 * against any forwarding loop. As the only interesting field is the TTL in forward_with_gre()
419 uint8_t ttl; in forward_with_gre() local
424 &ttl, 1); in forward_with_gre()
430 if (ttl == 0) { in forward_with_gre()
435 ttl--; in forward_with_gre()
438 &ttl, 1, 0); in forward_with_gre()
444 uint8_t ttl; in forward_with_gre() local
448 skb, payload_off + offsetof(struct iphdr, ttl), &ttl, in forward_with_gre()
455 if (ttl == 0) { in forward_with_gre()
[all …]

12345678910>>...14