summaryrefslogtreecommitdiff
path: root/ofproto/fail-open.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2012-02-15 16:22:18 -0800
committerBen Pfaff <blp@nicira.com>2012-03-07 14:05:10 -0800
commit08f94c0e1a47518e73f954af8f61eb0df31ac8bd (patch)
treed891d1ee373354795073d3ac72dae70bff4cfb90 /ofproto/fail-open.c
parent6c0386119d614d5e26ca08cc3d8e527806b87ef9 (diff)
downloadopenvswitch-08f94c0e1a47518e73f954af8f61eb0df31ac8bd.tar.gz
openflow: Split OFPAT_* into OFPAT10_* and OFPAT11_*.
An upcoming commit will start referring to OpenFlow 1.1 actions, which are renumbered relative to OpenFlow 1.0 actions, so this commit prepares by changing all the existing uses of OFPAT_* to instead use OFPAT10_*. This commit also introduces the OFPAT11_* constants. Reviewed-by: Simon Horman <horms@verge.net.au> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'ofproto/fail-open.c')
-rw-r--r--ofproto/fail-open.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ofproto/fail-open.c b/ofproto/fail-open.c
index 541bb054b..6fb1ea8a6 100644
--- a/ofproto/fail-open.c
+++ b/ofproto/fail-open.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, 2010, 2011 Nicira Networks.
+ * Copyright (c) 2008, 2009, 2010, 2011, 2012 Nicira Networks.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -216,7 +216,7 @@ fail_open_flushed(struct fail_open *fo)
/* Set up a flow that matches every packet and directs them to
* OFPP_NORMAL. */
memset(&action, 0, sizeof action);
- action.type = htons(OFPAT_OUTPUT);
+ action.type = htons(OFPAT10_OUTPUT);
action.output.len = htons(sizeof action);
action.output.port = htons(OFPP_NORMAL);