summaryrefslogtreecommitdiff
path: root/lib/ofp-util.c
diff options
context:
space:
mode:
authorJean Tourrilhes <jt@hpl.hp.com>2010-10-28 09:56:37 -0700
committerBen Pfaff <blp@nicira.com>2010-10-28 09:56:52 -0700
commit371e4acc87f79bcf5a28420a61e4c35291727e0f (patch)
tree494ade1c0858b129bd3eb658a504127fafc36196 /lib/ofp-util.c
parent439b6fcc2de96091bb48a859f80d4b14ae80f158 (diff)
downloadopenvswitch-371e4acc87f79bcf5a28420a61e4c35291727e0f.tar.gz
ofp-util: Fix normalization of IP TOS bits.
If the packet is not IP, you probably want to also wildcard the ToS.
Diffstat (limited to 'lib/ofp-util.c')
-rw-r--r--lib/ofp-util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ofp-util.c b/lib/ofp-util.c
index 99e5943c5..05c6f5467 100644
--- a/lib/ofp-util.c
+++ b/lib/ofp-util.c
@@ -711,7 +711,8 @@ actions_next(struct actions_iterator *iter)
void
normalize_match(struct ofp_match *m)
{
- enum { OFPFW_NW = OFPFW_NW_SRC_MASK | OFPFW_NW_DST_MASK | OFPFW_NW_PROTO };
+ enum { OFPFW_NW = (OFPFW_NW_SRC_MASK | OFPFW_NW_DST_MASK | OFPFW_NW_PROTO
+ | OFPFW_NW_TOS) };
enum { OFPFW_TP = OFPFW_TP_SRC | OFPFW_TP_DST };
uint32_t wc;