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 18:47:50 +0000 (11:47 -0700)
commit6ded53a883b039f5948aa1da19d5f29af2fd1d66
tree5360955d272742ac335a6641c980d909902e21d2
parent5b1bea1aff4a0ff96a4496ca810e9aef07a6e06f
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