pmlag

Poor man's link aggregation
git clone git://git.finwo.net/app/pmlag
Log | Files | Refs | README | LICENSE

commit a46548078336dd52d56fff29db32fc158102d6d3
parent a5b57772598483b7a74480b2f12f6d5bc0a62733
Author: Yersa Nordman <yersa@finwo.nl>
Date:   Wed, 22 Feb 2023 22:15:58 +0100

Unlock the routing table as soon as possible

Diffstat:
Msrc/main.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/main.c b/src/main.c @@ -268,6 +268,7 @@ void * thread_bond(void *arg) { // Select interface at random iface = rt_entry->interfaces[rand() % iface_list_len]; + pthread_mutex_unlock(&(bond->mtx_rt)); // Prepare saddr_ll for sendto saddr_ll.sll_ifindex = iface->ifidx; @@ -280,8 +281,6 @@ void * thread_bond(void *arg) { /* pthread_exit(NULL); */ /* return NULL; */ } - - pthread_mutex_unlock(&(bond->mtx_rt)); } // Wait for iface threads to finish