Thread (2 messages) 2 messages, 2 authors, 2014-02-27

Re: [PATCH net] ipv6: ipv6_find_hdr restore prev functionality

From: David Miller <davem@davemloft.net>
Date: 2014-02-27 23:28:06
Also in: lvs-devel

From: Hans Schillstrom <redacted>
Date: Thu, 27 Feb 2014 12:57:58 +0100
The commit 9195bb8e381d81d5a315f911904cdf0cfcc919b8 ("ipv6: improve 
ipv6_find_hdr() to skip empty routing headers") broke ipv6_find_hdr().

When a target is specified like IPPROTO_ICMPV6 ipv6_find_hdr()
returns -ENOENT when it's found, not the header as expected.

A part of IPVS is broken and possible also nft_exthdr_eval().
When target is -1 which it is most cases, it works.

This patch exits the do while loop if the specific header is found
so the nexthdr could be returned as expected.

Reported-by: Art -kwaak- van Breemen <redacted>
Signed-off-by: Hans Schillstrom <redacted>
CC:Ansis Atteka [off-list ref]
Looks good, applied and queued up for -stable, thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help