Bill Sommerfeld 59dca1d8a6 udp6: fix UDP/IPv6 encap resubmit path
IPv4 interprets a negative return value from a protocol handler as a
request to redispatch to a new protocol.  In contrast, IPv6 interprets a
negative value as an error, and interprets a positive value as a request
for redispatch.

UDP for IPv6 was unaware of this difference.  Change __udp6_lib_rcv() to
return a positive value for redispatch.  Note that the socket's
encap_rcv hook still needs to return a negative value to request
dispatch, and in the case of IPv6 packets, adjust IP6CB(skb)->nhoff to
identify the byte containing the next protocol.

Signed-off-by: Bill Sommerfeld <wsommerfeld@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-03-07 15:23:12 -05:00
..
2015-08-25 13:37:31 -07:00
2015-05-28 11:23:20 +08:00
2015-12-03 11:32:06 -05:00
2016-02-08 10:33:32 -05:00
2015-09-17 17:18:37 -07:00
2015-10-21 19:36:11 -07:00
2015-12-15 23:25:20 -05:00
2016-01-05 22:25:57 -05:00
2015-02-28 16:56:51 -05:00
2015-11-03 10:52:13 -05:00
2016-03-07 15:23:12 -05:00
2014-05-23 16:28:53 -04:00