netifd: add segment routing support
authorNick Hainke <vincent@systemli.org>
Sat, 12 Dec 2020 20:50:53 +0000 (21:50 +0100)
committerHans Dedecker <dedeckeh@gmail.com>
Sun, 13 Dec 2020 17:05:21 +0000 (18:05 +0100)
commit458b1a7e9473c150a40cae5d8be174f4bb03bd39
tree0aa7c33c73d3b6cc8492749ea670891783876fbc
parent42c48866f1c1fce068f41536baa8dd2e80fc08d7
netifd: add segment routing support

seg6_enabled - Bool
  Accept or drop SR-enabled IPv6 packets on this interface.

More Information:
https://www.kernel.org/doc/html/latest/networking/seg6-sysctl.html

Now you can set as interface option
  option ip6segmentrouting '1'

It is not enough to turn on "seg6_enabled" on the interface. Further,
we have to enable "/all/seg6_enabled". This means that a working config
is "interface + all".

Signed-off-by: Nick Hainke <vincent@systemli.org>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> [style fixes]
device.c
device.h
system-linux.c