]> git.meshlink.io Git - meshlink-tiny/log
meshlink-tiny
3 years agoReduce memory usage of meshlink_join().
Guus Sliepen [Mon, 12 Jul 2021 19:51:55 +0000 (21:51 +0200)]
Reduce memory usage of meshlink_join().

Reduce the size of the buffers, and allocate the join state on the heap.

3 years agoConvert addresses to text using inet_ntop().
Guus Sliepen [Mon, 12 Jul 2021 19:47:07 +0000 (21:47 +0200)]
Convert addresses to text using inet_ntop().

The ESP32 SDK doesn't support getnameinfo().

3 years agoWork around STATUS already being defined in the ESP32 header files.
Guus Sliepen [Mon, 12 Jul 2021 19:38:05 +0000 (21:38 +0200)]
Work around STATUS already being defined in the ESP32 header files.

3 years agoUse esp_fill_random() to generate random bytes.
Guus Sliepen [Mon, 12 Jul 2021 19:37:40 +0000 (21:37 +0200)]
Use esp_fill_random() to generate random bytes.

3 years agoUpdate the test suite for Meshlink-tiny.
Guus Sliepen [Thu, 29 Jul 2021 23:32:03 +0000 (01:32 +0200)]
Update the test suite for Meshlink-tiny.

It depends on the full Meshlink library being available as well, which must
be installed or its location should be added to LD_LIBRARY_PATH in order to
be able to run the tests. It is being loaded using dlopen() with the
RTLD_LOCAL and RTLD_DEEPBIND flags to ensure the symbols from the tiny and
full version don't collide.

3 years agoRemove the declaration of meshlink_get_node_reachability().
Guus Sliepen [Thu, 29 Jul 2021 22:01:57 +0000 (00:01 +0200)]
Remove the declaration of meshlink_get_node_reachability().

3 years agoRemove the blackbox test suite.
Guus Sliepen [Thu, 29 Jul 2021 22:00:34 +0000 (00:00 +0200)]
Remove the blackbox test suite.

3 years agoFix a possible crash when opening an ephemeral instance.
Guus Sliepen [Mon, 12 Jul 2021 19:34:35 +0000 (21:34 +0200)]
Fix a possible crash when opening an ephemeral instance.

3 years agoCheck for the availability of flock().
Guus Sliepen [Mon, 12 Jul 2021 19:26:24 +0000 (21:26 +0200)]
Check for the availability of flock().

3 years agoRemove all support for channels.
Guus Sliepen [Mon, 21 Jun 2021 21:13:50 +0000 (23:13 +0200)]
Remove all support for channels.

Also, only allow communication with the peer we have a connection to.
Instead of using an inner SPTPS session, just send raw packets directly
over the meta-connection.

3 years agoRemove logging when compiled with -DNDEBUG.
Guus Sliepen [Sun, 20 Jun 2021 21:17:24 +0000 (23:17 +0200)]
Remove logging when compiled with -DNDEBUG.

Also fix compiler warnings generated when logger() is #defined to do nothing.

3 years agoRemove the UTCP send and receive buffers.
Guus Sliepen [Sun, 20 Jun 2021 20:51:41 +0000 (22:51 +0200)]
Remove the UTCP send and receive buffers.

3 years agoRemove support for TCP channels and AIO.
Guus Sliepen [Sun, 20 Jun 2021 20:14:18 +0000 (22:14 +0200)]
Remove support for TCP channels and AIO.

3 years agoRemove unused invitation related function declarations.
Guus Sliepen [Sat, 19 Jun 2021 21:42:58 +0000 (23:42 +0200)]
Remove unused invitation related function declarations.

3 years agoEnsure we exchange a session key for application data exchange.
Guus Sliepen [Sat, 19 Jun 2021 21:38:49 +0000 (23:38 +0200)]
Ensure we exchange a session key for application data exchange.

We need to create an edge and send it to the peer, so it will be able to
run its graph algorithms and consider us reachable, otherwise it will not
respond to REQ_KEY requests.

3 years agoRemove MTU and traffic statistics.
Guus Sliepen [Sat, 19 Jun 2021 21:31:16 +0000 (23:31 +0200)]
Remove MTU and traffic statistics.

3 years agoRemove some unused variables.
Guus Sliepen [Sat, 19 Jun 2021 21:04:05 +0000 (23:04 +0200)]
Remove some unused variables.

3 years agoRemove support for request forwarding.
Guus Sliepen [Sat, 19 Jun 2021 20:50:13 +0000 (22:50 +0200)]
Remove support for request forwarding.

3 years agoRemove support for multiple connections.
Guus Sliepen [Sat, 19 Jun 2021 20:43:17 +0000 (22:43 +0200)]
Remove support for multiple connections.

3 years agoRemove support for submeshes.
Guus Sliepen [Sat, 19 Jun 2021 16:13:25 +0000 (18:13 +0200)]
Remove support for submeshes.

3 years agoRemove support for automatically detecting external addresses.
Guus Sliepen [Sat, 19 Jun 2021 15:47:18 +0000 (17:47 +0200)]
Remove support for automatically detecting external addresses.

3 years agoRemove listening sockets.
Guus Sliepen [Sat, 19 Jun 2021 15:36:25 +0000 (17:36 +0200)]
Remove listening sockets.

3 years agoRemove asynchronous DNS support.
Guus Sliepen [Sat, 19 Jun 2021 13:59:24 +0000 (15:59 +0200)]
Remove asynchronous DNS support.

3 years agoRemove graph, edges and communication via UDP.
Guus Sliepen [Sun, 13 Jun 2021 21:58:54 +0000 (23:58 +0200)]
Remove graph, edges and communication via UDP.

3 years agoFix building the example programs.
Guus Sliepen [Sat, 12 Jun 2021 21:23:16 +0000 (23:23 +0200)]
Fix building the example programs.

3 years agoRename the library and public header to meshlink-tiny.
Guus Sliepen [Sat, 12 Jun 2021 21:07:27 +0000 (23:07 +0200)]
Rename the library and public header to meshlink-tiny.

This allows the library to coexist with the full MeshLink library in the
same installation directory, and avoids accidental linking to the wrong
version of the library.

The function names have not changed, so it is not possible to
simultaneously link both versions of the library into a single program.

3 years agoDrop support for meshlink_blacklist()/whitelist().
Guus Sliepen [Sat, 12 Jun 2021 15:58:58 +0000 (17:58 +0200)]
Drop support for meshlink_blacklist()/whitelist().

Keep the internal tracking of the blacklist status of each node for now.

3 years agoRemove support for meshlink_invite().
Guus Sliepen [Sat, 12 Jun 2021 15:47:58 +0000 (17:47 +0200)]
Remove support for meshlink_invite().

3 years agoStart of the MeshLink-tiny library.
Guus Sliepen [Sat, 12 Jun 2021 13:44:52 +0000 (15:44 +0200)]
Start of the MeshLink-tiny library.

3 years agoGet the full history from the main meshlink repository.
Guus Sliepen [Sat, 12 Jun 2021 13:50:29 +0000 (15:50 +0200)]
Get the full history from the main meshlink repository.