summaryrefslogtreecommitdiff
path: root/proto/ospf/hello.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2004-05-31 13:22:49 +0000
committerOndrej Filip <feela@network.cz>2004-05-31 13:22:49 +0000
commit781aa475aaa7503d4a86f0d4b8771cd027d30c04 (patch)
tree776c01f1436d3068e9f49e3955de52100a337364 /proto/ospf/hello.c
parentde259a41e3175d4080d5a33a39f0279308a25b56 (diff)
Minor bug fix in neighbor state machine.
Diffstat (limited to 'proto/ospf/hello.c')
-rw-r--r--proto/ospf/hello.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/proto/ospf/hello.c b/proto/ospf/hello.c
index a80dfa25..5627d7ee 100644
--- a/proto/ospf/hello.c
+++ b/proto/ospf/hello.c
@@ -7,6 +7,8 @@
*/
#include "ospf.h"
+#include <sys/socket.h>
+#include "lib/sysio.h"
void
install_inactim(struct ospf_neighbor *n)
@@ -59,8 +61,7 @@ ospf_hello_rx(struct ospf_hello_packet *ps, struct proto *p,
{
u32 nrid, *pnrid;
struct ospf_neighbor *neigh,*n;
- u8 twoway,oldpriority;
- u32 i;
+ u8 i,twoway,oldpriority;
ip_addr olddr,oldbdr;
ip_addr mask;
char *beg=": Bad OSPF hello packet from ", *rec=" received: ";