calimero-project / calimero-core

Core library for KNX network access and management
Other
128 stars 65 forks source link

Fix invalid minimum buffer size and properly set status bits. #79

Closed ghost closed 5 years ago

ghost commented 5 years ago

The minimum size of a tunneling DIB consists out of 8 bytes, header (2 Byte), max. ADPU length (2 Byte) and at least one tunneling slot info object (4 Byte).

The status bits 15 to Bit 3 are reserved, though they need to be set to 1 (KNX AN185 Page 23, Note 10).

Add additional test function to take that both conditions into account.

ghost commented 5 years ago

Sorry for the inconvenience, i had left some traces of my backport classes left.