From 41ce926cb4c0eb7fc07aed25c0452793fc054fc5 Mon Sep 17 00:00:00 2001 From: paul Date: Sat, 19 Apr 2003 15:54:03 +0000 Subject: 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. --- ripngd/ripngd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ripngd/ripngd.c') 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); } -- cgit v1.2.1