Permalink
Browse files

fixes endtime error

  • Loading branch information...
simsong committed Aug 16, 2012
1 parent e957242 commit 96220c90cf850a8c3bfd30d49fe1cdf940f7224e
Showing with 6 additions and 1 deletion.
  1. +4 −0 ChangeLog
  2. +2 −0 src/tcpdemux.cpp
  3. +0 −1 src/tcpip.cpp
View
@@ -1,3 +1,7 @@
+2012-08-16 Simson Garfinkel <simsong@mucha.lan>
+
+ * src/tcpdemux.cpp (tcpdemux::process_tcp): fixed bug in which myflow.tlast wasn't being set.
+
2012-08-16 Simson Garfinkel <simsong@Mucha.local>
* configure.ac: Increased version number to 1.2.9
View
@@ -353,6 +353,8 @@ void tcpdemux::process_tcp(const struct timeval *ts,const u_char *data, uint32_t
}
if (tcp==NULL){
tcp = create_tcpip(this_flow, vlan, seq, *ts,connection_count);
+ } else {
+ tcp->myflow.tlast = *ts; // most recently seen packet
}
tcp->myflow.packet_count++;
View
@@ -381,4 +381,3 @@ void tcpip::store_packet(const u_char *data, uint32_t length, uint32_t seq, int
close_file();
}
}
-

0 comments on commit 96220c9

Please sign in to comment.