aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/ipfix.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-05-17 07:45:36 +0000
committerGuy Harris <guy@alum.mit.edu>2013-05-17 07:45:36 +0000
commit7634be8b27383a32d8eaa87ade34f1775dd219aa (patch)
tree1d8ff8a12ee0cd901aa5c856de74bbb12628a353 /wiretap/ipfix.c
parent04d33bca00179b04f0a34b671a9eead2d8bbcd38 (diff)
IPFIX records have a time stamp (and, according to RFC 5101, it's UNIX
time, i.e. seconds since January 1, 1970, 00:00:00 UTC). svn path=/trunk/; revision=49370
Diffstat (limited to 'wiretap/ipfix.c')
-rw-r--r--wiretap/ipfix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/ipfix.c b/wiretap/ipfix.c
index 1b0bffc08c..b10faf489a 100644
--- a/wiretap/ipfix.c
+++ b/wiretap/ipfix.c
@@ -172,10 +172,10 @@ ipfix_read_and_process_message_header(FILE_T fh, struct wtap_pkthdr *phdr, int *
if (!ipfix_read_message_header(&msg_hdr, fh, err, err_info))
return FALSE;
- phdr->presence_flags = 0;
+ phdr->presence_flags = WTAP_HAS_TS;
phdr->len = msg_hdr.message_length;
phdr->caplen = msg_hdr.message_length;
- phdr->ts.secs = 0;
+ phdr->ts.secs = msg_hdr.export_time_secs;
phdr->ts.nsecs = 0;
return TRUE;