On Wednesday, May 13, 2015 at 10:04:28 AM UTC+3, Kenneth Aaron wrote:
>
> Hi,
>
> Is it possible to use shell variables in the configuration file? 
> The use case I have is a script that sets variables such as IP address ( 
> $SrcIP_Byte1 , $SrcIP_Byte2 , $SrcIP_Byte3 , $SrcIP_Byte4 ) then trafgen is 
> called using a standard configuration file, but the variables $SrcIP_Byte1 
> etc are referenced from within the config file itself
> The alternative is that the shell script use 'sed' or other means of 
> manipulating the config file, but variables are so much easier
>
> Thanks
>

Hi,

I added -D option which allows to .pass C preprocessor macro/define (with 
combination of -p,--cpp option) and I think it can be
used similary to what you requested. The changes currently are only in 
master branch in official repo. The same option was added
for bpfc.

Regards,
Vadim Kochan 

-- 
You received this message because you are subscribed to the Google Groups 
"netsniff-ng" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to netsniff-ng+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to