summaryrefslogtreecommitdiff
path: root/nest/iface.c
diff options
context:
space:
mode:
authorJan Moskyto Matejka <mq@ucw.cz>2017-08-21 14:14:07 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2017-10-17 16:52:18 +0200
commit289c1a7968c5a3c0a76124a89eb45de010f1c640 (patch)
treea0254c01f652f2c24f4be557310343cce2b5810a /nest/iface.c
parent2d7fb19c3c6eadfbd9b994f5c306e79b7c4ee994 (diff)
Iface address debug dump fix
Diffstat (limited to 'nest/iface.c')
-rw-r--r--nest/iface.c9
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" : "");
}
/**