summaryrefslogtreecommitdiffstats
path: root/proto/ospf/hello.c
diff options
context:
space:
mode:
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 a80dfa2..5627d7e 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: ";