diff options
author | Christian Franke <chris@opensourcerouting.org> | 2013-12-16 15:00:28 +0100 |
---|---|---|
committer | Christian Franke <chris@opensourcerouting.org> | 2014-01-08 13:53:50 +0100 |
commit | 40b50b6618d3de2da3f0b1d5cb78f2bc277c7f20 (patch) | |
tree | cea94808511e1b77f8000a0de083b3b4f0bfbefa /isisd/isis_redist.h | |
parent | fdc8614c306e5b61224d1ab4b63c00c558dbb07e (diff) |
isisd: first feeble attempt at redistribute
Diffstat (limited to 'isisd/isis_redist.h')
-rw-r--r-- | isisd/isis_redist.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/isisd/isis_redist.h b/isisd/isis_redist.h new file mode 100644 index 00000000..d2982bbc --- /dev/null +++ b/isisd/isis_redist.h @@ -0,0 +1,41 @@ +#ifndef ISIS_REDIST_H +#define ISIS_REDIST_H + +#ifdef HAVE_IPV6 +#define REDIST_PROTOCOL_COUNT 2 +#else +#define REDIST_PROTOCOL_COUNT 1 +#endif + +#define DEFAULT_ROUTE ZEBRA_ROUTE_MAX +#define DEFAULT_ORIGINATE 1 +#define DEFAULT_ORIGINATE_ALWAYS 2 + +struct isis_ext_info +{ + int origin; + u_char distance; + uint32_t metric; +}; + +struct isis_redist +{ + int redist; + uint32_t metric; + char *map_name; + struct route_map *map; +}; + +struct isis_area; +struct prefix; + +struct route_table *get_ext_reach(struct isis_area *area, + int family, int level); +void isis_redist_add(int type, struct prefix *p, + u_char distance, uint32_t metric); +void isis_redist_delete(int type, struct prefix *p); +int isis_redist_config_write(struct vty *vty, struct isis_area *area, + int family); +void isis_redist_init(void); + +#endif |