From: Benjamin Cama Date: Wed, 20 Jul 2011 12:43:44 +0000 (+0200) Subject: Add a nexthop6 config option. X-Git-Tag: debian/2.2.1-1fdn1~1^2^2~12 X-Git-Url: http://git.sameswireless.fr/l2tpns.git/commitdiff_plain/59411b879992b8b6b9a5f8d42ae102719f6b245c 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 --- 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;