Back to home page

OSCL-LXR

 
 

    


0001 .. SPDX-License-Identifier: GPL-2.0
0002 
0003 ====================
0004 Seg6 Sysfs variables
0005 ====================
0006 
0007 
0008 /proc/sys/net/conf/<iface>/seg6_* variables:
0009 ============================================
0010 
0011 seg6_enabled - BOOL
0012         Accept or drop SR-enabled IPv6 packets on this interface.
0013 
0014         Relevant packets are those with SRH present and DA = local.
0015 
0016         * 0 - disabled (default)
0017         * not 0 - enabled
0018 
0019 seg6_require_hmac - INTEGER
0020         Define HMAC policy for ingress SR-enabled packets on this interface.
0021 
0022         * -1 - Ignore HMAC field
0023         * 0 - Accept SR packets without HMAC, validate SR packets with HMAC
0024         * 1 - Drop SR packets without HMAC, validate SR packets with HMAC
0025 
0026         Default is 0.
0027 
0028 seg6_flowlabel - INTEGER
0029         Controls the behaviour of computing the flowlabel of outer
0030         IPv6 header in case of SR T.encaps
0031 
0032          == =======================================================
0033          -1  set flowlabel to zero.
0034           0  copy flowlabel from Inner packet in case of Inner IPv6
0035              (Set flowlabel to 0 in case IPv4/L2)
0036           1  Compute the flowlabel using seg6_make_flowlabel()
0037          == =======================================================
0038 
0039         Default is 0.