You should use SNAT plugin like all other plugins. Documentation for SNAT 
plugin is here https://wiki.fd.io/view/VPP/SNAT

Regards,




Matus Fabian
Engineer - Software
matfa...@cisco.com<mailto:matfa...@cisco.com>
Tel:

Cisco Systems, Inc.



Slovakia
cisco.com


[http://www.cisco.com/assets/swa/img/thinkbeforeyouprint.gif]Think before you 
print.

This email may contain confidential and privileged material for the sole use of 
the intended recipient. Any review, use, distribution or disclosure by others 
is strictly prohibited. If you are not the intended recipient (or authorized to 
receive for the recipient), please contact the sender by reply email and delete 
all copies of this message.
Please click 
here<http://www.cisco.com/web/about/doing_business/legal/cri/index.html> for 
Company Registration Information.



From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On 
Behalf Of Jon Loeliger
Sent: Wednesday, January 25, 2017 12:46 AM
To: vpp-dev <vpp-dev@lists.fd.io>
Subject: [vpp-dev] SNAT Plugin Use

Folks,

What is the expected method to use the SNAT plugin within the
framework of the rest of a VPP system?

Specifically, what is the expected use of VL_MSG_FIRST_AVAILABLE?
It is several (4) enum include files, and they conflict if two or more are
used in the same source file.  Here is a terse example.

Did I miss some documentation that shows how to use the SNAT plugin?
I don't think I need to use the "plugin-ness" of SNAT, as we will always
need to have it present in our app.

Thanks,
jdl


    CC interface.c
In file included from interface.c:13:0:
/usr/include/vpp_plugins/snat/snat_msg_enum.h:27:5: error: redeclaration of 
enumerator ‘VL_MSG_FIRST_AVAILABLE’
     VL_MSG_FIRST_AVAILABLE,
     ^
In file included from interface.c:12:0:
/usr/include/vpp/api/vpe_msg_enum.h:25:3: note: previous definition of 
‘VL_MSG_FIRST_AVAILABLE’ was here
   VL_MSG_FIRST_AVAILABLE,
   ^
In file included from interface.c:13:0:
/usr/include/vpp_plugins/snat/snat_msg_enum.h:28:3: error: conflicting types 
for ‘vl_msg_id_t’
 } vl_msg_id_t;
   ^
In file included from interface.c:12:0:
/usr/include/vpp/api/vpe_msg_enum.h:26:3: note: previous declaration of 
‘vl_msg_id_t’ was here
 } vl_msg_id_t;
   ^
make: *** [interface.o] Error 1

_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to