Hi John,
On 05/21/2013 10:41 PM, John Lange wrote:
> I've been using the bpfc tool lately, and it's very useful! I was wondering whether the input file format might support constant value definitions that could be used elsewhere within the file. For example, something like:
Thanks for using bpfc! :-)
> $VLAN_TAG #8100
> �
> jeq $VLAN_TAG, Keep, Drop
> �
Currently it is not supported. What we could do here
would be a similar approach as in trafgen if you need
it, where we would pass the source file first to the
C preprocessor doing textual replacements and then to
bpfc. What do you say?
Cheers,
Daniel