summaryrefslogtreecommitdiff
path: root/isisd/isis_tlv.h
diff options
context:
space:
mode:
authorChristian Franke <chris@opensourcerouting.org>2013-12-16 15:00:28 +0100
committerChristian Franke <chris@opensourcerouting.org>2014-01-08 13:53:50 +0100
commit40b50b6618d3de2da3f0b1d5cb78f2bc277c7f20 (patch)
treecea94808511e1b77f8000a0de083b3b4f0bfbefa /isisd/isis_tlv.h
parentfdc8614c306e5b61224d1ab4b63c00c558dbb07e (diff)
isisd: first feeble attempt at redistribute
Diffstat (limited to 'isisd/isis_tlv.h')
-rw-r--r--isisd/isis_tlv.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/isisd/isis_tlv.h b/isisd/isis_tlv.h
index e092f4d6..b69a17fc 100644
--- a/isisd/isis_tlv.h
+++ b/isisd/isis_tlv.h
@@ -228,11 +228,13 @@ struct ipv6_reachability
/* bits in control_info */
#define CTRL_INFO_DIRECTION 0x80
-#define DIRECTION_UP 0
-#define DIRECTION_DOWN 1
+#define DIRECTION_UP 0x00
+#define DIRECTION_DOWN 0x80
+
#define CTRL_INFO_DISTRIBUTION 0x40
-#define DISTRIBUTION_INTERNAL 0
-#define DISTRIBUTION_EXTERNAL 1
+#define DISTRIBUTION_INTERNAL 0x00
+#define DISTRIBUTION_EXTERNAL 0x40
+
#define CTRL_INFO_SUBTLVS 0x20
#endif /* HAVE_IPV6 */
@@ -311,7 +313,8 @@ int tlv_add_in_addr (struct in_addr *, struct stream *stream, u_char tag);
int tlv_add_dynamic_hostname (struct hostname *hostname,
struct stream *stream);
int tlv_add_lsp_entries (struct list *lsps, struct stream *stream);
-int tlv_add_ipv4_reachs (struct list *ipv4_reachs, struct stream *stream);
+int tlv_add_ipv4_int_reachs (struct list *ipv4_reachs, struct stream *stream);
+int tlv_add_ipv4_ext_reachs (struct list *ipv4_reachs, struct stream *stream);
int tlv_add_te_ipv4_reachs (struct list *te_ipv4_reachs, struct stream *stream);
#ifdef HAVE_IPV6
int tlv_add_ipv6_addrs (struct list *ipv6_addrs, struct stream *stream);