summaryrefslogtreecommitdiff
path: root/ospfd/ospf_dump.c
diff options
context:
space:
mode:
authorpaul <paul>2005-05-06 21:37:42 +0000
committerpaul <paul>2005-05-06 21:37:42 +0000
commit4dadc291e56195886fd047690ded9686f4e013fa (patch)
treeea7c0690912d2b7d0c487f6855960e768fff1b6e /ospfd/ospf_dump.c
parent69e10adaf28d4e116c38db2648786557fe131828 (diff)
2005-05-06 Paul Jakma <paul.jakma@sun.com>
* (general) extern and static qualifiers added. unspecified arguments in definitions fixed, typically they should be 'void'. function casts added for callbacks. Guards added to headers which lacked them. Proper headers included rather than relying on incomplete definitions. gcc noreturn function attribute where appropriate. * ospf_opaque.c: remove the private definition of ospf_lsa's ospf_lsa_refresh_delay. * ospf_lsa.h: export ospf_lsa_refresh_delay * ospf_packet.c: (ospf_make_md5_digest) make *auth_key const, correct thing to do - removes need for the casts later. * ospf_vty.c: Use vty.h's VTY_GET_INTEGER rather than ospf_vty's home-brewed versions, shuts up several warnings. * ospf_vty.h: remove VTY_GET_UINT32. VTY_GET_IPV4_ADDRESS and VTY_GET_IPV4_PREFIX moved to lib/vty.h. * ospf_zebra.c: (ospf_distribute_list_update_timer) hacky overloading of the THREAD_ARG pointer should at least use uintptr_t.
Diffstat (limited to 'ospfd/ospf_dump.c')
-rw-r--r--ospfd/ospf_dump.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/ospfd/ospf_dump.c b/ospfd/ospf_dump.c
index 7d738f9e..7b410b1e 100644
--- a/ospfd/ospf_dump.c
+++ b/ospfd/ospf_dump.c
@@ -286,7 +286,7 @@ ospf_options_dump (u_char options)
return buf;
}
-void
+static void
ospf_packet_hello_dump (struct stream *s, u_int16_t length)
{
struct ospf_hello *hello;
@@ -310,7 +310,7 @@ ospf_packet_hello_dump (struct stream *s, u_int16_t length)
zlog_debug (" Neighbor %s", inet_ntoa (hello->neighbors[i]));
}
-char *
+static char *
ospf_dd_flags_dump (u_char flags, char *buf, size_t size)
{
memset (buf, 0, size);
@@ -341,7 +341,7 @@ ospf_lsa_header_dump (struct lsa_header *lsah)
zlog_debug (" length %d", ntohs (lsah->length));
}
-char *
+static char *
ospf_router_lsa_flags_dump (u_char flags, char *buf, size_t size)
{
memset (buf, 0, size);
@@ -354,7 +354,7 @@ ospf_router_lsa_flags_dump (u_char flags, char *buf, size_t size)
return buf;
}
-void
+static void
ospf_router_lsa_dump (struct stream *s, u_int16_t length)
{
char buf[BUFSIZ];
@@ -381,7 +381,7 @@ ospf_router_lsa_dump (struct stream *s, u_int16_t length)
}
}
-void
+static void
ospf_network_lsa_dump (struct stream *s, u_int16_t length)
{
struct network_lsa *nl;
@@ -402,7 +402,7 @@ ospf_network_lsa_dump (struct stream *s, u_int16_t length)
zlog_debug (" Attached Router %s", inet_ntoa (nl->routers[i]));
}
-void
+static void
ospf_summary_lsa_dump (struct stream *s, u_int16_t length)
{
struct summary_lsa *sl;
@@ -420,7 +420,7 @@ ospf_summary_lsa_dump (struct stream *s, u_int16_t length)
GET_METRIC (sl->metric));
}
-void
+static void
ospf_as_external_lsa_dump (struct stream *s, u_int16_t length)
{
struct as_external_lsa *al;
@@ -442,7 +442,7 @@ ospf_as_external_lsa_dump (struct stream *s, u_int16_t length)
}
}
-void
+static void
ospf_lsa_header_list_dump (struct stream *s, u_int16_t length)
{
struct lsa_header *lsa;
@@ -460,7 +460,7 @@ ospf_lsa_header_list_dump (struct stream *s, u_int16_t length)
}
}
-void
+static void
ospf_packet_db_desc_dump (struct stream *s, u_int16_t length)
{
struct ospf_db_desc *dd;
@@ -488,7 +488,7 @@ ospf_packet_db_desc_dump (struct stream *s, u_int16_t length)
stream_set_getp (s, gp);
}
-void
+static void
ospf_packet_ls_req_dump (struct stream *s, u_int16_t length)
{
u_int32_t sp;
@@ -518,7 +518,7 @@ ospf_packet_ls_req_dump (struct stream *s, u_int16_t length)
stream_set_getp (s, sp);
}
-void
+static void
ospf_packet_ls_upd_dump (struct stream *s, u_int16_t length)
{
u_int32_t sp;
@@ -585,7 +585,7 @@ ospf_packet_ls_upd_dump (struct stream *s, u_int16_t length)
stream_set_getp (s, sp);
}
-void
+static void
ospf_packet_ls_ack_dump (struct stream *s, u_int16_t length)
{
u_int32_t sp;
@@ -617,7 +617,7 @@ ospf_ip_header_dump (struct ip *iph)
zlog_debug ("ip_dst %s", inet_ntoa (iph->ip_dst));
}
-void
+static void
ospf_header_dump (struct ospf_header *ospfh)
{
char buf[9];
@@ -1478,7 +1478,7 @@ struct cmd_node debug_node =
1 /* VTYSH */
};
-int
+static int
config_write_debug (struct vty *vty)
{
int write = 0;