summaryrefslogtreecommitdiff
path: root/ripngd/ripngd.c
diff options
context:
space:
mode:
authorpaul <paul>2003-04-19 15:54:03 +0000
committerpaul <paul>2003-04-19 15:54:03 +0000
commit41ce926cb4c0eb7fc07aed25c0452793fc054fc5 (patch)
treef30b2ad6b6402a18927119fc22a78bcd023481f8 /ripngd/ripngd.c
parent73ffb25bec41d729b0dac34d17b6ccd4aa25803b (diff)
Hasso Tepper
http://hasso.linux.ee/zebra/ht-ifrmap-14042003.patch Allows to extract.pl to pickup "route-map xxx in/out dev" commands for vtysh (ripngd). As lib/if_rmap.[c|h] are used in ripngd only, I moved them to the ripngd/ directory.
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);
}