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:07:21 +0000 (21:07 +0200)
commit1f1936d935e8012ff24fed3d309cd7ef955790dd
treeb53b3f991243c4af4f2a0c6bf65cb23b1e125b8a
parente495d4a5d3929aea62cbe1f6996f342e52b96c66
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