diff options
author | Jan Moskyto Matejka <mq@ucw.cz> | 2017-08-21 14:14:07 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-10-17 16:52:18 +0200 |
commit | 289c1a7968c5a3c0a76124a89eb45de010f1c640 (patch) | |
tree | a0254c01f652f2c24f4be557310343cce2b5810a | |
parent | 2d7fb19c3c6eadfbd9b994f5c306e79b7c4ee994 (diff) |
Iface address debug dump fix
-rw-r--r-- | nest/iface.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/nest/iface.c b/nest/iface.c index 00af5052..f14e70a0 100644 --- a/nest/iface.c +++ b/nest/iface.c @@ -46,10 +46,11 @@ list iface_list; void ifa_dump(struct ifa *a) { - debug("\t%I, net %N bc %I -> %I%s%s%s\n", a->ip, &a->prefix, a->brd, a->opposite, - (a->flags & IF_UP) ? "" : " DOWN", - (a->flags & IA_PRIMARY) ? "" : " SEC", - (a->flags & IA_PEER) ? "PEER" : ""); + debug("\t%I, net %N bc %I -> %I%s%s%s%s\n", a->ip, &a->prefix, a->brd, a->opposite, + (a->flags & IA_PRIMARY) ? " PRIMARY" : "", + (a->flags & IA_SECONDARY) ? " SEC" : "", + (a->flags & IA_HOST) ? " HOST" : "", + (a->flags & IA_PEER) ? " PEER" : ""); } /** |