datapath: Validation of IPv6 set port action uses IPv4 header
authorPravin B Shelar <pshelar@nicira.com>
Tue, 8 May 2012 00:04:57 +0000 (17:04 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Tue, 8 May 2012 00:04:57 +0000 (17:04 -0700)
commitb1323f59ef0f0eb4ec15592745c91249903b263b
tree23e2cfde68a43c84f704e9514c3e7706ece65f5f
parent751c778501b0e0726cc0c715f3ad2628c19ba0bb
datapath: Validation of IPv6 set port action uses IPv4 header

When the kernel validates set TCP/UDP port actions, it looks at
the ports in the existing flow to make sure that the L4 header exists.
However, these actions always use the IPv4 version of the struct.
Following patch fixes this by checking for flow ip protocol first.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
Bug #11205
datapath/datapath.c