]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf80a01a2e683811b27de99f3ef47295324715e74
treed4bdf8e5c538cb1351f1cc462e65654646af7e8d
parentb531cc6cde037c41e84756f63261e187aa588965
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