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: [email protected] [mailto:[email protected]] On Behalf Of Burt Silverman Sent: Wednesday, October 12, 2016 10:38 PM To: [email protected] Cc: vpp-dev <[email protected]> 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, [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>> 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 ________________________________ [email protected]<mailto:[email protected]> _______________________________________________ vpp-dev mailing list [email protected]<mailto:[email protected]> https://lists.fd.io/mailman/listinfo/vpp-dev
_______________________________________________ vpp-dev mailing list [email protected] https://lists.fd.io/mailman/listinfo/vpp-dev
