]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: Add "no listen" socket option for the BGP master configuration
authorPaul Jakma <paul@quagga.net>
Thu, 14 Jun 2012 09:40:26 +0000 (10:40 +0100)
committerPaul Jakma <paul@quagga.net>
Thu, 14 Jun 2012 16:30:14 +0000 (17:30 +0100)
commitcccbc0151883cfb4f43d6fa0a4a3caedc27e6cf5
tree0c0296eb09551c556717e93250e5492fc1c7c85f
parent2fb2a455263c569119ca32be59b0337a3d8cd9b3
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
bgpd/bgpd.c
bgpd/bgpd.h