pmlag

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

commit 877a44ceac7583d009e1a06618b0d4c1161f1d80
parent 4505d9aeb869ce46b415e9652b6f1770e88208ad
Author: Robin Bron <robin@finwo.nl>
Date:   Mon, 27 Feb 2023 23:27:44 +0100

Fix mutex reference in routing-table.c

Diffstat:
Msrc/util/routing-table.c | 2+-
Msrc/util/routing-table.h | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/util/routing-table.c b/src/util/routing-table.c @@ -64,7 +64,7 @@ int rt_upsert( ((bcidx - rt_entry->bcidx) < 0) // Or the received bcidx is lower than known (old packet) ) { printf(" Bail, %d, %d\n\n", bcidx, rt_entry->bcidx); - pthread_mutex_unlock(&(iface->bond->mtx_rt)); + pthread_mutex_unlock(mtx); return 0; } diff --git a/src/util/routing-table.h b/src/util/routing-table.h @@ -5,7 +5,7 @@ struct pmlag_rt_entry { unsigned char *mac; // mac address of the remote entity - int16_t bcidx; // broadcast index last seen from the mac + int16_t bcidx; // broadcast index last seen from the mac pmlag_iface_llist *interfaces; // list of pointers to interfaces };