Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1.. SPDX-License-Identifier: GPL-2.0
2
3====================
4Seg6 Sysfs variables
5====================
6
7
8/proc/sys/net/conf/<iface>/seg6_* variables:
9============================================
10
11seg6_enabled - BOOL
12 Accept or drop SR-enabled IPv6 packets on this interface.
13
14 Relevant packets are those with SRH present and DA = local.
15
16 * 0 - disabled (default)
17 * not 0 - enabled
18
19seg6_require_hmac - INTEGER
20 Define HMAC policy for ingress SR-enabled packets on this interface.
21
22 * -1 - Ignore HMAC field
23 * 0 - Accept SR packets without HMAC, validate SR packets with HMAC
24 * 1 - Drop SR packets without HMAC, validate SR packets with HMAC
25
26 Default is 0.
27
28/proc/sys/net/ipv6/seg6_* variables:
29====================================
30
31seg6_flowlabel - INTEGER
32 Controls the behaviour of computing the flowlabel of outer
33 IPv6 header in case of SR T.encaps
34
35 == =======================================================
36 -1 set flowlabel to zero.
37 0 copy flowlabel from Inner packet in case of Inner IPv6
38 (Set flowlabel to 0 in case IPv4/L2)
39 1 Compute the flowlabel using seg6_make_flowlabel()
40 == =======================================================
41
42 Default is 0.