seg6-sysctl.rst 1.2 KB

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