summaryrefslogtreecommitdiff
path: root/proto/ospf
diff options
context:
space:
mode:
authorJan Moskyto Matejka <mq@ucw.cz>2016-06-10 14:34:41 +0200
committerJan Moskyto Matejka <mq@ucw.cz>2016-12-22 13:23:52 +0100
commitec5e5d23faa482495c84163c4ae38d9a31bdc00f (patch)
treedb050c0a90a18b4452630b2929d97d1a9ebe19ef /proto/ospf
parent5b208e296fed0beddce16188478c5119df610d89 (diff)
Nexthop: Support for label stack in nest
Diffstat (limited to 'proto/ospf')
-rw-r--r--proto/ospf/rt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/proto/ospf/rt.c b/proto/ospf/rt.c
index d28d463b..74f47810 100644
--- a/proto/ospf/rt.c
+++ b/proto/ospf/rt.c
@@ -37,6 +37,7 @@ static inline struct nexthop *
new_nexthop(struct ospf_proto *p, ip_addr gw, struct iface *iface, byte weight)
{
struct nexthop *nh = lp_alloc(p->nhpool, sizeof(struct nexthop));
+ nh->labels = 0;
nh->gw = gw;
nh->iface = iface;
nh->next = NULL;