if (circuit->area->newmetric) {
ldp_sync_info->metric[0] =
circuit->te_metric[0];
- circuit->te_metric[0] = LDP_ISIS_LSINFINITY;
+ circuit->te_metric[0] =
+ ISIS_WIDE_METRIC_INFINITY;
} else {
ldp_sync_info->metric[0] = circuit->metric[0];
- circuit->metric[0] = LDP_ISIS_LSINFINITY_NL;
+ circuit->metric[0] =
+ ISIS_NARROW_METRIC_INFINITY;
}
}
if (circuit->is_type & IS_LEVEL_2) {
if (circuit->area->newmetric) {
ldp_sync_info->metric[1] =
circuit->te_metric[1];
- circuit->te_metric[1] = LDP_ISIS_LSINFINITY;
+ circuit->te_metric[1] =
+ ISIS_WIDE_METRIC_INFINITY;
} else {
ldp_sync_info->metric[1] = circuit->metric[1];
- circuit->metric[1] = LDP_ISIS_LSINFINITY_NL;
+ circuit->metric[1] =
+ ISIS_NARROW_METRIC_INFINITY;
}
}
} else {
#ifndef _ZEBRA_ISIS_LDP_SYNC_H
#define _ZEBRA_ISIS_LDP_SYNC_H
-#define LDP_ISIS_LSINFINITY 0xFFFFFE /* wide link metric */
-#define LDP_ISIS_LSINFINITY_NL 62 /* narrow link metric */
-
/* Macro to log debug message */
#define ils_debug(...) \
do { \
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;