]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: improve ipv6_find_hdr() to skip empty routing headers
authorAnsis Atteka <aatteka@nicira.com>
Sat, 10 Nov 2012 01:11:31 +0000 (17:11 -0800)
committerJesse Gross <jesse@nicira.com>
Mon, 12 Nov 2012 20:31:37 +0000 (12:31 -0800)
commit9b4e0eba420b51aa80de7154a653e8a3e6a65496
treef1abc3ff5c1356b423eb23d7ade698ad61d0f065
parent44104bc7cd1a5750f0f7e044fa375ad2ed837a6c
ipv6: improve ipv6_find_hdr() to skip empty routing headers

This patch prepares ipv6_find_hdr() function so that it could be
able to skip routing headers, where segements_left is 0. This is
required to handle multiple routing header case correctly when
changing IPv6 addresses.

Signed-off-by: Ansis Atteka <aatteka@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
include/net/ipv6.h
net/ipv6/exthdrs_core.c