diff options
author | Juraj Sloboda <jsloboda@cisco.com> | 2018-04-23 10:14:37 +0200 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2018-04-25 13:05:26 +0000 |
commit | e9fcf23506866d50c2a88a6dd9d90bc2acf8c5c1 (patch) | |
tree | e20b26adb238b4d459bf785d0db92b418331d7e4 /src | |
parent | 580bba72e55961b1d3f98144244ac1780855f74a (diff) |
Fix some build warnings about "Old Style VLA"
Change-Id: I69fee1dcf07a4d2eed69a59f0a36e63e3741ed4e
Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/ioam/lib-pot/pot.api | 6 | ||||
-rw-r--r-- | src/vnet/ipsec/ipsec.api | 4 | ||||
-rw-r--r-- | src/vnet/srv6/sr.api | 9 |
3 files changed, 12 insertions, 7 deletions
diff --git a/src/plugins/ioam/lib-pot/pot.api b/src/plugins/ioam/lib-pot/pot.api index f133748c460..45dc53793a0 100644 --- a/src/plugins/ioam/lib-pot/pot.api +++ b/src/plugins/ioam/lib-pot/pot.api @@ -40,7 +40,7 @@ autoreply define pot_profile_add { u64 lpc; u64 polynomial_public; u8 list_name_len; - u8 list_name[0]; + u8 list_name[list_name_len]; }; /** \brief Proof of Transit(POT): Activate POT profile in the list @@ -53,7 +53,7 @@ autoreply define pot_profile_activate { u32 context; u8 id; u8 list_name_len; - u8 list_name[0]; + u8 list_name[list_name_len]; }; /** \brief Delete POT Profile @@ -66,7 +66,7 @@ autoreply define pot_profile_del { u32 client_index; u32 context; u8 list_name_len; - u8 list_name[0]; + u8 list_name[list_name_len]; }; /** \brief Show POT Profiles diff --git a/src/vnet/ipsec/ipsec.api b/src/vnet/ipsec/ipsec.api index 89c8a8b8240..5b8b04d9724 100644 --- a/src/vnet/ipsec/ipsec.api +++ b/src/vnet/ipsec/ipsec.api @@ -227,7 +227,7 @@ autoreply define ikev2_profile_set_auth u8 auth_method; u8 is_hex; u32 data_len; - u8 data[0]; + u8 data[data_len]; }; /** \brief IKEv2: Set IKEv2 profile local/remote identification @@ -249,7 +249,7 @@ autoreply define ikev2_profile_set_id u8 is_local; u8 id_type; u32 data_len; - u8 data[0]; + u8 data[data_len]; }; /** \brief IKEv2: Set IKEv2 profile traffic selector parameters 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 |