X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/fd35562d7e7153a339fdcdd02408f877e34a49fb..05bf9bfc237231a3d10e8f160a9037efdcec70f3:/print-openflow-1.0.c?ds=sidebyside diff --git a/print-openflow-1.0.c b/print-openflow-1.0.c index 3f6b77f9..3ce7f89b 100644 --- a/print-openflow-1.0.c +++ b/print-openflow-1.0.c @@ -1279,12 +1279,12 @@ of10_table_stats_reply_print(const u_char *cp, const u_char *ep, u_int len) { cp += OFP_MAX_TABLE_NAME_LEN; /* wildcards */ TCHECK2(*cp, 4); - printf("\n\t wildcards 0x%08x", EXTRACT_32BITS(cp)); + printf("\n\t wildcards 0x%08x", EXTRACT_32BITS(cp)); of10_bitmap_print(ofpfw_bm, EXTRACT_32BITS(cp), OFPFW_U); cp += 4; /* max_entries */ TCHECK2(*cp, 4); - printf("\n\t max_entries %u", EXTRACT_32BITS(cp)); + printf("\n\t max_entries %u", EXTRACT_32BITS(cp)); cp += 4; /* active_count */ TCHECK2(*cp, 4); @@ -1428,7 +1428,7 @@ of10_queue_stats_reply_print(const u_char *cp, const u_char *ep, u_int len) { printf(", tx_errors %" PRIu64, EXTRACT_64BITS(cp)); cp += 8; - len -= sizeof(struct ofp_port_stats); + len -= sizeof(struct ofp_queue_stats); } /* while */ return cp;