aboutsummaryrefslogtreecommitdiffstats
path: root/randpkt.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-05-23 16:23:58 -0700
committerGuy Harris <guy@alum.mit.edu>2014-05-23 23:24:21 +0000
commit9e2db542a28377d106c4dc99fff15499a4e26fd7 (patch)
treed25fa489aaa528f5aa03657b568d0eb4046d3c61 /randpkt.c
parentdc0ff56d753355049e1bd2e7058f6d8691817584 (diff)
Set the presence flags.
If we're going to stuff a time stamp in there, let's at least indicate that it's there. Change-Id: Idc3d4ba5fdc109b21b5c6034906664a763b2ddda Reviewed-on: https://code.wireshark.org/review/1767 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'randpkt.c')
-rw-r--r--randpkt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/randpkt.c b/randpkt.c
index 67cb821e48..c83e35f800 100644
--- a/randpkt.c
+++ b/randpkt.c
@@ -578,6 +578,7 @@ main(int argc, char **argv)
memset(&pkthdr, 0, sizeof(pkthdr));
memset(buffer, 0, sizeof(buffer));
+ pkthdr.presence_flags = WTAP_HAS_TS;
pkthdr.pkt_encap = example->sample_wtap_encap;
/* Load the sample pseudoheader into our pseudoheader buffer */