diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2009-04-06 16:17:47 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2009-04-06 16:17:47 +0200 |
commit | 8298d780be5a5b00c31c10a37a5f3a1353d6e234 (patch) | |
tree | 649a999a1cd0c44e4be09da8f3e16b6cb574037a /proto/ospf/ospf.h | |
parent | bcb81251b4e37b96743aa1cdf790f30ef41a465e (diff) |
Better OSPF packet tracing log messages.
Replaces old OSPF packet tracing messages with
uniform messages with packet dumps.
Diffstat (limited to 'proto/ospf/ospf.h')
-rw-r--r-- | proto/ospf/ospf.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h index fcefa813..4e37c184 100644 --- a/proto/ospf/ospf.h +++ b/proto/ospf/ospf.h @@ -26,6 +26,11 @@ #define OSPF_TRACE(flags, msg, args...) do { if ((p->debug & flags) || OSPF_FORCE_DEBUG) \ log(L_TRACE "%s: " msg, p->name , ## args ); } while(0) +#define OSPF_PACKET(dumpfn, buffer, msg, args...) \ +do { if ((p->debug & D_PACKETS) || OSPF_FORCE_DEBUG) \ +{ log(L_TRACE "%s: " msg, p->name, ## args ); dumpfn(p, buffer); } } while(0) + + #include "nest/bird.h" #include "lib/checksum.h" |