summaryrefslogtreecommitdiff
path: root/ospfd/ospf_packet.c
diff options
context:
space:
mode:
authorpaul <paul>2005-11-03 09:08:29 +0000
committerpaul <paul>2005-11-03 09:08:29 +0000
commit484315fd274b3782f72abc95c9796c604e53bcc9 (patch)
tree2b1753169c541429e0d360439a55c4905d71f70d /ospfd/ospf_packet.c
parent34204aac424f8c29317d863d64f1c3bb4d241a50 (diff)
2005-11-03 Paul Jakma <paul.jakma@sun.com>
* ospf_apiserver.c: (apiserver_sync_callback) stray semi-colon * ospf_packet.c: include checksum.h, remove the in_cksum extern * prototypes. * ospf_te.h: Add braces, quell warning.
Diffstat (limited to 'ospfd/ospf_packet.c')
-rw-r--r--ospfd/ospf_packet.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ospfd/ospf_packet.c b/ospfd/ospf_packet.c
index 8b818d72..d41fff57 100644
--- a/ospfd/ospf_packet.c
+++ b/ospfd/ospf_packet.c
@@ -32,6 +32,7 @@
#include "stream.h"
#include "log.h"
#include "sockopt.h"
+#include "checksum.h"
#include "md5.h"
#include "ospfd/ospfd.h"
@@ -59,8 +60,6 @@ const char *ospf_packet_type_str[] =
"Link State Acknowledgment",
};
-extern int in_cksum (void *ptr, int nbytes);
-
/* OSPF authentication checking function */
static int
ospf_auth_type (struct ospf_interface *oi)
@@ -2193,7 +2192,6 @@ ospf_check_sum (struct ospf_header *ospfh)
{
u_int32_t ret;
u_int16_t sum;
- int in_cksum (void *ptr, int nbytes);
/* clear auth_data for checksum. */
memset (ospfh->u.auth_data, 0, OSPF_AUTH_SIMPLE_SIZE);