Improve logging of reserved labels.
authorrenato <renato@openbsd.org>
Fri, 15 Jul 2016 17:09:25 +0000 (17:09 +0000)
committerrenato <renato@openbsd.org>
Fri, 15 Jul 2016 17:09:25 +0000 (17:09 +0000)
commit4dcd314e7f1f46df7cf7cc4a4f21954df9b8d473
treeb456d4f64ea1cb1ffa562a2d3554a7874c9eb32a
parent5953eecf8de1e1eca62522bdb390230fe1ab37f5
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.
usr.sbin/ldpctl/ldpctl.c
usr.sbin/ldpd/labelmapping.c
usr.sbin/ldpd/ldp.h
usr.sbin/ldpd/log.c
usr.sbin/ldpd/log.h