Add an option to set source address for a BGP session.
When adding a BGP neighbour, one can set "update-source" (quagga syntax) to the source IP address that will be used for that session. Signed-off-by: Benjamin Cama <benoar@dolka.fr>
This commit is contained in:
parent
11ec3c4a24
commit
b36141c0c7
5 changed files with 51 additions and 3 deletions
3
l2tpns.c
3
l2tpns.c
|
|
@ -3564,7 +3564,8 @@ static void mainloop(void)
|
|||
if (config->neighbour[i].name[0])
|
||||
bgp_start(&bgp_peers[i], config->neighbour[i].name,
|
||||
config->neighbour[i].as, config->neighbour[i].keepalive,
|
||||
config->neighbour[i].hold, 0); /* 0 = routing disabled */
|
||||
config->neighbour[i].hold, config->neighbour[i].update_source,
|
||||
0); /* 0 = routing disabled */
|
||||
}
|
||||
#endif /* BGP */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue