summaryrefslogtreecommitdiffstats
path: root/bgpd/bgpd.h
diff options
context:
space:
mode:
authorPaul Jakma <paul@quagga.net>2012-06-14 10:40:26 +0100
committerPaul Jakma <paul@quagga.net>2012-06-14 17:30:14 +0100
commitcccbc0151883cfb4f43d6fa0a4a3caedc27e6cf5 (patch)
tree0c0296eb09551c556717e93250e5492fc1c7c85f /bgpd/bgpd.h
parent2fb2a455263c569119ca32be59b0337a3d8cd9b3 (diff)
downloadquagga-cccbc0151883cfb4f43d6fa0a4a3caedc27e6cf5.tar.bz2
quagga-cccbc0151883cfb4f43d6fa0a4a3caedc27e6cf5.tar.xz
bgpd: Add "no listen" socket option for the BGP master configuration
* bgpd.h: add a BGP_OPT_NO_LISTEN option for the master BGP configuration, to prevent any listen socket being created automatically. Allows code to be used outside of BGP daemon settings. * bgpd.c: (bgp_get) honour above the flag, suppress auto-creation of listen socket on first BGP instance if set. (bgp_option_set) whitelist BGP_OPT_NO_LISTEN
Diffstat (limited to 'bgpd/bgpd.h')
-rw-r--r--bgpd/bgpd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgpd.h b/bgpd/bgpd.h
index bb307160..63e326af 100644
--- a/bgpd/bgpd.h
+++ b/bgpd/bgpd.h
@@ -59,6 +59,7 @@ struct bgp_master
#define BGP_OPT_NO_FIB (1 << 0)
#define BGP_OPT_MULTIPLE_INSTANCE (1 << 1)
#define BGP_OPT_CONFIG_CISCO (1 << 2)
+#define BGP_OPT_NO_LISTEN (1 << 3)
};
/* BGP instance structure. */