From: Jesse Gross Date: Mon, 6 Aug 2012 22:49:47 +0000 (-0700) Subject: openvswitch: Relax set header validation. X-Git-Tag: v3.6-rc6~18^2~34^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4185392da4b4b494e51934c51b999b4df424afba;p=pandora-kernel.git openvswitch: Relax set header validation. When installing a flow with an action to set a particular field we need to validate that the packets that are part of the flow actually contain that header. With IP we use zeroed addresses and with TCP/UDP the check is for zeroed ports. This check is overly broad and can catch packets like DHCP requests that have a zero source address in a legitimate header. This changes the check to look for a zeroed protocol number for IP or for both ports be zero for TCP/UDP before considering the header to not exist. Reported-by: Ethan Jackson Signed-off-by: Jesse Gross --- Reading git-diff-tree failed