Fwd: [netsniff-ng] error when running trafgen for the first time.

2015-06-05 Thread Vadim Kochan
CC to Perf Tech


-- Forwarded message --
From: Vadim Kochan vadi...@gmail.com
Date: Thu, Jun 4, 2015 at 11:11 PM
Subject: Re: [netsniff-ng] error when running trafgen for the first time.
To: netsniff-ng@googlegroups.com


On Wed, Jun 3, 2015 at 7:05 PM, Perf Tech perfte...@gmail.com wrote:
 Hi Guys,

New to the tool trafgen (ver 0.5.9-rc4).  When I run it on my ubuntu
 12.04 server, got errors:

 $./trafgen -e  tmp2.txt
 $./trafgen --dev eth0 --conf tmp2.txt --rand --gap 1000us
 Syntax error at line2, at char 'T'! syntax error, unexpected number,
 expecting ')'!


Not sure what's causing the error.   Any ideas?

 Thanks.

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

Hi,

May be you should add --cpp option ?

$./trafgen --dev eth0 --conf tmp2.txt --rand --gap 1000us --cpp

Regards,

-- 
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] error when running trafgen for the first time.

2015-06-05 Thread Perf Tech
Sorry, I meant to say I got the following. I am stuck with syntax errors :-(

# ./trafgen --dev eth0 --conf tmp2.txt --rand --gap 1000us --cpp
Syntax error at line6, at char 't'! syntax error, unexpected number!
# ./trafgen --dev eth0 --conf tmp2.txt --rand --gap 1000us
Syntax error at line2, at char 'T'! syntax error, unexpected number, 
expecting ')'!



On Friday, June 5, 2015 at 2:58:06 AM UTC-5, Vadim Kochan wrote:

 CC to Perf Tech 


 -- Forwarded message -- 
 From: Vadim Kochan vad...@gmail.com javascript: 
 Date: Thu, Jun 4, 2015 at 11:11 PM 
 Subject: Re: [netsniff-ng] error when running trafgen for the first time. 
 To: netsn...@googlegroups.com javascript: 


 On Wed, Jun 3, 2015 at 7:05 PM, Perf Tech perf...@gmail.com javascript: 
 wrote: 
  Hi Guys, 
  
 New to the tool trafgen (ver 0.5.9-rc4).  When I run it on my ubuntu 
  12.04 server, got errors: 
  
  $./trafgen -e  tmp2.txt 
  $./trafgen --dev eth0 --conf tmp2.txt --rand --gap 1000us 
  Syntax error at line2, at char 'T'! syntax error, unexpected number, 
  expecting ')'! 
  
  
 Not sure what's causing the error.   Any ideas? 
  
  Thanks. 
  
  -- 
  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...@googlegroups.com javascript:. 
  For more options, visit https://groups.google.com/d/optout. 

 Hi, 

 May be you should add --cpp option ? 

 $./trafgen --dev eth0 --conf tmp2.txt --rand --gap 1000us --cpp 

 Regards, 


-- 
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: Fwd: [netsniff-ng] error when running trafgen for the first time.

2015-06-05 Thread Daniel Borkmann

On 06/05/2015 09:58 AM, Vadim Kochan wrote:
...

May be you should add --cpp option ?

$./trafgen --dev eth0 --conf tmp2.txt --rand --gap 1000us --cpp


Yes, that's correct. Thanks for the quick reply, Vadim!

--
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] [PATCH] netsniff-ng nlmsg: Dissect rtnl route type messages

2015-06-05 Thread Daniel Borkmann

On 06/04/2015 09:34 PM, Vadim Kochan wrote:

From: Vadim Kochan vadi...@gmail.com

Dump RTnetlink routing related info with attributes.

Signed-off-by: Vadim Kochan vadi...@gmail.com


Applied, thanks Vadim.

Please in future don't reuse the exact same patch subject resp.
commit message from some of your earlier work, since people going
through the git log might otherwise not identify the right commit
immediately if they are debugging, etc.

--
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: Fwd: [netsniff-ng] error when running trafgen for the first time.

2015-06-05 Thread Perf Tech
Thanks Guys for the reply.  The following is what I got, any idea why? 

# ./trafgen --dev eth0 --conf tmp2.txt --rand --gap 1000us --cpp
Syntax error at line6, at char 't'! syntax error, unexpected number!
# ./trafgen --dev eth0 --conf tmp2.txt --rand --gap 1000us
Syntax error at line2, at char 'T'! syntax error, unexpected number, 
expecting ')'!


On Friday, June 5, 2015 at 4:58:37 PM UTC-5, Daniel Borkmann wrote:

 On 06/05/2015 09:58 AM, Vadim Kochan wrote: 
 ... 
  May be you should add --cpp option ? 
  
  $./trafgen --dev eth0 --conf tmp2.txt --rand --gap 1000us --cpp 

 Yes, that's correct. Thanks for the quick reply, Vadim! 


-- 
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] error when running trafgen for the first time.

2015-06-05 Thread Vadim Kochan
On Fri, Jun 05, 2015 at 03:04:24PM -0700, Perf Tech wrote:
 Sorry, I meant to say I got the following. I am stuck with syntax errors :-(
 
 # ./trafgen --dev eth0 --conf tmp2.txt --rand --gap 1000us --cpp
 Syntax error at line6, at char 't'! syntax error, unexpected number!
 # ./trafgen --dev eth0 --conf tmp2.txt --rand --gap 1000us
 Syntax error at line2, at char 'T'! syntax error, unexpected number, 
 expecting ')'!
 

I think you need to copy trafgen_stddef.h into /etc/netsniff-ng/stddef.h :-)
Because when I renamed my /etc/netsniff-ng/stddef.h I got the same
error.

