- Fixed incorrect init_connections() call in test_etcp_simple_traffic.c (was calling server_instance instead of client_instance) - Fixed double free in timeout_heap_pop() when handling deleted elements - Enhanced NULL pointer safety in uasync_print_resources() by removing complex heap manipulation - Added debug logging to timeout_heap_pop() for better error tracking Test results: test_etcp_simple_traffic now passes without double free errors
46 lines
1.2 KiB
Makefile
Executable File
46 lines
1.2 KiB
Makefile
Executable File
bin_PROGRAMS = utun
|
|
|
|
utun_SOURCES = \
|
|
utun.c \
|
|
utun_instance.c \
|
|
config_parser.c \
|
|
config_updater.c \
|
|
routing.c \
|
|
tun_if.c \
|
|
etcp.c \
|
|
etcp_connections.c \
|
|
etcp_loadbalancer.c \
|
|
secure_channel.c \
|
|
crc32.c \
|
|
pkt_normalizer.c \
|
|
utun_test_hooks.c \
|
|
$(top_srcdir)/tinycrypt/lib/source/aes_encrypt.c \
|
|
$(top_srcdir)/tinycrypt/lib/source/aes_decrypt.c \
|
|
$(top_srcdir)/tinycrypt/lib/source/cbc_mode.c \
|
|
$(top_srcdir)/tinycrypt/lib/source/ccm_mode.c \
|
|
$(top_srcdir)/tinycrypt/lib/source/cmac_mode.c \
|
|
$(top_srcdir)/tinycrypt/lib/source/ctr_mode.c \
|
|
$(top_srcdir)/tinycrypt/lib/source/ecc.c \
|
|
$(top_srcdir)/tinycrypt/lib/source/ecc_dh.c \
|
|
$(top_srcdir)/tinycrypt/lib/source/ecc_dsa.c \
|
|
$(top_srcdir)/tinycrypt/lib/source/ecc_platform_specific.c \
|
|
$(top_srcdir)/tinycrypt/lib/source/hmac.c \
|
|
$(top_srcdir)/tinycrypt/lib/source/sha256.c \
|
|
$(top_srcdir)/tinycrypt/lib/source/utils.c
|
|
|
|
utun_CFLAGS = \
|
|
-I$(top_srcdir)/lib \
|
|
-I$(top_srcdir)/tinycrypt/lib/include \
|
|
-I$(top_srcdir)/tinycrypt/lib/source \
|
|
$(DEBUG_FLAGS)
|
|
|
|
utun_LDADD = \
|
|
$(top_builddir)/lib/libuasync.a \
|
|
-lpthread \
|
|
-lm
|
|
|
|
# Install directories
|
|
install-exec-hook:
|
|
$(MKDIR_P) $(DESTDIR)$(bindir)
|
|
$(MKDIR_P) $(DESTDIR)$(sysconfdir)/utun
|