+
+
+ proto_tree_add_text (ntree, NullTVB, offset, 1,
+ "Default Metric: %d, %s",
+ ISIS_LSP_CLV_METRIC_VALUE(pd[offset]),
+ ISIS_LSP_CLV_METRIC_IE(pd[offset]) ? "External" : "Internal");
+
+ if (ISIS_LSP_CLV_METRIC_SUPPORTED(pd[offset+1])) {
+ proto_tree_add_text (ntree, NullTVB, offset+1, 1, "Delay Metric: Not supported");
+ } else {
+ proto_tree_add_text (ntree, NullTVB, offset+1, 1, "Delay Metric: %d, %s",
+ ISIS_LSP_CLV_METRIC_VALUE(pd[offset+1]),
+ ISIS_LSP_CLV_METRIC_IE(pd[offset+1]) ? "External" : "Internal");
+ }
+
+
+ if (ISIS_LSP_CLV_METRIC_SUPPORTED(pd[offset+2])) {
+ proto_tree_add_text (ntree, NullTVB, offset+2, 1, "Expense Metric: Not supported");
+ } else {
+ proto_tree_add_text (ntree, NullTVB, offset+2, 1, "Expense Metric: %d, %s",
+ ISIS_LSP_CLV_METRIC_VALUE(pd[offset+2]),
+ ISIS_LSP_CLV_METRIC_IE(pd[offset+2]) ? "External" : "Internal");
+ }
+
+ if (ISIS_LSP_CLV_METRIC_SUPPORTED(pd[offset+3])) {
+ proto_tree_add_text (ntree, NullTVB, offset+3, 1, "Error Metric: Not supported");
+ } else {
+ proto_tree_add_text (ntree, NullTVB, offset+3, 1, "Error Metric: %d, %s",
+ ISIS_LSP_CLV_METRIC_VALUE(pd[offset+3]),
+ ISIS_LSP_CLV_METRIC_IE(pd[offset+3]) ? "External" : "Internal");
+ }
+
+