]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_network.c
bgpd: start listener on first instance
authorStephen Hemminger <shemminger@vyatta.com>
Tue, 21 Jul 2009 23:27:21 +0000 (16:27 -0700)
committerPaul Jakma <paul@quagga.net>
Tue, 28 Jul 2009 09:04:38 +0000 (10:04 +0100)
commitd023aec49f70156d2ed894a8fba65bcfa221ff02
tree00ab5d69481c212b6ed2f350c5a5c7f430ef9208
parent03621955d8ab0ea30024bd8fc83afda8e48db712
bgpd: start listener on first instance

Start BGP listener only after first instance is started.  This helps the
security if BGP is not used but daemon is started.  It also addresses some
issues like MD5 not working on listener unless IPV6 configured (because
listener was not in list); as well as compiler warnings.

* bgp_network.c: (bgp_listener) listen socket creation consolidated here
  (bgp_socket) Use bgp_listener
* bgpd.c: (bgp_get) call bgp_socket on creation of first struct bgp.
  (bgp_init) remove bgp_socket call.
* memtypes.c: Add MTYPE_BGP_LISTENER
bgpd/bgp_network.c
bgpd/bgp_network.h
bgpd/bgpd.c
lib/memtypes.c