Home
last modified time | relevance | path

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

12345678910>>...24

/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-4.19/net/netfilter/
Dxt_hl.c2 * IP tables module for matching the value of the TTL
23 MODULE_DESCRIPTION("Xtables: Hoplimit/TTL field match");
31 const u8 ttl = ip_hdr(skb)->ttl; in ttl_mt() local
35 return ttl == info->ttl; in ttl_mt()
37 return ttl != info->ttl; in ttl_mt()
39 return ttl < info->ttl; in ttl_mt()
41 return ttl > info->ttl; in ttl_mt()
68 .name = "ttl",
Dxt_HL.c2 * TTL modification target for IP tables
25 MODULE_DESCRIPTION("Xtables: Hoplimit/TTL Limit field modification target");
42 new_ttl = info->ttl; in ttl_tg()
45 new_ttl = iph->ttl + info->ttl; in ttl_tg()
50 new_ttl = iph->ttl - info->ttl; in ttl_tg()
55 new_ttl = iph->ttl; in ttl_tg()
59 if (new_ttl != iph->ttl) { in ttl_tg()
60 csum_replace2(&iph->check, htons(iph->ttl << 8), in ttl_tg()
62 iph->ttl = new_ttl; in ttl_tg()
110 if (info->mode != IPT_TTL_SET && info->ttl == 0) in ttl_tg_check()
[all …]
Dxt_recent.c74 u_int8_t ttl; member
129 u_int8_t ttl) in recent_entry_lookup() argument
142 (ttl == e->ttl || ttl == 0 || e->ttl == 0)) in recent_entry_lookup()
176 u_int16_t family, u_int8_t ttl) in recent_entry_init() argument
191 e->ttl = ttl; in recent_entry_init()
244 u_int8_t ttl; in recent_mt() local
255 ttl = iph->ttl; in recent_mt()
264 ttl = iph->hop_limit; in recent_mt()
267 /* use TTL as seen before forwarding */ in recent_mt()
270 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-4.19/net/mpls/
Dmpls_iptunnel.c57 unsigned int ttl; in mpls_xmit() local
73 /* Obtain the ttl using the following set of rules. in mpls_xmit()
75 * LWT ttl propagation setting: in mpls_xmit()
76 * - disabled => use default TTL value from LWT in mpls_xmit()
77 * - enabled => use TTL value from IPv4/IPv6 header in mpls_xmit()
79 * Global ttl propagation setting: in mpls_xmit()
80 * - disabled => use default TTL value from global setting in mpls_xmit()
81 * - enabled => use TTL value from IPv4/IPv6 header in mpls_xmit()
85 ttl = tun_encap_info->default_ttl; in mpls_xmit()
88 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
/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/linux-4.19/include/uapi/linux/
Dbatadv_packet.h203 * @ttl: time to live for this packet, part of the genereal header
215 __u8 ttl; member
231 * @ttl: time to live for this packet, part of the general header
241 __u8 ttl; member
273 * @ttl: time to live for this packet, part of the genereal header
287 __u8 ttl; member
299 * @ttl: time to live for this packet, part of the genereal header
310 __u8 ttl; member
323 * @ttl: time to live for this packet, part of the genereal header
339 __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-4.19/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-4.19/Documentation/devicetree/bindings/display/bridge/
Dthine,thc63lvd1024.txt6 handling up to two LVDS input streams and up to two digital CMOS/TTL outputs.
13 - vcc-supply: Power supply for TTL output, TTL CLOCKOUT signal, LVDS input,
25 - port@2: First digital CMOS/TTL parallel output
29 - port@3: Second digital CMOS/TTL parallel output
/kernel/linux/linux-4.19/drivers/gpio/
Dgpio-pcie-idio-24.c39 * @ttl_out0_7: Read: TTL/CMOS Outputs 0-7
40 * Write: TTL/CMOS Outputs 0-7
47 * @ttl_in0_7: Read: TTL/CMOS Inputs 0-7
55 * @cos_ttl0_7: Read: COS Status TTL/CMOS 0-7
56 * Write: COS Clear TTL/CMOS 0-7
113 /* TTL/CMOS I/O */ in idio_24_gpio_get_direction()
114 /* OUT MODE = 1 when TTL/CMOS Output Mode is set */ in idio_24_gpio_get_direction()
126 /* TTL/CMOS I/O */ in idio_24_gpio_direction_input()
130 /* Clear TTL/CMOS Output Mode */ in idio_24_gpio_direction_input()
148 /* TTL/CMOS I/O */ in idio_24_gpio_direction_output()
[all …]
/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-4.19/net/mac80211/
Dmesh_hwmp.c106 u8 hop_count, u8 ttl, in mesh_path_sel_frame_tx() argument
161 *pos++ = ttl; in mesh_path_sel_frame_tx()
225 * @ttl: allowed remaining hops
237 u8 ttl, const u8 *target, u32 target_sn, in mesh_path_error_tx() argument
274 /* ttl */ in mesh_path_error_tx()
275 *pos++ = ttl; in mesh_path_error_tx()
552 u8 target_flags, ttl, flags; in hwmp_preq_frame_process() local
624 ttl = ifmsh->mshcfg.element_ttl; in hwmp_preq_frame_process()
625 if (ttl != 0) { in hwmp_preq_frame_process()
629 target_sn, mgmt->sa, 0, ttl, in hwmp_preq_frame_process()
[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

12345678910>>...24