OSDN Git Service

seg6: ignore routing header with segments left equal to 0
authorJulien Massonneau <julien.massonneau@6wind.com>
Thu, 11 Mar 2021 15:53:19 +0000 (16:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Mar 2021 00:09:21 +0000 (16:09 -0800)
commitfbbc5bc2ab8c525f4aba4346249e3adc52d8e2c0
treecd0cfd847e6d908432daa4b968977f5de9c656bc
parentee90c6ba341f7f72858196f15912c8b6b7d032e8
seg6: ignore routing header with segments left equal to 0

When there are 2 segments routing header, after an End.B6 action
for example, the second SRH will never be handled by an action, packet will
be dropped when the first SRH has segments left equal to 0.
For actions that doesn't perform decapsulation (currently: End, End.X,
End.T, End.B6, End.B6.Encaps), this patch adds the IP6_FH_F_SKIP_RH flag
in arguments for ipv6_find_hdr().

Signed-off-by: Julien Massonneau <julien.massonneau@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/seg6_local.c