Add a nexthop6 config option.
authorBenjamin Cama <benoar@dolka.fr>
Wed, 20 Jul 2011 12:43:44 +0000 (14:43 +0200)
committerBenjamin Cama <benoar@dolka.fr>
Thu, 28 Jul 2011 13:01:51 +0000 (15:01 +0200)
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 <benoar@dolka.fr>
l2tpns.c
l2tpns.h

index 8fdcb53..d70cc45 100644 (file)
--- 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 },
 };
 
index 6849be9..55de73f 100644 (file)
--- 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;