X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fofp-print.c;h=f6560747e492076272167a3bc71b6ad24843c39a;hb=8e39921d51591d3eb59a6789104e53e170dd99cc;hp=507ed7db35c8751a951def7e33284604f45a0692;hpb=44381c1b4e01d051a8cc9ffccb8c37a0c2d4c808;p=openvswitch diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 507ed7db..f6560747 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -133,12 +133,11 @@ ofp_packet_in(struct ds *string, const void *oh, size_t len, int verbosity) if (verbosity > 0) { struct flow flow; struct ofpbuf packet; - struct ofp_match match; + packet.data = (void *) op->data; packet.size = data_len; flow_extract(&packet, 0, ntohs(op->in_port), &flow); - flow_to_match(&flow, 0, false, &match); - ofp_print_match(string, &match, verbosity); + flow_format(string, &flow); ds_put_char(string, '\n'); } if (verbosity > 1) {