FIB table add/delete API
[vpp.git] / src / vnet / mfib / mfib_entry.h
index 4f62b18..96ee49f 100644 (file)
@@ -48,6 +48,16 @@ typedef struct mfib_entry_t_ {
      */
     struct mfib_entry_src_t_ *mfe_srcs;
 
+    /**
+     * The path-list of which this entry is a child
+     */
+    fib_node_index_t mfe_pl;
+
+    /**
+     * The sibling index on the path-list
+     */
+    u32 mfe_sibling;
+
     /**
      * 2nd cache line has the members used in the data plane
      */
@@ -120,6 +130,8 @@ extern void mfib_entry_unlock(fib_node_index_t fib_entry_index);
 extern void mfib_entry_get_prefix(fib_node_index_t fib_entry_index,
                                   mfib_prefix_t *pfx);
 extern u32 mfib_entry_get_fib_index(fib_node_index_t fib_entry_index);
+extern int mfib_entry_is_sourced(fib_node_index_t fib_entry_index,
+                                 mfib_source_t source);
 
 extern void mfib_entry_contribute_forwarding(
     fib_node_index_t mfib_entry_index,