summaryrefslogtreecommitdiff
path: root/usr.sbin/ldpd/lde.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@cvs.openbsd.org>2015-07-21 04:48:43 +0000
committerRenato Westphal <renato@cvs.openbsd.org>2015-07-21 04:48:43 +0000
commit6e1f964c76fe64a2e4d55765a578dbb338c18266 (patch)
tree90e8eba625d3d7d29ad14a8f0384fa50bd686f3a /usr.sbin/ldpd/lde.c
parent2be2eed7d18722c3b4d91d2a0366ee4f6eacf2df (diff)
Record all fields of the received label mappings.
Since we implement the Liberal Label Retention mode, we need to record all fields of the received label mappings so the messages can be processed later when there is a matching nexthop for the advertised FECs. This will be important when we implement VPLS because we need to retain information like the pseudowire's interface MTU and Group ID. ok claudio@
Diffstat (limited to 'usr.sbin/ldpd/lde.c')
-rw-r--r--usr.sbin/ldpd/lde.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ldpd/lde.c b/usr.sbin/ldpd/lde.c
index 6dd38944f0d..82ff83c444d 100644
--- a/usr.sbin/ldpd/lde.c
+++ b/usr.sbin/ldpd/lde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lde.c,v 1.36 2015/07/21 04:46:51 renato Exp $ */
+/* $OpenBSD: lde.c,v 1.37 2015/07/21 04:48:42 renato Exp $ */
/*
* Copyright (c) 2004, 2005 Claudio Jeker <claudio@openbsd.org>
@@ -539,7 +539,7 @@ lde_send_labelmapping(struct lde_nbr *ln, struct fec_node *fn)
me = (struct lde_map *)fec_find(&ln->sent_map, &fn->fec);
if (me == NULL)
me = lde_map_add(ln, fn, 1);
- me->label = map.label;
+ memcpy(&me->map, &map, sizeof(map));
}
void