Here’s what I do...

Use cscope [or some other tool] to search for the text string ETHERNET_TYPE_##. 
Symbols such as ETHERNET_TYPE_XXX are constructed using the C preprocessor 
string-concatenation operator ‘##’.

Once you find the template string, it will be obvious where to find the list of 
suffixes.

Thanks… Dave

From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On 
Behalf Of Burt Silverman
Sent: Wednesday, October 12, 2016 10:38 PM
To: yug...@telincn.com
Cc: vpp-dev <vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] macro definition

Ewan,
There is a fragment of code in vnet/vnet/ethernet/types.def from which you can 
derive the definitions. Because types.def is only a fragment of code, used in 
multiple ways, automated tools like Eclipse that normally do well with macros 
do not do well here.
Burt

On Fri, Oct 7, 2016 at 9:01 PM, yug...@telincn.com<mailto:yug...@telincn.com> 
<yug...@telincn.com<mailto:yug...@telincn.com>> wrote:
 Hi, there

 Thanks a lot for your time to read this.
 Where is the definitions of "ETHERNET_TYPE_ARP" "ETHERNET_TYPE_IP4".
 How can i add a new protocol type  such as pppoe.

Best wishes
By Ewan
________________________________
yug...@telincn.com<mailto:yug...@telincn.com>

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

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

Reply via email to