Regards,

-- 
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: Fwd: [netsniff-ng] error when running trafgen for the first time.

2015-06-05 Thread Vadim Kochan
On Sat, Jun 06, 2015 at 12:27:46AM +0200, Daniel Borkmann wrote:
 On 06/06/2015 12:16 AM, Vadim Kochan wrote:
 ...
 Do you have cpp installed on your machine?
 
 I think in that case there could be a message like:
 sh: cpp: command not found
 Failed to invoke C preprocessor!
 
 Yes, agreed. Want to send a patch? ;)

Sorry, may be I should put some explanations - I did changed invoking
cpp command from trafgen_parser.y to something unexistable XXX and I
got the above message, so I meant that Perf Tech then should get this
message too if he/she have no cpp util.

Regards,

-- 
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: Fwd: [netsniff-ng] error when running trafgen for the first time.

2015-06-05 Thread Vadim Kochan
On Sat, Jun 06, 2015 at 12:08:58AM +0200, Daniel Borkmann wrote:
 On 06/06/2015 12:02 AM, Perf Tech wrote:
 Thanks Guys for the reply.  The following is what I got, any idea why?
 
 # ./trafgen --dev eth0 --conf tmp2.txt --rand --gap 1000us --cpp
 Syntax error at line6, at char 't'! syntax error, unexpected number!
 # ./trafgen --dev eth0 --conf tmp2.txt --rand --gap 1000us
 Syntax error at line2, at char 'T'! syntax error, unexpected number,
 expecting ')'!
 
 That's what I get:
 
 # trafgen -e  foo
 # trafgen --in foo --out em1 --cpp --rand --gap 1000us --num 1
  1 packets to schedule
 73 bytes in total
 Running! Hang up with ^C!
 
 
1 packets outgoing
   73 bytes outgoing
0 sec, 1148 usec on CPU0 (1 packets)
 
 Do you have cpp installed on your machine?
 
I think in that case there could be a message like:
sh: cpp: command not found
Failed to invoke C preprocessor!

-- 
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] error when running trafgen for the first time.

2015-06-05 Thread Perf Tech
Did that but still get the same problem.

# ls /etc/netsniff-ng/
rules  trafgen_stddef.h
# cd trafgen/
# ./trafgen --dev eth0 --conf tmp2.txt --rand --gap 1000us --cpp
Syntax error at line6, at char 't'! syntax error, unexpected number!

I suspect the problem is due to the cpp version:
# file /usr/bin/cpp
/usr/bin/cpp: symbolic link to `/usr/bin/cpp-4.6'

I am running Ubuntu 12.04, don't know how to upgrade to cpp-4.9.

On another system, I have ubuntu  14.10 server.  It has cpp-4.9.

Tried to install  netsniff-ng on it, 

# apt-get install git build-essential flex bison ccache libnl-3-dev 
libnl-genl-3-dev libgeoip-dev libnetfilter-conntrack-dev libncurses5-dev 
liburcu-dev libnet1-dev libpcap-dev
# git clone git://github.com/netsniff-ng/netsniff-ng.git

However, when I tried to install it 
# ./configure 
...
[*] Generating config.h ...
[!] Some libraries or header definitions are missing or too old. Thus
certain tools will not be built (see below). Please refer to the
INSTALL file for the libraries needed to build the complete
netsniff-ng toolkit.
[!] The NaCl crypto library is currently not present on your system or
could not be found. Either install it from your distro or build it
manually using 'make nacl' and make sure that the NACL_INC_DIR and
NACL_LIB_DIR environment variables are set appropriately.
[!] The following tools will *not* be built: curvetun mausezahn
[*] The following tools will be built: netsniff-ng trafgen astraceroute 
flowtop ifpps bpfc

Any ideas?


On Friday, June 5, 2015 at 5:24:13 PM UTC-5, Vadim Kochan wrote:

 On Fri, Jun 05, 2015 at 03:04:24PM -0700, Perf Tech wrote: 
  Sorry, I meant to say I got the following. I am stuck with syntax errors 
 :-( 
  
  # ./trafgen --dev eth0 --conf tmp2.txt --rand --gap 1000us --cpp 
  Syntax error at line6, at char 't'! syntax error, unexpected number! 
  # ./trafgen --dev eth0 --conf tmp2.txt --rand --gap 1000us 
  Syntax error at line2, at char 'T'! syntax error, unexpected number, 
  expecting ')'! 
  

 I think you need to copy trafgen_stddef.h into /etc/netsniff-ng/stddef.h 
 :-) 
 Because when I renamed my /etc/netsniff-ng/stddef.h I got the same 
 error. 

 Regards, 


-- 
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: Fwd: [netsniff-ng] error when running trafgen for the first time.

2015-06-05 Thread Daniel Borkmann

On 06/06/2015 12:16 AM, Vadim Kochan wrote:
...

Do you have cpp installed on your machine?


I think in that case there could be a message like:
sh: cpp: command not found
Failed to invoke C preprocessor!


Yes, agreed. Want to send a patch? ;)

--
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] error when running trafgen for the first time.

2015-06-05 Thread Vadim Kochan
On Fri, Jun 05, 2015 at 03:31:30PM -0700, Perf Tech wrote:
 Did that but still get the same problem.
 
 # ls /etc/netsniff-ng/
 rules  trafgen_stddef.h

It should be as stddef.h in /etc/netsniff-ng

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