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 <benoar@dolka.fr>
This commit is contained in:
parent
f4fb6922fe
commit
59411b8799
2 changed files with 2 additions and 0 deletions
1
l2tpns.c
1
l2tpns.c
|
|
@ -157,6 +157,7 @@ config_descriptt config_values[] = {
|
||||||
CONFIG("cluster_hb_timeout", cluster_hb_timeout, INT),
|
CONFIG("cluster_hb_timeout", cluster_hb_timeout, INT),
|
||||||
CONFIG("cluster_master_min_adv", cluster_master_min_adv, INT),
|
CONFIG("cluster_master_min_adv", cluster_master_min_adv, INT),
|
||||||
CONFIG("ipv6_prefix", ipv6_prefix, IPv6),
|
CONFIG("ipv6_prefix", ipv6_prefix, IPv6),
|
||||||
|
CONFIG("nexthop6_address", nexthop6_address, IPv6),
|
||||||
{ NULL, 0, 0, 0 },
|
{ NULL, 0, 0, 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
1
l2tpns.h
1
l2tpns.h
|
|
@ -724,6 +724,7 @@ typedef struct
|
||||||
int keepalive;
|
int keepalive;
|
||||||
int hold;
|
int hold;
|
||||||
} neighbour[BGP_NUM_PEERS];
|
} neighbour[BGP_NUM_PEERS];
|
||||||
|
struct in6_addr nexthop6_address;
|
||||||
#endif
|
#endif
|
||||||
} configt;
|
} configt;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue