diff options
| author | Jean Tourrilhes <jt@hpl.hp.com> | 2010-10-28 09:56:37 -0700 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2010-10-28 09:56:52 -0700 |
| commit | 371e4acc87f79bcf5a28420a61e4c35291727e0f (patch) | |
| tree | 494ade1c0858b129bd3eb658a504127fafc36196 /lib/ofp-util.c | |
| parent | 439b6fcc2de96091bb48a859f80d4b14ae80f158 (diff) | |
| download | openvswitch-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.c | 3 |
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; |
