* [PATCH 1/1] ipv6: ipv6_find_hdr restore prev functionality
@ 2014-02-25 10:54 Hans Schillstrom
2014-02-25 16:33 ` Sergei Shtylyov
0 siblings, 1 reply; 2+ messages in thread
From: Hans Schillstrom @ 2014-02-25 10:54 UTC (permalink / raw)
To: netdev, davem, ja, aatteka, kaber, ard; +Cc: Hans Schillstrom
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 <hans@schillstrom.com>
---
net/ipv6/exthdrs_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/ipv6/exthdrs_core.c b/net/ipv6/exthdrs_core.c
index 140748d..8af3eb5 100644
--- a/net/ipv6/exthdrs_core.c
+++ b/net/ipv6/exthdrs_core.c
@@ -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;
}
--
1.7.11.7
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] ipv6: ipv6_find_hdr restore prev functionality
2014-02-25 10:54 [PATCH 1/1] ipv6: ipv6_find_hdr restore prev functionality Hans Schillstrom
@ 2014-02-25 16:33 ` Sergei Shtylyov
0 siblings, 0 replies; 2+ messages in thread
From: Sergei Shtylyov @ 2014-02-25 16:33 UTC (permalink / raw)
To: Hans Schillstrom, netdev, davem, ja, aatteka, kaber, ard
Hello.
On 25-02-2014 14:54, Hans Schillstrom wrote:
> The commit 9195bb8e381d81d5a315f911904cdf0cfcc919b8
Please also specify that commit's summary line in parens.
> broke ipv6_find_hdr() for ipvs and possible also nft_exthdr_eval()
> This patch simple exit if specified header is found.
s/exit/exits/.
> Signed-off-by: Hans Schillstrom <hans@schillstrom.com>
WBR, Sergei
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-02-25 16:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-25 10:54 [PATCH 1/1] ipv6: ipv6_find_hdr restore prev functionality Hans Schillstrom
2014-02-25 16:33 ` Sergei Shtylyov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.