datapath: Add ipv6_find_hdr() compatibility function.
authorAnsis Atteka <aatteka@nicira.com>
Tue, 6 Nov 2012 11:39:58 +0000 (13:39 +0200)
committerAnsis Atteka <aatteka@nicira.com>
Tue, 6 Nov 2012 19:06:42 +0000 (21:06 +0200)
commit1007d8acad106fb508ccfdb84ca5bbdc491efc6c
tree06ea552fb8de71fea1428ab0b80e836647efb5d4
parent9321954ac2ed1bdb5a397e2fab7ce591f9d883a9
datapath: Add ipv6_find_hdr() compatibility function.

Implementation of the IPv6 'set' action depends on ipv6_find_exthdr()
function to find routing header. By looking at the routing headers,
it is possible to tell, whether L4 checksums will need to be
recalculated, whenever the destination address is changed in
the main IPv6 header.

This function will need to be customized so that it would skip all
routing headers, where segements_left is equal to 0.

Signed-off-by: Ansis Atteka <aatteka@nicira.com>
datapath/linux/compat/exthdrs_core.c
datapath/linux/compat/include/net/ipv6.h