Hi Himanshu,

> Thanks for the reply. With the reference I was able to create nested 
> structure in .api file.
> 
> BTW what do you mean by we support only a single VLA?

In any message, including a nested one, only one field can be of variable 
length. That field must be last in the message. 

This is a restriction because API messages are mapped directly into C 
structures. 

Cheers 
Ole

> 
> Thanks & Regards
> Himanshu
> 
>> On Mon, 3 Feb 2020 at 18:44, <otr...@employees.org> wrote:
>> Himanshu,
>> 
>> > I want to write a vpp plugin. I take the sample-plugin as a reference. I 
>> > am facing an issue while creating a nested structure in  the .api file. 
>> > 
>> > What is the proper way of defining nested structure in the .api file.
>> 
>> Look at e.g. ip.api or ip_types.api as examples.
>> Note that we support only a single VLA.
>> 
>> It might be easier to help you if you post an example of your nested 
>> structure.
>> 
>> Cheers,
>> Ole
>> 
> 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#15321): https://lists.fd.io/g/vpp-dev/message/15321
Mute This Topic: https://lists.fd.io/mt/70945637/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to