Use gdb to debug your program, and vpp. Breakpoint the data plane plugin message handler and see if the vl_api_nat_worker_dump_t_handler is ever invoked. Note the output of “show api client” once the test client connects.
Your client program ends up w/ 2 threads. Binary APIs are asynchronous. Try sticking a sleep(<nnn>) after you send the nat_worker_dump API. Vat is about as simple as it can be. It’s big because it supports lots of APIs. TBH, your test client is too simple to be useful. D. P.S. Please do not unicast committers. From: Seyyed Mojtaba Rezvani <s_mojtaba_...@yahoo.com> Sent: Sunday, June 10, 2018 6:15 AM To: Dave Barach (dbarach) <dbar...@cisco.com> Subject: #vpp Also failed to call nat plugin on VPP 18.07 Dearest Dave Thank you so much for your immediate and helpful response I have switch my work to nat plugin as you have said and tried to call a function (nat_worker) by a C program. I have changed the program as you said (at least I hope so) though the program never responds. I have searched for a sample C program that calls a plugin the whole internet. I have attached again my C and Make file. (make it with "make compilenat" and "make linknat") It would be really handy If you got any simple sample program that really works (with no need of vat). Thank you for your generous help and thanks in advance for you quick response Best regards, Seyyed Mojtaba Rezvani -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#9576): https://lists.fd.io/g/vpp-dev/message/9576 Mute This Topic: https://lists.fd.io/mt/21946575/21656 Mute #vpp: https://lists.fd.io/mk?hashtag=vpp&subid=1480452 Group Owner: vpp-dev+ow...@lists.fd.io Leave: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-