summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ldpd/labelmapping.c
diff options
context:
space:
mode:
authorrenato <renato@openbsd.org>2016-07-15 17:09:25 +0000
committerrenato <renato@openbsd.org>2016-07-15 17:09:25 +0000
commit4dcd314e7f1f46df7cf7cc4a4f21954df9b8d473 (patch)
treeb456d4f64ea1cb1ffa562a2d3554a7874c9eb32a /usr.sbin/ldpd/labelmapping.c
parentExplicitly ignore the Hop Count and Path Vector TLVs. (diff)
downloadwireguard-openbsd-4dcd314e7f1f46df7cf7cc4a4f21954df9b8d473.tar.xz
wireguard-openbsd-4dcd314e7f1f46df7cf7cc4a4f21954df9b8d473.zip
Improve logging of reserved labels.
Print "exp-null" and "imp-null" instead of "0" and "3", for example. Also, remove print_label() and print_pw_type() from ldpctl.c and use the equivalent functions from ldpd's log.c. While here, be more paranoid and use UINT32_MAX instead of UINT_MAX for NO_LABEL.
Diffstat (limited to 'usr.sbin/ldpd/labelmapping.c')
-rw-r--r--usr.sbin/ldpd/labelmapping.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ldpd/labelmapping.c b/usr.sbin/ldpd/labelmapping.c
index b6a736a3657..a1ec305f0ca 100644
--- a/usr.sbin/ldpd/labelmapping.c
+++ b/usr.sbin/ldpd/labelmapping.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: labelmapping.c,v 1.56 2016/07/15 17:05:50 renato Exp $ */
+/* $OpenBSD: labelmapping.c,v 1.57 2016/07/15 17:09:25 renato Exp $ */
/*
* Copyright (c) 2014, 2015 Renato Westphal <renato@openbsd.org>
@@ -394,8 +394,8 @@ recv_labelmessage(struct nbr *nbr, char *buf, uint16_t len, uint16_t type)
switch (type) {
case MSG_TYPE_LABELMAPPING:
log_debug("label mapping from lsr-id %s, FEC %s, "
- "label %u", inet_ntoa(nbr->id),
- log_map(&me->map), me->map.label);
+ "label %s", inet_ntoa(nbr->id),
+ log_map(&me->map), log_label(me->map.label));
imsg_type = IMSG_LABEL_MAPPING;
break;
case MSG_TYPE_LABELREQUEST: