Add route_protocol option

To be able to distinguish routes from several running l2tpns instances.
This commit is contained in:
Samuel Thibault 2025-03-29 13:03:39 +01:00
parent 44b01d70c6
commit b793850d2f
5 changed files with 37 additions and 18 deletions

View file

@ -783,6 +783,8 @@ typedef struct
int account_all_origin; // Accouting all origin (LAC data + Remote LNS Data + PPPOE data)
in_addr_t bind_address;
in_addr_t peer_address;
struct in6_addr ipv6_prefix; // Our IPv6 network pool.
uint16_t route_protocol; // Route protocol number to use
int send_garp; // Set to true to garp for vip address on startup
int dump_speed;
@ -822,9 +824,6 @@ typedef struct
int cluster_hb_timeout; // How many missed heartbeats trigger an election.
uint64_t cluster_table_version; // # state changes processed by cluster
struct in6_addr ipv6_prefix; // Our IPv6 network pool.
int cluster_master_min_adv; // Master advertises routes while the number of up to date
// slaves is less than this value.
in_addr_t cli_bind_address; // bind address for CLI