projects
/
l2tpns.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'fdn-mods'
[l2tpns.git]
/
bgp.h
diff --git
a/bgp.h
b/bgp.h
index
8702838
..
bf429bd
100644
(file)
--- a/
bgp.h
+++ b/
bgp.h
@@
-67,6
+67,10
@@
struct bgp_mp_cap_param {
uint8_t safi;
} __attribute__ ((packed));
uint8_t safi;
} __attribute__ ((packed));
+/* bgp_mp_cap_param.afi */
+#define BGP_MP_AFI_RESERVED 0
+#define BGP_MP_AFI_IPv4 1
+#define BGP_MP_AFI_IPv6 2
/* bgp_mp_cap_param.safi */
#define BGP_MP_SAFI_UNICAST 1
#define BGP_MP_SAFI_MULTICAST 2
/* bgp_mp_cap_param.safi */
#define BGP_MP_SAFI_UNICAST 1
#define BGP_MP_SAFI_MULTICAST 2
@@
-219,6
+223,7
@@
enum bgp_mp_handling {
struct bgp_peer {
char name[32]; /* peer name */
in_addr_t addr; /* peer address */
struct bgp_peer {
char name[32]; /* peer name */
in_addr_t addr; /* peer address */
+ in_addr_t source_addr; /* our source address */
int as; /* AS number */
int sock;
enum bgp_state state; /* FSM state */
int as; /* AS number */
int sock;
enum bgp_state state; /* FSM state */
@@
-261,7
+266,7
@@
extern int bgp_configured;
/* actions */
int bgp_setup(int as);
int bgp_start(struct bgp_peer *peer, char *name, int as, int keepalive,
/* actions */
int bgp_setup(int as);
int bgp_start(struct bgp_peer *peer, char *name, int as, int keepalive,
- int hold, int enable);
+ int hold,
struct in_addr update_source,
int enable);
void bgp_stop(struct bgp_peer *peer);
void bgp_halt(struct bgp_peer *peer);
void bgp_stop(struct bgp_peer *peer);
void bgp_halt(struct bgp_peer *peer);