[netsniff-ng] [PATCH] netsniff-ng: Allow to specify compiled BPF from stdin

2015-11-09 Thread Vadim Kochan
Allow read compiled BPF instructions from stdin by via '-f -' option. Signed-off-by: Vadim Kochan --- bpf.c | 6 +- netsniff-ng.8 | 5 +++-- netsniff-ng.c | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/bpf.c b/bpf.c index 2d769ec..15d804d 100644 --- a/bpf.c ++

[netsniff-ng] Re: [PATCH 2/2] trafgen: Allow to build packet from command line

2015-11-09 Thread Tobias Klauser
On 2015-11-07 at 15:55:16 +0100, Vadim Kochan wrote: > Craft packet direct from command line with same syntax as for conf file. > It might be as first step to extend current syntax with specific proto fields. > > Signed-off-by: Vadim Kochan Nice work, thanks. Now applied. -- You received this

[netsniff-ng] Re: [PATCH 1/2] str: Add converting cmdline args vector to str

2015-11-09 Thread Tobias Klauser
On 2015-11-07 at 15:55:15 +0100, Vadim Kochan wrote: > Move piece of code which converts cmdline args vector to string > from netsniff-ng.c to str.c as function. > > Signed-off-by: Vadim Kochan Applied with slightly changed function/argument names. Thanks! -- You received this message because

Re: [netsniff-ng] Re: [PATCH 2/2] trafgen: Allow to build packet from command line

2015-11-09 Thread vkochan
On Mon, Nov 09, 2015 at 12:47:01PM +0100, Daniel Borkmann wrote: > On 11/09/2015 12:26 PM, vkochan wrote: > ... > >If you conceptually agree with this idea, I probably may re-work series > >and add separate '-p, --pkt' option for the specify packet language from > >command line, or additionally sen

Re: [netsniff-ng] Re: [PATCH 2/2] trafgen: Allow to build packet from command line

2015-11-09 Thread Daniel Borkmann
On 11/09/2015 12:26 PM, vkochan wrote: ... If you conceptually agree with this idea, I probably may re-work series and add separate '-p, --pkt' option for the specify packet language from command line, or additionally send this as separate patch. Can you elaborate on "specify packet language"?

Re: [netsniff-ng] [PATCH 2/2] trafgen: Allow to build packet from command line

2015-11-09 Thread Daniel Borkmann
On 11/07/2015 03:55 PM, Vadim Kochan wrote: Craft packet direct from command line with same syntax as for conf file. It might be as first step to extend current syntax with specific proto fields. Signed-off-by: Vadim Kochan I think this is very useful, thanks for working on it! -- You receiv

[netsniff-ng] Re: [PATCH 2/2] trafgen: Allow to build packet from command line

2015-11-09 Thread vkochan
On Sat, Nov 07, 2015 at 04:55:16PM +0200, Vadim Kochan wrote: > Craft packet direct from command line with same syntax as for conf file. > It might be as first step to extend current syntax with specific proto fields. > > Signed-off-by: Vadim Kochan > --- > trafgen.8| 8 ++-- > traf

[netsniff-ng] Re: [PATCH 3/3] flowtop: Add runtime command to show only active flows

2015-11-09 Thread Tobias Klauser
On 2015-11-06 at 23:23:26 +0100, Vadim Kochan wrote: > Add command 'a' to show only active flows with rate > 0 (dst or src). > Now 'n->is_visible' means which flow to show by presenter. > > Signed-off-by: Vadim Kochan Applied, thanks. -- You received this message because you are subscribed to

[netsniff-ng] Re: [PATCH 2/3] flowtop: Add runtime command to change rate units

2015-11-09 Thread Tobias Klauser
On 2015-11-06 at 23:23:25 +0100, Vadim Kochan wrote: > Add interactive command 'b' to change rate units to show. > > Signed-off-by: Vadim Kochan Applied, thanks Vadim! -- You received this message because you are subscribed to the Google Groups "netsniff-ng" group. To unsubscribe from this g

[netsniff-ng] Re: [PATCH 1/3] flowtop: Add runtime command to show help window

2015-11-09 Thread Tobias Klauser
On 2015-11-06 at 23:23:24 +0100, Vadim Kochan wrote: [...] > +static void draw_help(WINDOW *screen) > +{ > + int col = 0; > + int row = 0; > + int i; > + > + mvaddch(row, col, ACS_ULCORNER); > + mvaddch(rows - row - 2, col, ACS_LLCORNER); > + > + mvaddch(row, cols - 1, ACS_