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.
diff --git a/ripngd/ripngd.c b/ripngd/ripngd.c
index 81f0eca..fcf8e3c 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 @@
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 @@
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);
}