From 371e4acc87f79bcf5a28420a61e4c35291727e0f Mon Sep 17 00:00:00 2001 From: Jean Tourrilhes Date: Thu, 28 Oct 2010 09:56:37 -0700 Subject: [PATCH] ofp-util: Fix normalization of IP TOS bits. If the packet is not IP, you probably want to also wildcard the ToS. --- lib/ofp-util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.45.2