diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2000-02-16 01:38:56 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2000-02-16 01:38:56 +0000 |
commit | 4fb901bbadf93b13e70bcca6242c2341ff7b5ac2 (patch) | |
tree | f96afbd63b9683f042d39227a093da94c9470cda /tethereal.c | |
parent | fb50fb47790662732df916bcaa9b4cb9a5165863 (diff) |
Allow for non-"struct timeval" ts's in phdr just like we did
in capture.c. Copy the members of the struct instead of the entire struct.
svn path=/trunk/; revision=1640
Diffstat (limited to 'tethereal.c')
-rw-r--r-- | tethereal.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tethereal.c b/tethereal.c index e7ddfaa5d4..5a913bef24 100644 --- a/tethereal.c +++ b/tethereal.c @@ -1,6 +1,6 @@ /* tethereal.c * - * $Id: tethereal.c,v 1.17 2000/02/11 06:53:31 guy Exp $ + * $Id: tethereal.c,v 1.18 2000/02/16 01:38:56 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -587,7 +587,8 @@ capture_pcap_cb(u_char *user, const struct pcap_pkthdr *phdr, loop_data *ld = (loop_data *) user; cb_args_t args; - whdr.ts = phdr->ts; + whdr.ts.tv_sec = phdr->ts.tv_sec; + whdr.ts.tv_usec = phdr->ts.tv_usec; whdr.caplen = phdr->caplen; whdr.len = phdr->len; whdr.pkt_encap = ld->linktype; |