In ofp_packet_to_string(), make tcpdump print Ethernet headers also.
[sliver-openvswitch.git] / lib / ofp-print.c
index 5a1e607..8f3dbe9 100644 (file)
@@ -125,7 +125,7 @@ ofp_packet_to_string(const void *data, size_t len, size_t total_len)
     }
     rewind(pcap);
 
-    snprintf(command, sizeof command, "tcpdump -n -r /dev/fd/%d 2>/dev/null",
+    snprintf(command, sizeof command, "tcpdump -e -n -r /dev/fd/%d 2>/dev/null",
              fileno(pcap));
     tcpdump = popen(command, "r");
     fclose(pcap);