summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2010-03-03 10:18:36 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2010-03-03 10:18:36 +0000
commitb6941aba6716602bfee4f8b3d1d73c3dea8f1398 (patch)
tree5d21ed834487740a846f2020295b25d726238c23 /usr.sbin
parent40dc970cc87f330e381e09b68692315c30d660f5 (diff)
Must check for NO_LABEL here as well or we print strange label numbers.
OK michele@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ldpctl/ldpctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ldpctl/ldpctl.c b/usr.sbin/ldpctl/ldpctl.c
index 0388149326a..bfb08c81323 100644
--- a/usr.sbin/ldpctl/ldpctl.c
+++ b/usr.sbin/ldpctl/ldpctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldpctl.c,v 1.7 2010/01/02 14:56:02 michele Exp $
+/* $OpenBSD: ldpctl.c,v 1.8 2010/03/03 10:18:35 claudio Exp $
*
* Copyright (c) 2009 Michele Marchetto <michele@openbsd.org>
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -429,13 +429,13 @@ show_lfib_msg(struct imsg *imsg)
else if (k->flags & F_CONNECTED)
printf("link#%-13u", k->ifindex);
- if (k->local_label) {
+ if (k->local_label != NO_LABEL) {
printf("%-18u", (ntohl(k->local_label) >>
MPLS_LABEL_OFFSET));
} else
printf("- ");
- if (k->remote_label) {
+ if (k->remote_label != NO_LABEL) {
printf("%u", (ntohl(k->remote_label) >>
MPLS_LABEL_OFFSET));
} else