summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
Diffstat (limited to 'conf')
-rw-r--r--conf/conf.c6
-rw-r--r--conf/conf.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/conf/conf.c b/conf/conf.c
index fefcac5..71e81b5 100644
--- a/conf/conf.c
+++ b/conf/conf.c
@@ -175,6 +175,12 @@ global_commit(struct config *new, struct config *old)
{
if (!old)
return 0;
+
+ if (!ipa_equal(old->bind_bgp_addr, new->bind_bgp_addr) ||
+ (old->bind_bgp_port != new->bind_bgp_port) ||
+ (old->bind_bgp_flags != new->bind_bgp_flags))
+ log(L_WARN "Reconfiguration of BGP listening socket not implemented, please restart BIRD.");
+
if (!new->router_id)
new->router_id = old->router_id;
if (new->router_id != old->router_id)
diff --git a/conf/conf.h b/conf/conf.h
index 17b975b..ef27f3f 100644
--- a/conf/conf.h
+++ b/conf/conf.h
@@ -22,6 +22,9 @@ struct config {
list logfiles; /* Configured log fils (sysdep) */
struct rtable_config *master_rtc; /* Configuration of master routing table */
u32 router_id; /* Our Router ID */
+ ip_addr bind_bgp_addr; /* Listening BGP socket should use this address */
+ unsigned bind_bgp_port; /* Listening BGP socket should use this port (0 is default) */
+ u32 bind_bgp_flags; /* Listening BGP socket should use these flags */
unsigned int proto_default_debug; /* Default protocol debug mask */
int cli_debug; /* Tracing of CLI connections and commands */
char *err_msg; /* Parser error message */