ofproto-dpif: Validate NAT action support.
authorDaniele Di Proietto <diproiettod@vmware.com>
Fri, 4 Dec 2015 23:01:37 +0000 (15:01 -0800)
committerJarno Rajahalme <jarno@ovn.org>
Fri, 4 Dec 2015 23:01:37 +0000 (15:01 -0800)
commit7b27258c4e0821ade73e0e0a9bd5339328489523
tree8a03c27808f64a570c4337d4c1afb154e6d2a024
parent819571b575f5e750637fc753405e5a46dd5e67a6
ofproto-dpif: Validate NAT action support.

The NAT validation is similar (and based on) the existing conntrack
validation: when a dpif backer is created, we try to install a flow with
the ct_state NAT bits set.  If the flow setup fails we assume that the
backer doesn't support NAT and we reject OpenFlow flows with a NAT
action or a match on the ct_state NAT bits.

Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
lib/odp-util.h
ofproto/ofproto-dpif.c