I came close to having an even more general solution to locating the origin of the concatenated strings, which would be to use Eclipse. But I have to concede defeat because of the cases I mentioned above. Eclipse is still useful where it is useful.
Burt On Thu, Oct 13, 2016 at 7:20 AM, Dave Barach (dbarach) <[email protected]> wrote: > 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] <[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] > > > _______________________________________________ > vpp-dev mailing list > [email protected] > https://lists.fd.io/mailman/listinfo/vpp-dev > > >
_______________________________________________ vpp-dev mailing list [email protected] https://lists.fd.io/mailman/listinfo/vpp-dev
