commit | b5b8f9502499f0e804251f3a91b7311eaf867d76 | [log] [tgz] |
---|---|---|
author | Davide Pesavento <davide.pesavento@lip6.fr> | Thu Jul 26 14:19:16 2018 -0400 |
committer | Davide Pesavento <davide.pesavento@lip6.fr> | Thu Jul 26 18:25:47 2018 -0400 |
tree | 1aa0a07911156badac3a9cfab7f1b9828713beeb | |
parent | 24c0861e335733f0e4d098b645831633f00908f1 [diff] [blame] |
dump: add -t option to suppress printing per-packet timestamp Change-Id: I4e0e44c62451629428d2d065692a0cb497a9203a
diff --git a/tools/dump/ndndump.cpp b/tools/dump/ndndump.cpp index 4c43826..77743a8 100644 --- a/tools/dump/ndndump.cpp +++ b/tools/dump/ndndump.cpp
@@ -158,7 +158,9 @@ } std::ostringstream os; - printTimestamp(os, pkthdr->ts); + if (wantTimestamp) { + printTimestamp(os, pkthdr->ts); + } ssize_t payloadSize = pkthdr->len;