summaryrefslogtreecommitdiffstats
path: root/src/vnet/srv6/sr.api
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/srv6/sr.api')
-rw-r--r--src/vnet/srv6/sr.api9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/vnet/srv6/sr.api b/src/vnet/srv6/sr.api
index bc22d61a288..181192817b2 100644
--- a/src/vnet/srv6/sr.api
+++ b/src/vnet/srv6/sr.api
@@ -43,6 +43,11 @@ autoreply define sr_localsid_add_del
u8 nh_addr[16];
};
+typeonly define sr_ip6_address
+{
+ u8 data[16];
+};
+
/** \brief IPv6 SR policy add
@param client_index - opaque cookie to identify the sender
@param context - sender context, to match reply w/ request
@@ -63,7 +68,7 @@ autoreply define sr_policy_add
u8 type;
u32 fib_table;
u8 n_segments;
- u8 segments[0];
+ vl_api_sr_ip6_address_t segments[n_segments];
};
/** \brief IPv6 SR policy modification
@@ -89,7 +94,7 @@ autoreply define sr_policy_mod
u32 sl_index;
u32 weight;
u8 n_segments;
- u8 segments[0];
+ vl_api_sr_ip6_address_t segments[n_segments];
};
/** \brief IPv6 SR policy deletion