Corrected MS/TP capture statistics after converversion of FSM.

This commit is contained in:
skarg
2010-09-13 14:08:28 +00:00
parent bb0c98a9c1
commit 5524cab7cd
+2 -1
View File
@@ -467,7 +467,8 @@ static void write_received_packet(
gettimeofday(&tv, NULL);
ts_sec = tv.tv_sec;
ts_usec = tv.tv_usec;
if (mstp_port->ReceivedValidFrame) {
if ((mstp_port->ReceivedValidFrame) ||
(mstp_port->ReceivedValidFrameNotForUs)) {
packet_statistics(&tv, mstp_port);
}
(void) data_write(&ts_sec, sizeof(ts_sec), 1);