summaryrefslogtreecommitdiff
path: root/ospfd
diff options
context:
space:
mode:
Diffstat (limited to 'ospfd')
-rw-r--r--ospfd/ChangeLog7
-rw-r--r--ospfd/ospf_apiserver.c2
-rw-r--r--ospfd/ospf_packet.c4
-rw-r--r--ospfd/ospf_te.h4
4 files changed, 11 insertions, 6 deletions
diff --git a/ospfd/ChangeLog b/ospfd/ChangeLog
index fc0d5993..aef71215 100644
--- a/ospfd/ChangeLog
+++ b/ospfd/ChangeLog
@@ -1,3 +1,10 @@
+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.
+
2005-10-29 Paul Jakma <paul.jakma@sun.com>
* (general) RFC3137 stub-router support
diff --git a/ospfd/ospf_apiserver.c b/ospfd/ospf_apiserver.c
index 577419da..2ee4d3e1 100644
--- a/ospfd/ospf_apiserver.c
+++ b/ospfd/ospf_apiserver.c
@@ -1301,7 +1301,7 @@ apiserver_sync_callback (struct ospf_lsa *lsa, void *p_arg, int int_arg)
struct in_addr area_id = { .s_addr = 0L };
/* Default interface for non Opaque9 LSAs */
- struct in_addr ifaddr = { .s_addr = 0L };;
+ struct in_addr ifaddr = { .s_addr = 0L };
if (lsa->area)
{
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);
diff --git a/ospfd/ospf_te.h b/ospfd/ospf_te.h
index 8a7a98c7..e8511cdf 100644
--- a/ospfd/ospf_te.h
+++ b/ospfd/ospf_te.h
@@ -73,10 +73,10 @@ struct te_tlv_header
};
#define TLV_HDR_SIZE \
- sizeof (struct te_tlv_header)
+ (sizeof (struct te_tlv_header))
#define TLV_BODY_SIZE(tlvh) \
- ROUNDUP (ntohs ((tlvh)->length), sizeof (u_int32_t))
+ (ROUNDUP (ntohs ((tlvh)->length), sizeof (u_int32_t)))
#define TLV_SIZE(tlvh) \
(TLV_HDR_SIZE + TLV_BODY_SIZE(tlvh))