aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/srv6/sr.api
diff options
context:
space:
mode:
authorJuraj Sloboda <jsloboda@cisco.com>2018-04-23 10:14:37 +0200
committerOle Trøan <otroan@employees.org>2018-04-25 13:05:26 +0000
commite9fcf23506866d50c2a88a6dd9d90bc2acf8c5c1 (patch)
treee20b26adb238b4d459bf785d0db92b418331d7e4 /src/vnet/srv6/sr.api
parent580bba72e55961b1d3f98144244ac1780855f74a (diff)
Fix some build warnings about "Old Style VLA"
Change-Id: I69fee1dcf07a4d2eed69a59f0a36e63e3741ed4e Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
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