Re: [vpp-dev] SNAT Plugin Use

2017-01-27 Thread Dave Barach (dbarach)
Loeliger [mailto:j...@netgate.com] Sent: Friday, January 27, 2017 10:24 AM To: Dave Barach (dbarach) Cc: vpp-dev Subject: Re: [vpp-dev] SNAT Plugin Use On Thu, Jan 26, 2017 at 4:38 PM, Jon Loeliger mailto:j...@netgate.com>> wrote: Does this same mechanism hold true for the VPE messages?

Re: [vpp-dev] SNAT Plugin Use

2017-01-27 Thread Jon Loeliger
On Thu, Jan 26, 2017 at 4:38 PM, Jon Loeliger wrote: > > > Does this same mechanism hold true for the VPE messages? Is the collection > of the VPE message considered "a plugin", or "a base onto which plugins > will > be added"? There are currently 20 or 21 include files' worth of msg ids > here.

Re: [vpp-dev] SNAT Plugin Use

2017-01-26 Thread Jon Loeliger
On Wed, Jan 25, 2017 at 10:49 AM, Dave Barach (dbarach) wrote: > > > > When it comes time to send binary API messages to a given plugin, the > control-plane agent recovers msg_id_base like so: > > > > /* Ask the vpp engine for the first assigned message-id */ > > name = format (0, "snat_%08x%c

Re: [vpp-dev] SNAT Plugin Use

2017-01-26 Thread Dave Barach (dbarach)
index (STR_VL_API_SNAT_ADD_ADDRESS_RANGE); HTH... D. From: Jon Loeliger [mailto:j...@netgate.com] Sent: Thursday, January 26, 2017 3:29 PM To: Dave Barach (dbarach) Cc: vpp-dev Subject: Re: [vpp-dev] SNAT Plugin Use On Wed, Jan 25, 2017 at 10:49 AM, Dave Barach (dbarach) mailto:dbar...@cisco.com>

Re: [vpp-dev] SNAT Plugin Use

2017-01-26 Thread Jon Loeliger
On Thu, Jan 26, 2017 at 2:29 PM, Jon Loeliger wrote: > But I can't include both of the msg_id enumberations in the same C file > Wow, Jon, nice Englishing there! jdl ___ vpp-dev mailing list vpp-dev@lists.fd.io https://lists.fd.io/mailman/listinfo/vpp

Re: [vpp-dev] SNAT Plugin Use

2017-01-26 Thread Jon Loeliger
On Wed, Jan 25, 2017 at 10:49 AM, Dave Barach (dbarach) wrote: > Dear Jon, > > > > Sorry for the delayed response. > > > > Anyhow, the constant VL_MSG_FIRST_AVAILABLE is a historical name for a > simple thing: the number of binary API messages defined by a given plugin. > Understood. > I’m not

Re: [vpp-dev] SNAT Plugin Use

2017-01-25 Thread Dave Barach (dbarach)
un...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On Behalf Of Jon Loeliger Sent: Tuesday, January 24, 2017 6:46 PM To: vpp-dev 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

Re: [vpp-dev] SNAT Plugin Use

2017-01-25 Thread Matus Fabian -X (matfabia - PANTHEON TECHNOLOGIES at Cisco)
vpp-dev-boun...@lists.fd.io] On Behalf Of Jon Loeliger Sent: Wednesday, January 25, 2017 12:46 AM To: vpp-dev 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_FIR

[vpp-dev] SNAT Plugin Use

2017-01-24 Thread Jon Loeliger
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 e