summaryrefslogtreecommitdiff
path: root/usr.sbin/ldpd/init.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2013-06-01 18:47:08 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2013-06-01 18:47:08 +0000
commit20eb1c451d6374bab1f0ef1b5042f25f7efb2e89 (patch)
tree8566cc8b2ccfef08303e5a7cde132ae680ceeb94 /usr.sbin/ldpd/init.c
parentad4de5b1c76896379d6cab9b55686c2e66215131 (diff)
Drop support for per-interface labelspaces.
Support for per-interface labelspaces is only necessary for legacy ATM/FR interfaces running in cell-mode. We shouldn't worry about this. For platform-wide label spaces the label space id is always 0. Diff by Renato Westphal
Diffstat (limited to 'usr.sbin/ldpd/init.c')
-rw-r--r--usr.sbin/ldpd/init.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/ldpd/init.c b/usr.sbin/ldpd/init.c
index 11ad2280470..cccc347bbca 100644
--- a/usr.sbin/ldpd/init.c
+++ b/usr.sbin/ldpd/init.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init.c,v 1.8 2013/06/01 18:35:02 claudio Exp $ */
+/* $OpenBSD: init.c,v 1.9 2013/06/01 18:47:07 claudio Exp $ */
/*
* Copyright (c) 2009 Michele Marchetto <michele@openbsd.org>
@@ -53,7 +53,7 @@ send_init(struct nbr *nbr)
size = LDP_HDR_SIZE + sizeof(struct ldp_msg) + SESS_PRMS_SIZE;
- gen_ldp_hdr(buf, nbr->iface, size);
+ gen_ldp_hdr(buf, size);
size -= LDP_HDR_SIZE;
@@ -127,7 +127,6 @@ gen_init_prms_tlv(struct ibuf *buf, struct nbr *nbr, u_int16_t size)
parms.pvlim = 0;
parms.max_pdu_len = 0;
parms.lsr_id = nbr->id.s_addr;
- /* XXX: nbr lspace */
parms.lspace_id = 0;
return (ibuf_add(buf, &parms, SESS_PRMS_SIZE));