Re: [vpp-dev] VPP's C-type-api example

2018-09-19 Thread Klement Sekera via Lists.Fd.Io
...@163.com > >   > From: [3]wangchuan...@163.com > Date: 2018-09-19 11:46 > To: [4]Klement Sekera -X (ksekera - PANTHEON TECHNOLOGIES at Cisco); > [5]Ole Troan > CC: [6]Dave Barach (dbarach); [7]vpp-dev > Subject: Re: R

Re: [vpp-dev] VPP's C-type-api example

2018-09-19 Thread wangchuan...@163.com
dev Subject: Re: [vpp-dev] VPP's C-type-api example Maybe it's something which the older compiler wasn't able to compile. Since the VAPI tests are not part of basic tests, it happens regularly, that something is added to API files, which the vapi compiler can't handle. But extended tests are not

Re: [vpp-dev] VPP's C-type-api example

2018-09-19 Thread Klement Sekera via Lists.Fd.Io
@163.com > >   > From: [1]Klement Sekera > Date: 2018-09-19 03:18 > To: [2]wangchuan...@163.com; [3]Ole Troan > CC: [4]Dave Barach (dbarach); [5]vpp-dev > Subject: Re: [vpp-dev] VPP's C-type-api example > Hi, >   > VAPI is

Re: [vpp-dev] VPP's C-type-api example

2018-09-19 Thread Ole Troan
> I find the feature of the absent vapi. > There exists VALs in ***.api. > > I copy the master's src/vpp-api/vapi/vapi_c_gen.py and > src/vpp-api/vapi/vapi_json_parser.py to stable/1804, > but compile failed! > --- > configure: creating

Re: [vpp-dev] VPP's C-type-api example

2018-09-19 Thread wangchuan...@163.com
Troan CC: Dave Barach (dbarach); vpp-dev Subject: Re: Re: [vpp-dev] VPP's C-type-api example Hi Klement, There have "autoreply define classify_add_del_session" in classify.api . And /usr/include/vnet/classify/classify.api.h have the "vl_api_classify_add_del_session". A

Re: [vpp-dev] VPP's C-type-api example

2018-09-19 Thread wangchuan...@163.com
classify.api.vapi.h don't have !!! Regards, Simon wangchuan...@163.com From: Klement Sekera Date: 2018-09-19 03:18 To: wangchuan...@163.com; Ole Troan CC: Dave Barach (dbarach); vpp-dev Subject: Re: [vpp-dev] VPP's C-type-api example Hi, VAPI is autogenerated from .json files, which are generate

Re: [vpp-dev] VPP's C-type-api example

2018-09-18 Thread Klement Sekera via Lists.Fd.Io
>What api can do this? > >-- > >wangchuan...@163.com > >   > From: [1]Klement Sekera > Date: 2018-09-17 20:23 > To: [2]wangchuan...@163.com; [3]Ole Troan > CC: [4]Dave Barach (dbarach); [5]vpp-dev

Re: [vpp-dev] VPP's C-type-api example

2018-09-18 Thread wangchuan...@163.com
to mask-value) What api can do this? wangchuan...@163.com From: Klement Sekera Date: 2018-09-17 20:23 To: wangchuan...@163.com; Ole Troan CC: Dave Barach (dbarach); vpp-dev Subject: Re: [vpp-dev] VPP's C-type-api example If you do not consume a message (in this case most probably the reply

Re: [vpp-dev] VPP's C-type-api example

2018-09-17 Thread Klement Sekera via Lists.Fd.Io
17 15:53 > To: [2]wangchuan...@163.com; [3]Ole Troan > CC: [4]Dave Barach (dbarach); [5]vpp-dev > Subject: Re: [vpp-dev] VPP's C-type-api example > There is no such parameter called `chroot_prefix`. I will assume you are > asking about `api_prefix`. >

Re: [vpp-dev] VPP's C-type-api example

2018-09-17 Thread wangchuan...@163.com
n: 79 msg_handler_internal:432: no handler for msg id 79 The end" Thanks again! wangchuan...@163.com From: Klement Sekera Date: 2018-09-17 15:53 To: wangchuan...@163.com; Ole Troan CC: Dave Barach (dbarach); vpp-dev Subject: Re: [vpp-dev] VPP's C-type-api example There is no such parame

