summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ldpd/labelmapping.c
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2013-06-01 18:47:07 +0000
committerclaudio <claudio@openbsd.org>2013-06-01 18:47:07 +0000
commit122f143e662158b8a01a3aa96eeb70a1b4fda3a9 (patch)
tree481c9731c737631150569909372bfa21b1d76f2e /usr.sbin/ldpd/labelmapping.c
parentDocument my divert(4) changes done in April 2013, where reinjected (diff)
downloadwireguard-openbsd-122f143e662158b8a01a3aa96eeb70a1b4fda3a9.tar.xz
wireguard-openbsd-122f143e662158b8a01a3aa96eeb70a1b4fda3a9.zip
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/labelmapping.c')
-rw-r--r--usr.sbin/ldpd/labelmapping.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/ldpd/labelmapping.c b/usr.sbin/ldpd/labelmapping.c
index c9b43ee89fe..b44d4f56b90 100644
--- a/usr.sbin/ldpd/labelmapping.c
+++ b/usr.sbin/ldpd/labelmapping.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: labelmapping.c,v 1.20 2013/06/01 18:35:02 claudio Exp $ */
+/* $OpenBSD: labelmapping.c,v 1.21 2013/06/01 18:47:07 claudio Exp $ */
/*
* Copyright (c) 2009 Michele Marchetto <michele@openbsd.org>
@@ -60,7 +60,7 @@ send_labelmapping(struct nbr *nbr)
fatal("send_labelmapping");
/* real size will be set up later */
- gen_ldp_hdr(buf, nbr->iface, 0);
+ gen_ldp_hdr(buf, 0);
size = LDP_HDR_SIZE - TLV_HDR_LEN;
@@ -171,7 +171,7 @@ send_labelrequest(struct nbr *nbr)
fatal("send_labelrequest");
/* real size will be set up later */
- gen_ldp_hdr(buf, nbr->iface, 0);
+ gen_ldp_hdr(buf, 0);
size = LDP_HDR_SIZE - TLV_HDR_LEN;
@@ -265,7 +265,7 @@ send_labelwithdraw(struct nbr *nbr)
fatal("send_labelwithdraw");
/* real size will be set up later */
- gen_ldp_hdr(buf, nbr->iface, 0);
+ gen_ldp_hdr(buf, 0);
size = LDP_HDR_SIZE - TLV_HDR_LEN;
@@ -403,7 +403,7 @@ send_labelrelease(struct nbr *nbr)
fatal("send_labelrelease");
/* real size will be set up later */
- gen_ldp_hdr(buf, nbr->iface, 0);
+ gen_ldp_hdr(buf, 0);
size = LDP_HDR_SIZE - TLV_HDR_LEN;
@@ -539,7 +539,7 @@ send_labelabortreq(struct nbr *nbr)
size = LDP_HDR_SIZE + sizeof(struct ldp_msg);
- gen_ldp_hdr(buf, nbr->iface, size);
+ gen_ldp_hdr(buf, size);
size -= LDP_HDR_SIZE;