summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_sr.h
diff options
context:
space:
mode:
authorOlivier Dugeon <olivier.dugeon@orange.com>2020-06-02 19:24:46 +0200
committerOlivier Dugeon <olivier.dugeon@orange.com>2020-06-03 19:35:47 +0200
commit43e7abb55549ec976a86b1c42d503b54ce173d61 (patch)
tree3686071aa698853a3a60c0fe76a46f5bcfa881a9 /ospfd/ospf_sr.h
parentospfd: Update Prefix & Adjacency SIDs Management (diff)
downloadfrr-43e7abb55549ec976a86b1c42d503b54ce173d61.tar.xz
frr-43e7abb55549ec976a86b1c42d503b54ce173d61.zip
ospfd: Move Segment Routing Zebra functions
For coherency, move and rename functions that send MPLS labels configurations from ospf_sr.c to ospf_zebra.c: - ospf_zebra_update_prefix_sid() - ospf_zebra_delete_prefix_sid() - ospf_zebra_send_adjacency_sid() Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
Diffstat (limited to 'ospfd/ospf_sr.h')
-rw-r--r--ospfd/ospf_sr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ospfd/ospf_sr.h b/ospfd/ospf_sr.h
index 5e1e1f783..3621ea53d 100644
--- a/ospfd/ospf_sr.h
+++ b/ospfd/ospf_sr.h
@@ -58,6 +58,10 @@
zlog_debug(__VA_ARGS__); \
} while (0)
+/* Macro to check if SR Prefix has no valid route */
+#define IS_NO_ROUTE(srp) ((srp->route == NULL) || (srp->route->paths == NULL) \
+ || list_isempty(srp->route->paths))
+
/* SID/Label Sub TLV - section 2.1 */
#define SUBTLV_SID_LABEL 1
#define SUBTLV_SID_LABEL_SIZE 8