Re: [vpp-dev] VPP's C-type-api example

2018-09-17 Thread Klement Sekera via Lists.Fd.Io
--- > >wangchuan...@163.com > >   > From: [1]wangchuan...@163.com > Date: 2018-09-15 09:23 > To: [2]Klement Sekera -X (ksekera - PANTHEON TECHNOLOGIES at Cisco); > [3]Ole Troan > CC: [4]Dave Barach (dbarach); [5]vpp-dev >

Re: [vpp-dev] VPP's C-type-api example

2018-09-15 Thread wangchuan...@163.com
le program name is "test", and how can i connect to vpp? wangchuan...@163.com From: Klement Sekera Date: 2018-09-14 19:55 To: wangchuan...@163.com; Ole Troan CC: Dave Barach (dbarach); vpp-dev Subject: Re: [vpp-dev] VPP's C-type-api example And what is your vpp cmdline? is vpp running wi

Re: [vpp-dev] VPP's C-type-api example

2018-09-15 Thread wangchuan...@163.com
uan...@163.com Date: 2018-09-15 09:23 To: Klement Sekera -X (ksekera - PANTHEON TECHNOLOGIES at Cisco); Ole Troan CC: Dave Barach (dbarach); vpp-dev Subject: Re: Re: [vpp-dev] VPP's C-type-api example Hi Klement, I do not understande your mean.VPP cmdline? I want to make my ext-progr

Re: [vpp-dev] VPP's C-type-api example

2018-09-14 Thread Klement Sekera via Lists.Fd.Io
a - PANTHEON TECHNOLOGIES at Cisco); > [4]Dave Barach (dbarach); [5]vpp-dev > Subject: Re: [vpp-dev] VPP's C-type-api example > > 1、as root, install the rpm(vpp-selinux, vpp-lib, vpp-18.04, > vpp-plugins),  start service vpp and I come into vppctl. > >

Re: [vpp-dev] VPP's C-type-api example

2018-09-14 Thread wangchuan...@163.com
Cisco); Dave Barach (dbarach); vpp-dev Subject: Re: [vpp-dev] VPP's C-type-api example > 1、as root, install the rpm(vpp-selinux, vpp-lib, vpp-18.04, vpp-plugins), > start service vpp and I come into vppctl. > 2、I copy test/ext/vapi_c_test.c to main.c(a new file, a new dir). >

Re: [vpp-dev] VPP's C-type-api example

2018-09-13 Thread Klement Sekera via Lists.Fd.Io
21:44 > > To: wangchuan...@163.com > > CC: Klement Sekera -X (ksekera - PANTHEON TECHNOLOGIES at Cisco); Dave > > Barach (dbarach); vpp-dev > > Subject: Re: [vpp-dev] VPP's C-type-api example > > > i am be root > > > > Then you must pro

Re: [vpp-dev] VPP's C-type-api example

2018-09-13 Thread Ole Troan
angchuan...@163.com > > From: Ole Troan > Date: 2018-09-13 21:44 > To: wangchuan...@163.com > CC: Klement Sekera -X (ksekera - PANTHEON TECHNOLOGIES at Cisco); Dave Barach > (dbarach); vpp-dev > Subject: Re: [vpp-dev] VPP's C-type-api example > > i am be root >

Re: [vpp-dev] VPP's C-type-api example

2018-09-13 Thread wangchuan...@163.com
at Cisco); Dave Barach (dbarach); vpp-dev Subject: Re: [vpp-dev] VPP's C-type-api example > i am be root Then you must provide more details. Cheers, Ole > > wangchuan...@163.com > > From: Ole Troan > Date: 2018-09-13 21:26 > To: wangchuan...@163.com > CC: Kl

Re: [vpp-dev] VPP's C-type-api example

2018-09-13 Thread wangchuan...@163.com
reply->payload.build_directory); else printf("show version return none\n"); rv = vapi_disconnect (ctx); vapi_ctx_free (ctx); printf("end\n"); return 0; } wangchuan...@163.com From: Klement Sekera Date: 2018-09-13 17:02 To: Ole Troan; wangchuanguo CC: Dave B

