summaryrefslogtreecommitdiff
path: root/ripngd/ripngd.c
diff options
context:
space:
mode:
Diffstat (limited to 'ripngd/ripngd.c')
-rw-r--r--ripngd/ripngd.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/ripngd/ripngd.c b/ripngd/ripngd.c
index 874848c9..4d7c0216 100644
--- a/ripngd/ripngd.c
+++ b/ripngd/ripngd.c
@@ -1585,9 +1585,9 @@ ripng_write_rte (int num, struct stream *s, struct prefix_ipv6 *p,
/* Write routing table entry. */
if (!nexthop)
- stream_write (s, (caddr_t) &p->prefix, sizeof (struct in6_addr));
+ stream_write (s, (u_char *) &p->prefix, sizeof (struct in6_addr));
else
- stream_write (s, (caddr_t) nexthop, sizeof (struct in6_addr));
+ stream_write (s, (u_char *) nexthop, sizeof (struct in6_addr));
stream_putw (s, tag);
if (p)
stream_putc (s, p->prefixlen);
@@ -2813,7 +2813,7 @@ ripng_distribute_update_interface (struct interface *ifp)
/* Update all interface's distribute list. */
void
-ripng_distribute_update_all ()
+ripng_distribute_update_all (struct prefix_list *notused)
{
struct interface *ifp;
struct listnode *node;
@@ -2824,6 +2824,12 @@ ripng_distribute_update_all ()
ripng_distribute_update_interface (ifp);
}
}
+
+void
+ripng_distribute_update_all_wrapper (struct access_list *notused)
+{
+ ripng_distribute_update_all(NULL);
+}
/* delete all the added ripng routes. */
void
@@ -2985,7 +2991,7 @@ ripng_routemap_update_redistribute (void)
}
void
-ripng_routemap_update ()
+ripng_routemap_update (char *unused)
{
struct interface *ifp;
struct listnode *node;
@@ -3049,8 +3055,8 @@ ripng_init ()
/* Access list install. */
access_list_init ();
- access_list_add_hook (ripng_distribute_update_all);
- access_list_delete_hook (ripng_distribute_update_all);
+ access_list_add_hook (ripng_distribute_update_all_wrapper);
+ access_list_delete_hook (ripng_distribute_update_all_wrapper);
/* Prefix list initialize.*/
prefix_list_init ();