ipv6: sr: implement additional seg6local actions
authorDavid Lebrun <david.lebrun@uclouvain.be>
Fri, 25 Aug 2017 07:58:17 +0000 (09:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Aug 2017 00:10:24 +0000 (17:10 -0700)
commit891ef8dd2a8d14e4e73a81dcdb135b574c57f556
tree59c1d26dbdfd5b7bd106ca479cad584893d70c35
parentd7a669dd2f8ba07a17423f4ad586dfc0379882f7
ipv6: sr: implement additional seg6local actions

This patch implements the following seg6local actions.

- SEG6_LOCAL_ACTION_END_T: regular SRH processing and forward to the
  next-hop looked up in the specified routing table.

- SEG6_LOCAL_ACTION_END_DX2: decapsulate an L2 frame and forward it to
  the specified network interface.

- SEG6_LOCAL_ACTION_END_DX4: decapsulate an IPv4 packet and forward it,
  possibly to the specified next-hop.

- SEG6_LOCAL_ACTION_END_DT6: decapsulate an IPv6 packet and forward it
  to the next-hop looked up in the specified routing table.

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