]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit25425753c570b6b77334c1ed5b3599432c4e5215
treecd0cfd847e6d908432daa4b968977f5de9c656bc
parenteee1112de3c6962f7825c9733a4bd51232803cce
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