[netsniff-ng] Re: [PATCH v4 1/6] proc: Add function to execute process with argv list

2015-12-17 Thread Tobias Klauser
On 2015-12-15 at 22:09:10 +0100, Vadim Kochan  wrote:
> Add proc_exec function which executes given process with
> argv list via fork + execvp.
> 
> It allows to replace 'system' call approach which is used
> for invoking cpp and securely extend it with additional options
> like -D.
> 
> Signed-off-by: Vadim Kochan 

Series applied with some minor modifications (added const qualifiers
where applicable, changed some data types).

Thanks a lot, this is nice work!

-- 
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.


Re: [netsniff-ng] Re: Shell variables support in trafgen

2015-12-17 Thread Daniel Borkmann

[ Thanks Vadim! Actually Cc'ing him here. ]

On 12/17/2015 12:38 PM, Vadim Kochan wrote:

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.


[netsniff-ng] Re: Shell variables support in trafgen

2015-12-17 Thread Vadim Kochan


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.