aboutsummaryrefslogtreecommitdiffstats
path: root/randpkt.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-08-24 23:53:40 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-08-24 23:53:40 +0000
commit53e147c34a8f2160abb14a2e48697e165c2845c6 (patch)
treed67a8931fcbec622ad5e5a93fe6a8e5f685ebfb4 /randpkt.c
parenta8326053b0603dfda7843cb4f23147ae8e99ed97 (diff)
The time stamp in a Wiretap packet header is now a wtap_nstime, not a
"struct timeval". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15522 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'randpkt.c')
-rw-r--r--randpkt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/randpkt.c b/randpkt.c
index 47e4b59713..65873fa0e0 100644
--- a/randpkt.c
+++ b/randpkt.c
@@ -477,8 +477,8 @@ main(int argc, char **argv)
example = find_example(produce_type);
- pkthdr.ts.tv_sec = 0;
- pkthdr.ts.tv_usec = 0;
+ pkthdr.ts.secs = 0;
+ pkthdr.ts.nsecs = 0;
pkthdr.pkt_encap = example->sample_wtap_encap;
dump = wtap_dump_open(produce_filename, WTAP_FILE_PCAP,
@@ -513,7 +513,7 @@ main(int argc, char **argv)
pkthdr.caplen = len_this_pkt;
pkthdr.len = len_this_pkt;
- pkthdr.ts.tv_sec = i; /* just for variety */
+ pkthdr.ts.secs = i; /* just for variety */
for (j = example->sample_length; j < len_this_pkt; j++) {
/* Add format strings here and there */