summaryrefslogtreecommitdiff
path: root/ripngd/ripngd.c
diff options
context:
space:
mode:
Diffstat (limited to 'ripngd/ripngd.c')
-rw-r--r--ripngd/ripngd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ripngd/ripngd.c b/ripngd/ripngd.c
index 81f0ecad..fcf8e3c3 100644
--- a/ripngd/ripngd.c
+++ b/ripngd/ripngd.c
@@ -37,11 +37,11 @@
#include "distribute.h"
#include "plist.h"
#include "routemap.h"
-#include "if_rmap.h"
#include "ripngd/ripngd.h"
#include "ripngd/ripng_route.h"
#include "ripngd/ripng_debug.h"
+#include "ripngd/ripng_ifrmap.h"
#define min(a, b) ((a) < (b) ? (a) : (b))
@@ -535,7 +535,7 @@ ripng_route_process (struct rte *rte, struct sockaddr_in6 *from,
int ret;
struct ripng_info newinfo;
- memset (&rinfo, 0, sizeof (struct ripng_info));
+ memset (&newinfo, 0, sizeof (struct ripng_info));
newinfo.metric = rte->metric;
ret = route_map_apply (ri->routemap[RIPNG_FILTER_IN],
@@ -2520,7 +2520,7 @@ ripng_init ()
route_map_add_hook (ripng_routemap_update);
route_map_delete_hook (ripng_routemap_update);
- if_rmap_init (RIPNG_NODE);
+ if_rmap_init ();
if_rmap_hook_add (ripng_if_rmap_update);
if_rmap_hook_delete (ripng_if_rmap_update);
}