mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
#ifdef out lots of debugging information.
The long resource/routing table dump printed upon startup is gone now and if you wish to see it, just send bird SIGUSR1 or use the `debug' commands.
This commit is contained in:
parent
b3acb10632
commit
9a220cabbc
@ -26,7 +26,7 @@
|
|||||||
* operation (okay too).
|
* operation (okay too).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define LOCAL_DEBUG
|
#undef LOCAL_DEBUG
|
||||||
|
|
||||||
#include "nest/bird.h"
|
#include "nest/bird.h"
|
||||||
#include "lib/lists.h"
|
#include "lib/lists.h"
|
||||||
|
@ -152,7 +152,9 @@ if_notify_change(unsigned c, struct iface *i)
|
|||||||
}
|
}
|
||||||
|
|
||||||
DBG("Interface change notification (%x) for %s\n", c, i->name);
|
DBG("Interface change notification (%x) for %s\n", c, i->name);
|
||||||
|
#ifdef LOCAL_DEBUG
|
||||||
if_dump(i);
|
if_dump(i);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (c & IF_CHANGE_UP)
|
if (c & IF_CHANGE_UP)
|
||||||
neigh_if_up(i);
|
neigh_if_up(i);
|
||||||
|
@ -69,12 +69,6 @@ ospf_init(struct proto_config *c)
|
|||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
ospf_preconfig(struct protocol *p, struct config *c)
|
|
||||||
{
|
|
||||||
DBG( " OSPF: preconfig\n" );
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
ospf_postconfig(struct proto_config *c)
|
ospf_postconfig(struct proto_config *c)
|
||||||
{
|
{
|
||||||
@ -87,7 +81,5 @@ struct protocol proto_ospf = {
|
|||||||
init: ospf_init,
|
init: ospf_init,
|
||||||
dump: ospf_dump,
|
dump: ospf_dump,
|
||||||
start: ospf_start,
|
start: ospf_start,
|
||||||
preconfig: ospf_preconfig,
|
|
||||||
postconfig: ospf_postconfig,
|
postconfig: ospf_postconfig,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -839,12 +839,6 @@ rip_init_config(struct rip_proto_config *c)
|
|||||||
c->authtype = AT_NONE;
|
c->authtype = AT_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
rip_preconfig(struct protocol *x, struct config *c)
|
|
||||||
{
|
|
||||||
DBG( "RIP: preconfig\n" );
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
rip_get_attr(eattr *a, byte *buf)
|
rip_get_attr(eattr *a, byte *buf)
|
||||||
{
|
{
|
||||||
@ -862,7 +856,6 @@ struct protocol proto_rip = {
|
|||||||
name: "RIP",
|
name: "RIP",
|
||||||
template: "rip%d",
|
template: "rip%d",
|
||||||
attr_class: EAP_RIP,
|
attr_class: EAP_RIP,
|
||||||
preconfig: rip_preconfig,
|
|
||||||
get_route_info: rip_get_route_info,
|
get_route_info: rip_get_route_info,
|
||||||
get_attr: rip_get_attr,
|
get_attr: rip_get_attr,
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
#include <sys/uio.h>
|
#include <sys/uio.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#define LOCAL_DEBUG
|
#undef LOCAL_DEBUG
|
||||||
|
|
||||||
#include "nest/bird.h"
|
#include "nest/bird.h"
|
||||||
#include "nest/route.h"
|
#include "nest/route.h"
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* Can be freely distributed and used under the terms of the GNU GPL.
|
* Can be freely distributed and used under the terms of the GNU GPL.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define LOCAL_DEBUG
|
#undef LOCAL_DEBUG
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -410,8 +410,9 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
cli_init_unix();
|
cli_init_unix();
|
||||||
|
|
||||||
ev_run_list(&global_event_list);
|
#ifdef LOCAL_DEBUG
|
||||||
async_dump();
|
async_dump_flag = 1;
|
||||||
|
#endif
|
||||||
|
|
||||||
DBG("Entering I/O loop.\n");
|
DBG("Entering I/O loop.\n");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user