diff options
| author | 2010-03-03 10:18:35 +0000 | |
|---|---|---|
| committer | 2010-03-03 10:18:35 +0000 | |
| commit | 13ca3ccf59c32a239b0e13252e49a8083da435c5 (patch) | |
| tree | f93b81b4f3bce6e03ce3a934c4b487bf4182bc7d /usr.sbin/ldpctl/ldpctl.c | |
| parent | Rework the kroute code by stealing some code from ospfd and massaging it (diff) | |
| download | wireguard-openbsd-13ca3ccf59c32a239b0e13252e49a8083da435c5.tar.xz wireguard-openbsd-13ca3ccf59c32a239b0e13252e49a8083da435c5.zip | |
Must check for NO_LABEL here as well or we print strange label numbers.
OK michele@
Diffstat (limited to 'usr.sbin/ldpctl/ldpctl.c')
| -rw-r--r-- | usr.sbin/ldpctl/ldpctl.c | 6 |
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 |
