openvswitch: Validation of IPv6 set port action uses IPv4 header
authorPravin B Shelar <pshelar@nicira.com>
Tue, 8 May 2012 00:21:53 +0000 (17:21 -0700)
committerJesse Gross <jesse@nicira.com>
Tue, 8 May 2012 00:23:10 +0000 (17:23 -0700)
commit072ae6314a191e3a9fc309b1e4e539ac7abc48ad
treed4bdf8e5c538cb1351f1cc462e65654646af7e8d
parent4cb6e116bb97c8b87a1f4f95e99d0c8dda2a6e9b
openvswitch: 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>
Signed-off-by: Jesse Gross <jesse@nicira.com>
net/openvswitch/datapath.c