From 451947b7bed5ba6c9c925ceb10df39c42a330614 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sun, 1 Nov 2026 21:38:11 +0100 Subject: Live logging networks was defunc for a while, does not work with v6, so we remove it --- ot_accesslist.c | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'ot_accesslist.c') diff --git a/ot_accesslist.c b/ot_accesslist.c index df084b8..945ddcf 100644 --- a/ot_accesslist.c +++ b/ot_accesslist.c @@ -503,34 +503,6 @@ void *accesslist_get_value_for_net(const ot_ip6 address, const ot_vector *vector return (void *)net; } -#ifdef WANT_FULLLOG_NETWORKS -static ot_vector g_lognets_list; -ot_log *g_logchain_first, *g_logchain_last; -static pthread_mutex_t g_lognets_list_mutex = PTHREAD_MUTEX_INITIALIZER; - -void loglist_add_network(const ot_net *net) { - pthread_mutex_lock(&g_lognets_list_mutex); - accesslist_set_value_for_net(net, &g_lognets_list, NULL, sizeof(ot_net)); - pthread_mutex_unlock(&g_lognets_list_mutex); -} - -void loglist_reset(void) { - pthread_mutex_lock(&g_lognets_list_mutex); - free(g_lognets_list.data); - g_lognets_list.data = 0; - g_lognets_list.size = g_lognets_list.space = 0; - pthread_mutex_unlock(&g_lognets_list_mutex); -} - -int loglist_check_address(const ot_ip6 address) { - int result; - pthread_mutex_lock(&g_lognets_list_mutex); - result = (NULL != accesslist_get_value_for_net(address, &g_lognets_list, sizeof(ot_net))); - pthread_mutex_unlock(&g_lognets_list_mutex); - return result; -} -#endif - #ifdef WANT_IP_FROM_PROXY typedef struct { ot_net *proxy; -- cgit v1.3