summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_te.h
diff options
context:
space:
mode:
Diffstat (limited to 'ospfd/ospf_te.h')
-rw-r--r--ospfd/ospf_te.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/ospfd/ospf_te.h b/ospfd/ospf_te.h
index b3a85dff6..fc9ca2078 100644
--- a/ospfd/ospf_te.h
+++ b/ospfd/ospf_te.h
@@ -340,9 +340,13 @@ struct te_link_subtlv {
/* Following structure are internal use only. */
struct ospf_mpls_te {
- /* Status of MPLS-TE: enable or disbale */
+ /* Status of MPLS-TE: enable or disable */
bool enabled;
+ /* Traffic Engineering Database i.e. Link State */
+ struct ls_ted *ted;
+ bool export;
+
/* RFC5392 */
enum inter_as_mode inter_as;
struct in_addr interas_areaid;
@@ -418,4 +422,15 @@ extern void set_linkparams_llri(struct mpls_te_link *, uint32_t, uint32_t);
extern void set_linkparams_lrrid(struct mpls_te_link *, struct in_addr,
struct in_addr);
+struct zapi_opaque_reg_info;
+/**
+ * Call when a client send a Link State Sync message. In turn, OSPF will send
+ * the contain of the Link State Data base.
+ *
+ * @param info ZAPI Opaque message information
+ *
+ * @return 0 on success, -1 otherwise
+ */
+extern int ospf_te_sync_ted(struct zapi_opaque_reg_info dst);
+
#endif /* _ZEBRA_OSPF_MPLS_TE_H */