forked from bacnet-stack/bacnet-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix/mstp extended frames client (bacnet-stack#592)
* Fix routing to a remote network in the router-mstp example. The net, len and adr fields of remote_dest are not initialized although they are used by the npdu_encode_pdu function in case of "Routing to another Router". Thank you, Eugene! * Fixed handling of received MS/TP extended frames. mstp_port->DataLength should be set to the actual length of decoded data. * Fix MSTP_Master_Node_FSM and MSTP_Slave_Node_FSM for extended frames. BACNET_EXTENDED_DATA frames should be treated the same as their corresponding BACNET_DATA frames. * Fixed MSTP COBS frame encoding cobs_frame_encode writes the encoded data to the beginning of the buffer, overwriting the frame header. The frame header is constructed before COBS frame encoding, so it contains the wrong Frame Type and Data Length. * Added extended frame client unit test * Fix router-ipv6 application for remote networks
- Loading branch information
Showing
4 changed files
with
91 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters