From 59411b879992b8b6b9a5f8d42ae102719f6b245c Mon Sep 17 00:00:00 2001 From: Benjamin Cama Date: Wed, 20 Jul 2011 14:43:44 +0200 Subject: [PATCH] Add a nexthop6 config option. Will be used to set the NEXT_HOP for IPv6 routes, otherwise our address in ipv6_prefix is used as the next hop. Signed-off-by: Benjamin Cama --- l2tpns.c | 1 + l2tpns.h | 1 + 2 files changed, 2 insertions(+) diff --git a/l2tpns.c b/l2tpns.c index 8fdcb53..d70cc45 100644 --- a/l2tpns.c +++ b/l2tpns.c @@ -157,6 +157,7 @@ config_descriptt config_values[] = { CONFIG("cluster_hb_timeout", cluster_hb_timeout, INT), CONFIG("cluster_master_min_adv", cluster_master_min_adv, INT), CONFIG("ipv6_prefix", ipv6_prefix, IPv6), + CONFIG("nexthop6_address", nexthop6_address, IPv6), { NULL, 0, 0, 0 }, }; diff --git a/l2tpns.h b/l2tpns.h index 6849be9..55de73f 100644 --- a/l2tpns.h +++ b/l2tpns.h @@ -724,6 +724,7 @@ typedef struct int keepalive; int hold; } neighbour[BGP_NUM_PEERS]; + struct in6_addr nexthop6_address; #endif } configt; -- 2.20.1