]> git.meshlink.io Git - meshlink/commit
The maximum unreliable packet size is 65535 bytes.
authorGuus Sliepen <guus@meshlink.io>
Sun, 24 May 2020 19:23:13 +0000 (21:23 +0200)
committerGuus Sliepen <guus@meshlink.io>
Sun, 24 May 2020 19:23:13 +0000 (21:23 +0200)
commit36a7403d3ab239a03c4085fa46f0df2127394a95
treecb4b22380bda9faffdc1ae1a917d0329a658bb5c
parente22b3cef15764699e2bc05b6d9f3fbebf8ccef03
The maximum unreliable packet size is 65535 bytes.

This matches how real UDP works and avoids 16 bit integer overflow.
src/utcp.c
src/utcp_priv.h
test/channels-udp.c