X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=lib%2Fofp-print.c;h=bc777568b259c7dd6a16ebbbc517607a4589f282;hb=e1aff6f9f7103ee59e2501d3e6c705a685b20aeb;hp=1eaaa27d8f757bfd3aabd98a5433f96470d5eab0;hpb=eedc0097f475a15297375a2aba39313c0f98f330;p=openvswitch diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 1eaaa27d..bc777568 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -26,6 +26,7 @@ #include #include +#include "byte-order.h" #include "compiler.h" #include "dynamic-string.h" #include "flow.h" @@ -35,7 +36,6 @@ #include "packets.h" #include "pcap.h" #include "util.h" -#include "xtoxll.h" static void ofp_print_port_name(struct ds *string, uint16_t port); static void ofp_print_queue_name(struct ds *string, uint32_t port); @@ -130,7 +130,7 @@ ofp_packet_in(struct ds *string, const void *oh, size_t len, int verbosity) ds_put_char(string, '\n'); if (verbosity > 0) { - flow_t flow; + struct flow flow; struct ofpbuf packet; struct ofp_match match; packet.data = (void *) op->data; @@ -737,10 +737,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));