connection_t: split compression_level/log_level into two fields
authorKirill Isakov <bootctl@gmail.com>
Thu, 21 Apr 2022 07:12:47 +0000 (13:12 +0600)
committerGuus Sliepen <guus@tinc-vpn.org>
Thu, 21 Apr 2022 18:34:57 +0000 (20:34 +0200)
commit668750c022a02cc54756316907f1cbbf7d673025
tree866853a4da92c6e00ab4f45fdce6417ff99ce39d
parent90cde91141ec61be4354d8deab21edb8fdf01022
connection_t: split compression_level/log_level into two fields

compression_level is reused as a place to store log_level when piping
logs to tincctl. Since it was being compared directly with a log level,
it felt like a wrong field is being used by mistake.

Wrap it in union to avoid wasting additional memory.
src/connection.h
src/control.c
src/dropin.h
src/logger.c
src/tincctl.c
test/unit/meson.build
test/unit/test_dropin.c [new file with mode: 0644]