Re: [vpp-dev] VPP's C-type-api example

2018-09-13 Thread wangchuan...@163.com
i am be root wangchuan...@163.com From: Ole Troan Date: 2018-09-13 21:26 To: wangchuan...@163.com CC: Klement Sekera -X (ksekera - PANTHEON TECHNOLOGIES at Cisco); Dave Barach (dbarach); vpp-dev Subject: Re: [vpp-dev] VPP's C-type-api example > But I got some error when using v

Re: [vpp-dev] VPP's C-type-api example

2018-09-13 Thread Ole Troan
dev > Subject: Re: [vpp-dev] VPP's C-type-api example > > But I got some error when using vapi - vapi_connect as " vl_map_shmem:639: > > region init fail “. > > Permission error? > Run client as root, or configure VPP to set permissions on API shared memory. > > I

Re: [vpp-dev] VPP's C-type-api example

2018-09-13 Thread Ole Troan
uot;show version return none\n"); > rv = vapi_disconnect (ctx); > vapi_ctx_free (ctx); > printf("end\n"); > return 0; > } > > wangchuan...@163.com > > From: Klement Sekera > Date: 2018-09-13 17:02 > To: Ole Troan; wangchuanguo > CC: Dave Barach

Re: [vpp-dev] VPP's C-type-api example

2018-09-13 Thread Klement Sekera via Lists.Fd.Io
You can also check out the test/ext directory for vapi_c_test.c and vapi_cpp_test.cpp, which are unittests for these bindings and there is also an example of _dump API call. Regards, Klement Quoting Ole Troan (2018-09-13 09:33:14) > Hi again, > > > I am in the beginning of using-c-api.

Re: [vpp-dev] VPP's C-type-api example

2018-09-13 Thread Ole Troan
Hi again, > I am in the beginning of using-c-api. Should I not follow > (src/vpp-api/client) ? > Can you please show me a fun-name and a example of the higher level C API? That’s right, I wouldn’t recommend using the src/vpp-aoi/client API unless you are building a new language binding.

Re: [vpp-dev] VPP's C-type-api example

2018-09-12 Thread wangchuan...@163.com
); vpp-dev Subject: Re: [vpp-dev] VPP's C-type-api example Hi there, Is there any reason you don’t want to use the higher level C API? VAPI. That has an API call for dumping interfaces. Then you don’t need to interact with the shared memory rings directly. Cheers Ole On 12 Sep 2018, at 14:28

Re: [vpp-dev] VPP's C-type-api example

2018-09-12 Thread Ole Troan
t; Is there something wrong? > > Maybe, should I follow another example? > Can you give me a example that can dump sw_interfaces? > Be deeply grateful. > > wangchuan...@163.com > > From: Dave Barach (dbarach) > Date: 2018-09-11 21:10 > To: wangchuan...@163.com; vpp

Re: [vpp-dev] VPP's C-type-api example

2018-09-12 Thread wangchuan...@163.com
should I follow another example? Can you give me a example that can dump sw_interfaces? Be deeply grateful. wangchuan...@163.com From: Dave Barach (dbarach) Date: 2018-09-11 21:10 To: wangchuan...@163.com; vpp-dev@lists.fd.io Subject: RE: [vpp-dev] VPP's C-type-api example The typical codi

Re: [vpp-dev] VPP's C-type-api example

2018-09-11 Thread Dave Barach via Lists.Fd.Io
, 2018 4:34 AM To: vpp-dev Subject: [vpp-dev] VPP's C-type-api example Hi all, I code my example following src/vpp-api/client, but do {vac_read}while(1) often block when the results-num does not know. It shows pthread_cond_wait<http://www.baidu.com/link?

[vpp-dev] VPP's C-type-api example

2018-09-11 Thread wangchuan...@163.com
Hi all, I code my example following src/vpp-api/client, but do {vac_read}while(1) often block when the results-num does not know. It shows pthread_cond_wait when gdb. Help please! Thanks very much! void printIntefaces() { api_main_t * am = _main; vl_api_sw_interface_dump_t message;