[netsniff-ng] Re: flowtop: How should be src info printed in stdout dump mode

2016-04-26 Thread Tobias Klauser
On 2016-04-26 at 12:24:45 +0200, Vadim Kochan wrote: > On Tue, Apr 26, 2016 at 12:00 PM, Tobias Klauser wrote: > > On 2016-04-26 at 10:47:18 +0200, Vadim Kochan wrote: > >> On Tue, Apr 26, 2016 at 10:30:19AM +0200, Tobias Klauser wrote:

[netsniff-ng] Re: [PATCH 5/8] flowtop: Remove unused args in draw_flow_entry(...)

2016-04-26 Thread Tobias Klauser
On 2016-04-26 at 09:47:19 +0200, Vadim Kochan wrote: > Remove unused "screen" & "line" arguments in draw_flow_entry(...) > function. > > Signed-off-by: Vadim Kochan This does not really influence the rest of the series, so I already applied this, thanks.

[netsniff-ng] Re: flowtop: How should be src info printed in stdout dump mode

2016-04-26 Thread Tobias Klauser
On 2016-04-25 at 16:55:53 +0200, Vadim Kochan wrote: > On Mon, Apr 25, 2016 at 11:21:57AM +0200, Tobias Klauser wrote: > > On 2016-04-22 at 23:53:01 +0200, Vadim Kochan wrote: > > > Hi, > > > > > > I am thinking about to add dump of flows to stdout. It

[netsniff-ng] [PATCH 4/8] flowtop: Print "-->" before dst peer in src mode

2016-04-26 Thread Vadim Kochan
"-->" allows to better separate src & dst peers. Signed-off-by: Vadim Kochan --- flowtop.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flowtop.c b/flowtop.c index 20b3c25..ab3459a 100644 --- a/flowtop.c +++ b/flowtop.c @@ -1020,6 +1020,8 @@ static void

[netsniff-ng] [PATCH 7/8] flowtop: Add command-line option to dump flows to stdout

2016-04-26 Thread Vadim Kochan
Add '-d, --dump' option which dumps flows to stdout only. The table layout is same like in interactive mode, the difference is only if '-s' option is enabled that in stdout mode the rows are separated with empty line for better separation. Interval option is also supported but only for delay to

[netsniff-ng] [PATCH 5/8] flowtop: Remove unused args in draw_flow_entry(...)

2016-04-26 Thread Vadim Kochan
Remove unused "screen" & "line" arguments in draw_flow_entry(...) function. Signed-off-by: Vadim Kochan --- flowtop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flowtop.c b/flowtop.c index ab3459a..cbd5a33 100644 --- a/flowtop.c +++ b/flowtop.c @@

[netsniff-ng] [PATCH 6/8] flowtop: Move curses drawing to separate function

2016-04-26 Thread Vadim Kochan
Move curses related drawing to separate function. Similary there will be stdout drawing function. Signed-off-by: Vadim Kochan --- flowtop.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/flowtop.c b/flowtop.c index cbd5a33..65a8ad4

[netsniff-ng] [PATCH 1/8] ui: Use custom print function

2016-04-26 Thread Vadim Kochan
Use custom defined ui_print_yx macro to print text to screen. This is just small preparation to unify printing in STDOUT & CURSES modes. Signed-off-by: Vadim Kochan --- ui.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/ui.c b/ui.c index