summaryrefslogtreecommitdiff
path: root/ldpd/lde.h
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2020-12-05 17:10:04 -0300
committerRenato Westphal <renato@opensourcerouting.org>2021-01-08 21:36:09 -0300
commit220e848cc5d558e0a1ac170ec939851249566f46 (patch)
treecadcf5ed5d8819403c12cad41a17fb31a140e65e /ldpd/lde.h
parentdc70c83afacac24c930b92e9d0c524172918ece2 (diff)
ldpd: detect when route received from zebra hasn't changed
Add some code to detect when a route received from zebra hasn't changed and ignore the notification in that case, preventing ldpd from sending unnecessary label mappings. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ldpd/lde.h')
-rw-r--r--ldpd/lde.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ldpd/lde.h b/ldpd/lde.h
index 660aeafb34..21769ffe07 100644
--- a/ldpd/lde.h
+++ b/ldpd/lde.h
@@ -129,7 +129,9 @@ struct fec_node {
uint32_t pw_remote_status;
void *data; /* fec specific data */
+ uint8_t flags;
};
+#define F_FEC_NHS_CHANGED 0x01
#define CHUNK_SIZE 64
struct label_chunk {