Improve recently seen address cache
authorKirill Isakov <bootctl@gmail.com>
Thu, 19 May 2022 07:04:20 +0000 (13:04 +0600)
committerKirill Isakov <bootctl@gmail.com>
Sun, 29 May 2022 08:43:37 +0000 (14:43 +0600)
commitc6a15e27d934e90a1f3a26438dddb395bdc9de19
tree35da0cf6b6711f12e29a50c722c17c012e3b6b06
parent1695d8828ed6fb997dbd96e21c105ab5641b90c5
Improve recently seen address cache

- create cache directory on init
- only remember addresses for TCP connections
- update cache in more situations
- add tests
21 files changed:
src/address_cache.c
src/address_cache.h
src/graph.c
src/invitation.c
src/net_packet.c
src/net_setup.c
src/net_socket.c
src/node.c
src/node.h
src/protocol_auth.c
src/protocol_edge.c
src/protocol_misc.c
src/protocol_subnet.c
src/tincctl.c
src/tincctl.h
test/integration/address_cache.py [new file with mode: 0755]
test/integration/cmd_dump.py
test/integration/cmd_join.py
test/integration/meson.build
test/integration/testlib/check.py
test/unit/test_graph.c