summaryrefslogtreecommitdiff
path: root/isisd/isis_tlvs.h
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2020-11-13 23:28:07 -0300
committerRenato Westphal <renato@opensourcerouting.org>2020-11-24 20:15:51 -0300
commit35f70ed3f9f1379e7a0b5ff339562e97e7c24a5e (patch)
treec570b932af01f3a5cc51a0d534f3ed5a4bcee58e /isisd/isis_tlvs.h
parent6dfb7f5961d8a502b92718172c2e87dcf5db4046 (diff)
isisd: move and rename the infinity metric constants
Those constants are also useful in contexts other than LDP-IGP Synchronization (e.g. the upcoming LFA work will need them). Move them to a more general header to reflect that. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'isisd/isis_tlvs.h')
-rw-r--r--isisd/isis_tlvs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/isisd/isis_tlvs.h b/isisd/isis_tlvs.h
index 54ded8121d..037f91f0b8 100644
--- a/isisd/isis_tlvs.h
+++ b/isisd/isis_tlvs.h
@@ -42,6 +42,9 @@ struct isis_area_address {
uint8_t len;
};
+#define ISIS_WIDE_METRIC_INFINITY 0xFFFFFE
+#define ISIS_NARROW_METRIC_INFINITY 62
+
struct isis_oldstyle_reach;
struct isis_oldstyle_reach {
struct isis_oldstyle_reach *next;