diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-06-09 14:01:04 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-06-09 14:01:04 +0000 |
commit | 5381122906bf88c5fd4bc51d07e075e9ddc41e0b (patch) | |
tree | bcc54e2fe8288a9061ded57ab84c7c06ce76974c /usr.sbin/ldpd/labelmapping.c | |
parent | 3c00b7616a1dbb56c84ff329771b1d99d92d34a4 (diff) |
Move the logging of FEC changes to the LDE and print the FEC and label
information. This is more useful.
OK michele
Diffstat (limited to 'usr.sbin/ldpd/labelmapping.c')
-rw-r--r-- | usr.sbin/ldpd/labelmapping.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/usr.sbin/ldpd/labelmapping.c b/usr.sbin/ldpd/labelmapping.c index 21f99f0a06d..0a005506e83 100644 --- a/usr.sbin/ldpd/labelmapping.c +++ b/usr.sbin/ldpd/labelmapping.c @@ -1,4 +1,4 @@ -/* $OpenBSD: labelmapping.c,v 1.11 2010/05/26 13:56:07 nicm Exp $ */ +/* $OpenBSD: labelmapping.c,v 1.12 2010/06/09 14:01:03 claudio Exp $ */ /* * Copyright (c) 2009 Michele Marchetto <michele@openbsd.org> @@ -56,8 +56,6 @@ send_labelmapping(struct nbr *nbr) if (nbr->iface->passive) return; - log_debug("send_labelmapping: neighbor ID %s", inet_ntoa(nbr->id)); - if ((buf = ibuf_open(LDP_MAX_LEN)) == NULL) fatal("send_labelmapping"); @@ -94,8 +92,6 @@ recv_labelmapping(struct nbr *nbr, char *buf, u_int16_t len) int feclen, tlen; u_int8_t addr_type; - log_debug("recv_labelmapping: neighbor ID %s", inet_ntoa(nbr->id)); - if (nbr->state != NBR_STA_OPER) return (-1); @@ -169,8 +165,6 @@ send_labelrequest(struct nbr *nbr) if (nbr->iface->passive) return; - log_debug("send_labelrequest: neighbor ID %s", inet_ntoa(nbr->id)); - if ((buf = ibuf_open(LDP_MAX_LEN)) == NULL) fatal("send_labelrequest"); @@ -205,8 +199,6 @@ recv_labelrequest(struct nbr *nbr, char *buf, u_int16_t len) int feclen, tlen; u_int8_t addr_type; - log_debug("recv_labelrequest: neighbor ID %s", inet_ntoa(nbr->id)); - if (nbr->state != NBR_STA_OPER) return (-1); @@ -268,8 +260,6 @@ send_labelwithdraw(struct nbr *nbr) if (nbr->iface->passive) return; - log_debug("send_labelwithdraw: neighbor ID %s", inet_ntoa(nbr->id)); - if ((buf = ibuf_open(LDP_MAX_LEN)) == NULL) fatal("send_labelwithdraw"); @@ -313,8 +303,6 @@ recv_labelwithdraw(struct nbr *nbr, char *buf, u_int16_t len) int feclen, tlen; u_int8_t addr_type; - log_debug("recv_labelwithdraw: neighbor ID %s", inet_ntoa(nbr->id)); - if (nbr->state != NBR_STA_OPER) return (-1); @@ -399,8 +387,6 @@ send_labelrelease(struct nbr *nbr) if (nbr->iface->passive) return; - log_debug("send_labelrelease: neighbor ID %s", inet_ntoa(nbr->id)); - if ((buf = ibuf_open(LDP_MAX_LEN)) == NULL) fatal("send_labelrelease"); @@ -444,8 +430,6 @@ recv_labelrelease(struct nbr *nbr, char *buf, u_int16_t len) int feclen, tlen; u_int8_t addr_type; - log_debug("recv_labelrelease: neighbor ID %s", inet_ntoa(nbr->id)); - if (nbr->state != NBR_STA_OPER) return (-1); @@ -528,8 +512,6 @@ send_labelabortreq(struct nbr *nbr) if (nbr->iface->passive) return; - log_debug("send_labelabortreq: neighbor ID %s", inet_ntoa(nbr->id)); - if ((buf = ibuf_open(LDP_MAX_LEN)) == NULL) fatal("send_labelabortreq"); |