summaryrefslogtreecommitdiff
path: root/lib/vrf.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vrf.h')
-rw-r--r--lib/vrf.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/vrf.h b/lib/vrf.h
index fe2b4842b0..d470349f00 100644
--- a/lib/vrf.h
+++ b/lib/vrf.h
@@ -56,6 +56,20 @@ enum {
#define VRF_CMD_HELP_STR "Specify the VRF\nThe VRF name\n"
#define VRF_ALL_CMD_HELP_STR "Specify the VRF\nAll VRFs\n"
+/*
+ * Pass some OS specific data up through
+ * to the daemons
+ */
+struct vrf_data
+{
+ union
+ {
+ struct {
+ uint32_t table_id;
+ } l;
+ };
+};
+
struct vrf
{
RB_ENTRY(vrf) id_entry, name_entry;
@@ -76,6 +90,9 @@ struct vrf
/* User data */
void *info;
+ /* The table_id from the kernel */
+ struct vrf_data data;
+
QOBJ_FIELDS
};
RB_HEAD (vrf_id_head, vrf);