]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Make socket init separate, so unit tests work again.
authorPaul Jakma <paul@quagga.net>
Tue, 1 May 2012 15:24:35 +0000 (16:24 +0100)
committerPaul Jakma <paul@quagga.net>
Wed, 2 May 2012 10:02:11 +0000 (11:02 +0100)
commit7621f336e2f346edee43227f0b1ef93fe769720b
tree2bda36681214336bf55345cd47efb2c25fc460c2
parent1dba254e107dd0c4254d58e9304fc6293b46fd4d
bgpd: Make socket init separate, so unit tests work again.

* Separate out BGP socket initialisation from bgp_get, and make it an
  explicit function. Allows unit tests to work again and probably also
  benefits dry-run.
* bgpd.c: (bgp_get) move socket init out...
  (bgp_socket_init) to here
* bgp_main.c: and call it after dry-run.
* bgpd.h: (bgp_socket_init) add prototype
bgpd/bgp_main.c
bgpd/bgpd.c
bgpd/bgpd.h