summaryrefslogtreecommitdiff
path: root/lib/if_rmap.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2019-02-19 21:08:43 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2019-02-19 21:11:37 +0100
commitaec0d756677e52e86ef9b22fe2d85bbe8f0039e5 (patch)
tree960bb8e8e1aa69d564c3baa49f4b8beb1de746c3 /lib/if_rmap.h
parent4b23867cad558a59e8d315400b82c0453510c9af (diff)
eigrp, rip, ripng, lib: unlink if_rmap from vrf
an interface rmap context can be created from a custom name string, instead of a vrf. This ability permits to handle several instances of interface route map in the same vrf. The naming convention will be transparent on what the name is for in the daemon code. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'lib/if_rmap.h')
-rw-r--r--lib/if_rmap.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/if_rmap.h b/lib/if_rmap.h
index 21ac35fe1d..dfc7298823 100644
--- a/lib/if_rmap.h
+++ b/lib/if_rmap.h
@@ -44,11 +44,11 @@ struct if_rmap_ctx {
void (*if_rmap_delete_hook)(struct if_rmap_ctx *ctx,
struct if_rmap *ifrmap);
- /* vrf information */
- struct vrf *vrf;
+ /* naming information */
+ char *name;
};
-extern struct if_rmap_ctx *if_rmap_ctx_create(struct vrf *vrf);
+extern struct if_rmap_ctx *if_rmap_ctx_create(const char *name);
extern void if_rmap_ctx_delete(struct if_rmap_ctx *ctx);
extern void if_rmap_init(int node);
extern void if_rmap_terminate(void);