summaryrefslogtreecommitdiffstats
path: root/bgpd/bgpd.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2018-01-26 12:25:34 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2018-02-27 11:11:24 +0100
commite5619c289af97beefefa36067afdef542e86bb0d (patch)
treea8f3a32291dbe356210779a71d5ab7ecd39ded05 /bgpd/bgpd.h
parentbgpd: bgp support for netns (diff)
downloadfrr-e5619c289af97beefefa36067afdef542e86bb0d.tar.xz
frr-e5619c289af97beefefa36067afdef542e86bb0d.zip
bgpd: server socket is created for all enabled VRF
Upon creation of BGP instances, server socket may or may not be created. In the case of VRF instances, if the VRF backend relies on NETNS, then a new server socket will be created for each BGP VRF instance. If the VRF backend relies on VRF LITE, then only one server socket will be enough. Moreover, At startup, with BGP VRF configuration, a server socket may not be created if VRF is not the default one or VRF is not recognized yet. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to '')
-rw-r--r--bgpd/bgpd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/bgpd/bgpd.h b/bgpd/bgpd.h
index 91a9f1162..7f55b753a 100644
--- a/bgpd/bgpd.h
+++ b/bgpd/bgpd.h
@@ -1355,6 +1355,9 @@ extern void bgp_instance_up(struct bgp *);
extern void bgp_instance_down(struct bgp *);
extern int bgp_delete(struct bgp *);
+extern int bgp_handle_socket(struct bgp *bgp, struct vrf *vrf,
+ vrf_id_t old_vrf_id, bool create);
+
extern int bgp_flag_set(struct bgp *, int);
extern int bgp_flag_unset(struct bgp *, int);
extern int bgp_flag_check(struct bgp *, int);