]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: sr: implement several seg6local actions
authorDavid Lebrun <david.lebrun@uclouvain.be>
Sat, 5 Aug 2017 10:39:48 +0000 (12:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Aug 2017 21:16:22 +0000 (14:16 -0700)
commit4cc770315629c574b63a31efc81899df0bf95229
tree3dd54425a3103ff05fd04eb08c2a13e35d9987f0
parent5b3d09e4d2cd317d21ce74400cb406a6d1a870e6
ipv6: sr: implement several seg6local actions

This patch implements the following seg6local actions.

- SEG6_LOCAL_ACTION_END: regular SRH processing. The DA of the packet
  is updated to the next segment and forwarded accordingly.

- SEG6_LOCAL_ACTION_END_X: same as above, except that the packet is
  forwarded to the specified IPv6 next-hop.

- SEG6_LOCAL_ACTION_END_DX6: decapsulate the packet and forward to
  inner IPv6 packet to the specified IPv6 next-hop.

- SEG6_LOCAL_ACTION_END_B6: insert the specified SRH directly after
  the IPv6 header of the packet.

- SEG6_LOCAL_ACTION_END_B6_ENCAP: encapsulate the packet within
  an outer IPv6 header, containing the specified SRH.

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