From 9e2db542a28377d106c4dc99fff15499a4e26fd7 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 23 May 2014 16:23:58 -0700 Subject: 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 --- randpkt.c | 1 + 1 file changed, 1 insertion(+) 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 */ -- cgit v1.2.1