OSDN Git Service

ipv6: sr: add rtnetlink functions for seg6local action parameters
authorDavid Lebrun <david.lebrun@uclouvain.be>
Sat, 5 Aug 2017 10:38:27 +0000 (12:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Aug 2017 21:16:22 +0000 (14:16 -0700)
commit2d9cc60aee6bfbd72a06516615af9cde9cb6189a
tree1afa48f7dccea122e0cea445ba4177116484386b
parentd1df6fd8a1d22d37cffa0075ab8ad423ce656777
ipv6: sr: add rtnetlink functions for seg6local action parameters

This patch adds the necessary functions to parse, fill, and compare
seg6local rtnetlink attributes, for all defined action parameters.

- The SRH parameter defines an SRH to be inserted or encapsulated.
- The TABLE parameter defines the table to use for the route lookup of
  the next segment or the inner decapsulated packet.
- The NH4 parameter defines the IPv4 next-hop for an inner decapsulated
  IPv4 packet.
- The NH6 parameter defines the IPv6 next-hop for the next segment or
  for an inner decapsulated IPv6 packet
- The IIF parameter defines an ingress interface index.
- The OIF parameter defines an egress interface index.

Signed-off-by: David Lebrun <david.lebrun@uclouvain.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/seg6_local.c