]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: sr: allow SRH insertion with arbitrary segments_left value
authorDavid Lebrun <david.lebrun@uclouvain.be>
Sat, 5 Aug 2017 10:38:24 +0000 (12:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Aug 2017 21:16:21 +0000 (14:16 -0700)
commit95eacf5f2a0f731dbffb9e3b5d44334d6843e3f2
tree1374063b52a06890df93237df688d68405c0af0f
parente62b945d0e85bec0ba42d2ed15ad87f95d2e1f63
ipv6: sr: allow SRH insertion with arbitrary segments_left value

The seg6_validate_srh() function only allows SRHs whose active segment is
the first segment of the path. However, an application may insert an SRH
whose active segment is not the first one. Such an application might be
for example an SR-aware Virtual Network Function.

This patch enables to insert SRHs with an arbitrary active segment.

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