summaryrefslogtreecommitdiffstats
path: root/sysdep/unix/krt.h
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-03-12 22:54:39 +0100
committerMartin Mares <mj@ucw.cz>2000-03-12 22:54:39 +0100
commit832fa033b7ecacf3225d7aa8c86e30484a07d946 (patch)
tree095a526d33906fa8f0156f4069207051ebfd9b0e /sysdep/unix/krt.h
parente68dd11c43ebec527da69da7b093ae90ef6d6ea9 (diff)
downloadbird-832fa033b7ecacf3225d7aa8c86e30484a07d946.tar
bird-832fa033b7ecacf3225d7aa8c86e30484a07d946.zip
Cleaned up debugging in kernel syncer. Netlink has still LOCAL_DEBUG
turned on, but after some testing I'll gag it.
Diffstat (limited to 'sysdep/unix/krt.h')
-rw-r--r--sysdep/unix/krt.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sysdep/unix/krt.h b/sysdep/unix/krt.h
index 8a444f0..10da1a8 100644
--- a/sysdep/unix/krt.h
+++ b/sysdep/unix/krt.h
@@ -1,7 +1,7 @@
/*
* BIRD -- UNIX Kernel Route Syncer
*
- * (c) 1998--1999 Martin Mares <mj@ucw.cz>
+ * (c) 1998--2000 Martin Mares <mj@ucw.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
@@ -70,6 +70,11 @@ extern pool *krt_pool;
#define KRT_CF ((struct krt_config *)p->p.cf)
+#define KRT_TRACE(pr, fl, msg, args...) do { \
+ DBG("KRT: " msg "\n" , ## args); \
+ if (pr->p.debug & fl) \
+ { log(L_TRACE "%s: " msg, pr->p.name , ## args); } } while(0)
+
void krt_got_route(struct krt_proto *p, struct rte *e);
void krt_got_route_async(struct krt_proto *p, struct rte *e, int new);