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:
Benjamin Cama 2011-07-22 02:11:33 +02:00
parent 11ec3c4a24
commit b36141c0c7
5 changed files with 51 additions and 3 deletions

View file

@ -723,6 +723,7 @@ typedef struct
uint16_t as;
int keepalive;
int hold;
struct in_addr update_source;
} neighbour[BGP_NUM_PEERS];
#endif
} configt;