X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Ftest-flows.c;h=a4649b3f81de1e38202eecaec5454b4cbebf465f;hb=3c8552c1db717d2018adbc5e17cbf2583f0a6639;hp=279de64fcf7926ec3696be9b244850dd6283cef0;hpb=ff8bb7e76b2cdcbcf88cd2fac663ba517e4a659c;p=openvswitch diff --git a/tests/test-flows.c b/tests/test-flows.c index 279de64f..a4649b3f 100644 --- a/tests/test-flows.c +++ b/tests/test-flows.c @@ -39,7 +39,6 @@ main(int argc OVS_UNUSED, char *argv[]) int n = 0, errors = 0; set_program_name(argv[0]); - vlog_init(); flows = stdin; pcap = fdopen(3, "rb"); @@ -55,7 +54,7 @@ main(int argc OVS_UNUSED, char *argv[]) while (fread(&expected_match, sizeof expected_match, 1, flows)) { struct ofpbuf *packet; struct ofp_match extracted_match; - flow_t flow; + struct flow flow; n++; @@ -76,6 +75,7 @@ main(int argc OVS_UNUSED, char *argv[]) printf("mismatch on packet #%d (1-based).\n", n); printf("Packet:\n"); ofp_print_packet(stdout, packet->data, packet->size, packet->size); + ovs_hex_dump(stdout, packet->data, packet->size, 0, true); printf("Expected flow:\n%s\n", exp_s); printf("Actually extracted flow:\n%s\n", got_s); printf("\n");