Feature/mstp valid frame not for us stats (#1053)
* Fixed ISO C90 forbids mixed declarations and code warning. * Fixed the MS/TP invalid frame counter that was incremented for valid frames not for us.
This commit is contained in:
@@ -283,6 +283,11 @@ int main(int argc, char *argv[])
|
||||
mstp_port->ReceivedValidFrame = false;
|
||||
snap_received_packet(mstp_port, sockfd);
|
||||
packet_count++;
|
||||
} else if (mstp_port->ReceivedValidFrameNotForUs) {
|
||||
mstp_port->ReceivedValidFrameNotForUs = false;
|
||||
fprintf(stderr, "ReceivedValidFrameNotForUs\n");
|
||||
snap_received_packet(mstp_port, sockfd);
|
||||
packet_count++;
|
||||
} else if (mstp_port->ReceivedInvalidFrame) {
|
||||
mstp_port->ReceivedInvalidFrame = false;
|
||||
fprintf(stderr, "ReceivedInvalidFrame\n");
|
||||
|
||||
Reference in New Issue
Block a user