diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-05-23 16:23:58 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-05-23 23:24:21 +0000 |
commit | 9e2db542a28377d106c4dc99fff15499a4e26fd7 (patch) | |
tree | d25fa489aaa528f5aa03657b568d0eb4046d3c61 /randpkt.c | |
parent | dc0ff56d753355049e1bd2e7058f6d8691817584 (diff) | |
download | wireshark-9e2db542a28377d106c4dc99fff15499a4e26fd7.tar.gz |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 */ |