commit 32c3da8225f509a8f82994802dd9662e787eb210
parent 0ec1e7463d3d03d551dd2362de8265516fefb99f
Author: Yersa Nordman <yersa@finwo.nl>
Date: Tue, 21 Feb 2023 23:17:26 +0100
Fix debug messages for routing table updates
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main.c b/src/main.c
@@ -81,7 +81,7 @@ void * thread_iface(void *arg) {
// Fetch or build routing table entry {{{
rt_entry = btree_get(iface->bond->rt, &(struct pmlag_rt_entry){ .mac = (buffer+ETH_ALEN) });
if (!rt_entry) {
- printf(" known mac\n");
+ printf(" new mac\n");
// Build new entry
rt_entry = malloc(sizeof(struct pmlag_rt_entry));
@@ -95,7 +95,7 @@ void * thread_iface(void *arg) {
// And an empty list of interfaces
rt_entry->interfaces = calloc(1, sizeof(struct pm_rt_entry *));
} else {
- printf(" new mac\n");
+ printf(" known mac\n");
}
// }}}
@@ -106,7 +106,7 @@ void * thread_iface(void *arg) {
free(rt_entry->interfaces);
rt_entry->interfaces = calloc(1, sizeof(struct pm_rt_entry *));
} else {
- printf(" new bcidx\n");
+ printf(" known bcidx\n");
}
// }}}