summaryrefslogtreecommitdiffstats
path: root/lib/link_state.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/link_state.h')
-rw-r--r--lib/link_state.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/link_state.h b/lib/link_state.h
index de116df89..981e8b528 100644
--- a/lib/link_state.h
+++ b/lib/link_state.h
@@ -94,6 +94,16 @@ struct ls_node_id {
} id __attribute__((aligned(8)));
};
+/**
+ * Check if two Link State Node IDs are equal. Note that this routine has the
+ * same return value sense as '==' (which is different from a comparison).
+ *
+ * @param i1 First Link State Node Identifier
+ * @param i2 Second Link State Node Identifier
+ * @return 1 if equal, 0 otherwise
+ */
+extern int ls_node_id_same(struct ls_node_id i1, struct ls_node_id i2);
+
/* Link State flags to indicate which Node parameters are valid */
#define LS_NODE_UNSET 0x0000
#define LS_NODE_NAME 0x0001