summaryrefslogtreecommitdiffstats
path: root/proto
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-05-09 00:50:37 +0200
committerOndrej Filip <feela@network.cz>2000-05-09 00:50:37 +0200
commited4a53c6a5685d04fe2b0cceda83860324f4892c (patch)
treea33dd2cb42b9b0fca7141416b8ac50de2ad1588b /proto
parent9bacea42112216e604bd55e3027e019e131304dd (diff)
downloadbird-ed4a53c6a5685d04fe2b0cceda83860324f4892c.tar
bird-ed4a53c6a5685d04fe2b0cceda83860324f4892c.zip
Some changes in debugging.
Diffstat (limited to 'proto')
-rw-r--r--proto/ospf/ospf.h3
-rw-r--r--proto/ospf/packet.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h
index f2736c6..b1d14bd 100644
--- a/proto/ospf/ospf.h
+++ b/proto/ospf/ospf.h
@@ -9,7 +9,6 @@
#ifndef _BIRD_OSPF_H_
#define _BIRD_OSPF_H_
-#define LOCAL_DEBUG
#define SIPH 64 /* FIXME Size Of IP header */
@@ -28,6 +27,8 @@
#include "conf/conf.h"
#include "lib/string.h"
+#define LOCAL_DEBUG
+
#define OSPF_PROTO 89
#ifndef IPV6
#define OSPF_VERSION 2
diff --git a/proto/ospf/packet.c b/proto/ospf/packet.c
index b04fa94..37156d3 100644
--- a/proto/ospf/packet.c
+++ b/proto/ospf/packet.c
@@ -127,7 +127,7 @@ ospf_rx_hook(sock *sk, int size)
for(i=0;i<ntohs(ps->length);i+=4)
DBG("%s: received %u,%u,%u,%u\n",p->name, pu8[i+0], pu8[i+1], pu8[i+2],
pu8[i+3]);
- debug("%s: received size: %u\n",p->name,size);
+ DBG("%s: received size: %u\n",p->name,size);
switch(ps->type)
{