ipv6: ipv6_find_hdr restore prev functionality
Subsystems (3)
PATCH 1/1 ipv6: ipv6_find_hdr restore prev functionality
The commit 9195bb8e381d81d5a315f911904cdf0cfcc919b8 broke ipv6_find_hdr() for ipvs and possible also nft_exthdr_eval() This patch simple exit if specified header is found.
Signed-off-by Hans Schillstrom <[email protected]>
--- net/ipv6/exthdrs_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/ipv6/exthdrs_core.c +1 -1
@@ -212,7 +212,7 @@ int ipv6_find_hdr(const struct sk_buff *skb, unsigned int *offset, found = (nexthdr == target);if ((!ipv6_ext_hdr (nexthdr)) || nexthdr ==NEXTHDR_NONE ) { -if (target <0 ) +if (target <0 || found)break ;return -ENOENT ; }
Signature · 1 line
1.7.11.7
Hello.
Quoted 1 line · Hans Schillstrom
The commit
9195bb8e381d81d5a315f911904cdf0cfcc919b8
Please also specify that commit's summary line in parens.
Quoted 2 lines
broke
ipv6_find_hdr()for ipvs and possible alsonft_exthdr_eval()This patch simple exit if specified header is found.
s/exit/exits/.
Quoted 1 line
Signed-off-by Hans Schillstrom <[email protected]>
WBR, Sergei