gluon-radv-filterd: Always output a message when choosing new router

This commit is contained in:
Jan-Philipp Litza 2016-12-09 20:29:11 +01:00
parent c887960e90
commit a313af733d
No known key found for this signature in database
GPG Key ID: 1FB658053CE27196

View File

@ -517,7 +517,16 @@ static void update_ebtables() {
break; break;
} }
} }
DEBUG_MSG("Determined %s as new best router with TQ=%d", mac, G.max_tq); if (G.best_router)
fprintf(stderr, "Switching from " F_MAC " (TQ=%d) to %s (TQ=%d)\n",
F_MAC_VAR(G.best_router->src),
G.best_router->tq,
mac,
G.max_tq);
else
fprintf(stderr, "Switching to %s (TQ=%d)\n",
mac,
G.max_tq);
G.best_router = router; G.best_router = router;
if (fork_execvp_timeout(&timeout, "ebtables", (const char *[]) if (fork_execvp_timeout(&timeout, "ebtables", (const char *[])