diff options
author | Ondrej Filip <feela@network.cz> | 2000-06-06 04:09:58 +0200 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2000-06-06 04:09:58 +0200 |
commit | f14032efdd87bca5c2839be01ffe66797976c7bc (patch) | |
tree | 172c9f2f09393496a0ae6148eaf03913f6623218 /proto/ospf/ospf.h | |
parent | 51cff78b2571e24963d3a81694f854605eb75eac (diff) | |
download | bird-f14032efdd87bca5c2839be01ffe66797976c7bc.tar bird-f14032efdd87bca5c2839be01ffe66797976c7bc.zip |
First part of tracing.
Diffstat (limited to 'proto/ospf/ospf.h')
-rw-r--r-- | proto/ospf/ospf.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h index 3d5d1df..128fb49 100644 --- a/proto/ospf/ospf.h +++ b/proto/ospf/ospf.h @@ -9,9 +9,15 @@ #ifndef _BIRD_OSPF_H_ #define _BIRD_OSPF_H_ - #define SIPH 64 /* FIXME Size Of IP header */ #define MAXNETS 10 +#ifdef LOCAL_DEBUG +#define OSPF_FORCE_DEBUG 1 +#else +#define OSPF_FORCE_DEBUG 0 +#endif +#define OSPF_TRACE(flags, msg, args...) do { if ((p->debug & flags) || OSPF_FORCE_DEBUG) \ + log(L_TRACE "%s: " msg, p->name , ## args ); } while(0) #include "nest/bird.h" |