2021-06-06fix bug: frame data read from network was potentially being moved inside buffer (lb_normalize()) before it was processed by caller to read_frame()
mjsousa <msousa@fe.up.pt> [Sun, 06 Jun 2021 22:40:06 +0100] rev 15
fix bug: frame data read from network was potentially being moved inside buffer (lb_normalize()) before it was processed by caller to read_frame()

2021-06-02add parenthesis to #define'd constants so later multipications work correctly
mjsousa <msousa@fe.up.pt> [Wed, 02 Jun 2021 11:09:57 +0100] rev 14
add parenthesis to #define'd constants so later multipications work correctly

2021-06-02fix bug with receive buffer handling. Was causing data corruption during communication errors with long frames.
mjsousa <msousa@fe.up.pt> [Wed, 02 Jun 2021 09:23:13 +0100] rev 13
fix bug with receive buffer handling. Was causing data corruption during communication errors with long frames.

2021-03-22Add KeepAlive support for all TCP sockets.
Edouard Tisserant [Mon, 22 Mar 2021 14:57:48 +0100] rev 12
Add KeepAlive support for all TCP sockets.

2020-06-01merge
Mario de Sousa <msousa@fe.up.pt> [Mon, 01 Jun 2020 14:28:49 +0100] rev 11
merge

2020-06-01correct version of --> Allow "" and NULL on TCP host and service (=> IP=INADDR_ANY, and port=0)
Mario de Sousa <msousa@fe.up.pt> [Mon, 01 Jun 2020 14:27:56 +0100] rev 10
correct version of --> Allow "" and NULL on TCP host and service (=> IP=INADDR_ANY, and port=0)

2020-06-01Undo changes inserted in previous commit (included 2 unrelated changes)
Mario de Sousa <msousa@fe.up.pt> [Mon, 01 Jun 2020 14:24:57 +0100] rev 9
Undo changes inserted in previous commit (included 2 unrelated changes)

2020-06-01Allow "" and NULL on TCP host and service (=> IP=INADDR_ANY, and port=0)
Mario de Sousa <msousa@fe.up.pt> [Mon, 01 Jun 2020 14:15:03 +0100] rev 8
Allow "" and NULL on TCP host and service (=> IP=INADDR_ANY, and port=0)

2019-12-10merge
Mario de Sousa <msousa@fe.up.pt> [Tue, 10 Dec 2019 16:07:49 +0000] rev 7
merge

2019-12-10change hton() and ntoh() so we don't use (u8 *) to (u16 *) casts. Some compilers incorrectly change the pointer to force alignment with even addresses.
Mario de Sousa <msousa@fe.up.pt> [Tue, 10 Dec 2019 15:51:32 +0000] rev 6
change hton() and ntoh() so we don't use (u8 *) to (u16 *) casts. Some compilers incorrectly change the pointer to force alignment with even addresses.

2019-12-10Mario's fix for the pointer alignment problem. See changeset 4: 99009b24d401.
bmakuc <blaz.makuc@smarteh.si> [Tue, 10 Dec 2019 09:30:59 +0100] rev 5
Mario's fix for the pointer alignment problem. See changeset 4: 99009b24d401.

2019-11-27Variables start_addr and count were read from query_packet using function mb_ntoh_safe. It looks like some compilers change the pointer alignment if the first byte starts at an odd address. Because mb_ntoh_safe uses pointers slave address and count (number of registers) were not read correctly from the buffer when several modbus slaves were present in network. In this temporary solution pointer aritmetics is replaced by simple 256 multiplication.
bmakuc <blaz.makuc@smarteh.si> [Wed, 27 Nov 2019 14:53:22 +0100] rev 4
Variables start_addr and count were read from query_packet using function mb_ntoh_safe. It looks like some compilers change the pointer alignment if the first byte starts at an odd address. Because mb_ntoh_safe uses pointers slave address and count (number of registers) were not read correctly from the buffer when several modbus slaves were present in network. In this temporary solution pointer aritmetics is replaced by simple 256 multiplication.

2019-02-11Setting socket option so that TCP Modbus slave can re-use same port immediately after freeing it
Edouard Tisserant [Mon, 11 Feb 2019 11:07:01 +0100] rev 3
Setting socket option so that TCP Modbus slave can re-use same port immediately after freeing it

2018-11-16Let Makefile use default CFLAGS and CC instead of overriding them
Edouard Tisserant [Fri, 16 Nov 2018 09:28:12 +0100] rev 2
Let Makefile use default CFLAGS and CC instead of overriding them

2017-03-18Remove incorrect inlines
Andrey Skvortsov <andrej.skvortzov@gmail.com> [Sat, 18 Mar 2017 15:46:04 +0000] rev 1
Remove incorrect inlines

2017-03-05Initial commit.
Mario de Sousa <msousa@fe.up.pt> [Sun, 05 Mar 2017 00:05:46 +0000] rev 0
Initial commit.