[ovs-dev] [PATCH] ofp-print: always print the flow nw_tos if not wildcarded

romain.lenglet at berabera.info romain.lenglet at berabera.info
Fri Nov 5 01:47:50 UTC 2010


From: Romain Lenglet <romain.lenglet at berabera.info>

Print the nw_tos field for all flows if it is not wildcarded, instead
of only if the dl_type is IP and the nw_proto is not ICMP, TCP, or
UDP.
---
 lib/ofp-print.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/ofp-print.c b/lib/ofp-print.c
index 8c57075..13023fb 100644
--- a/lib/ofp-print.c
+++ b/lib/ofp-print.c
@@ -745,10 +745,10 @@ ofp_match_to_string(const struct ofp_match *om, int verbosity)
         } else {
             print_wild(&f, "nw_proto=", w & OFPFW_NW_PROTO, verbosity,
                        "%u", om->nw_proto);
-            print_wild(&f, "nw_tos=", w & OFPFW_NW_TOS, verbosity,
-                       "%u", om->nw_tos);
         }
     }
+    print_wild(&f, "nw_tos=", w & OFPFW_NW_TOS, verbosity,
+               "%u", om->nw_tos);
     if (om->nw_proto == IP_TYPE_ICMP) {
         print_wild(&f, "icmp_type=", w & OFPFW_ICMP_TYPE, verbosity,
                    "%d", ntohs(om->icmp_type));
-- 
1.7.2.3





More information about the dev mailing list