From f669a5fcc7e002cc70c66b5cbbc0a83dccf93f92 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 6 Oct 2008 09:38:05 -0700 Subject: [PATCH] In ofp_packet_to_string(), make tcpdump print Ethernet headers also. --- lib/ofp-print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 5a1e6078..8f3dbe9d 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -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); -- 2.30.2