lib/flow: fix minimatch_extract() ICMPv6 parsing
authorJarno Rajahalme <jrajahalme@nicira.com>
Mon, 2 Jun 2014 21:29:57 +0000 (14:29 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Mon, 2 Jun 2014 21:29:57 +0000 (14:29 -0700)
commit12af7bf310d5423de1b0a3950fdc9efab2f308a1
treefabbbd546816d75f8d77f4225e8191ee059f6880
parent6eedeb5ffbe4f822149d7c2e641079733d61d4a8
lib/flow: fix minimatch_extract() ICMPv6 parsing

This patch addresses two bugs related to ICMPv6(NDP) packets:

- In miniflow_extract() push the words in the correct order
- In parse_icmpv6() use sizeof struct, not size of struct *

match_wc_init() has been modified, to include the nd_target field
when the transport layer protocol is ICMPv6

A testcase has been added to detect the bugs.

Signed-off-by: Daniele Di Proietto <ddiproietto@vmware.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
lib/flow.c
lib/match.c
tests/ofproto-dpif.at