[netsniff-ng] [PATCH v2 11/11] flowtop: Simplify flows refresh delay

2016-04-17 Thread Vadim Kochan
Simplify screen refresh logic by removing tricky delay logic which freezes a little key pressing. Signed-off-by: Vadim Kochan --- flowtop.c | 21 +++-- 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/flowtop.c b/flowtop.c index 3060917..2077fdb

[netsniff-ng] [PATCH v2 00/11] flowtop: Layout change to 1-row view

2016-04-17 Thread Vadim Kochan
Changed flows list layout to look more a top-like output with header and in 1 line. When -s option is specified then layout changes to 2 lines view including with src peer info and dst under it on next line. v2: 1) Add UI table widget with generic implementation for print list items in

[netsniff-ng] [PATCH v2 04/11] screen: Add helpers to easy use color by name

2016-04-17 Thread Vadim Kochan
Added macros which allow easy specify color pair like: INIT_COLOR(YELLOW, BLACK); COLOR(YELLOW, BLACK); COLOR_ON(YELLOW, BLACK); by calculating pair id via generic formula. Added shorter color names via new enum. Signed-off-by: Vadim Kochan --- screen.h | 17

[netsniff-ng] [PATCH v2 05/11] flowtop: Use new colors naming & helpers

2016-04-17 Thread Vadim Kochan
Use new colors definitions via enum variables instead of numbers which helps to undrerstand better which kind of color is used. Signed-off-by: Vadim Kochan --- flowtop.c | 42 ++ 1 file changed, 22 insertions(+), 20 deletions(-) diff

[netsniff-ng] [PATCH v2 07/11] ui: Implement UI table for flows printing

2016-04-17 Thread Vadim Kochan
Add new module ui.c which is responsible to render different kinds of UI widgets - tables, etc. Implemented generic API for print table-like list of elements. This table API might be used for print flows in curses or text mode. Signed-off-by: Vadim Kochan --- ui.c | 142

[netsniff-ng] [PATCH v2 06/11] list: Add re-defined double-linked list API from liburcu

2016-04-17 Thread Vadim Kochan
Add definitions for list structure & functions without cds_/CDS_ prefix. The purpose of this change is to use such linked-list in sorting or ordering some kind of items (e.g. flowtop - flows, columns). Signed-off-by: Vadim Kochan --- list.h | 39

[netsniff-ng] Re: [PATCH 2/5] flowtop: Change flows layout to 1-row view

2016-04-17 Thread Vadim Kochan
On Tue, Mar 29, 2016 at 03:38:58PM +0200, Tobias Klauser wrote: > On 2016-03-29 at 15:32:43 +0200, Vadim Kochan wrote: > > On Tue, Mar 29, 2016 at 4:23 PM, Tobias Klauser wrote: > > > On 2016-03-23 at 22:00:44 +0100, Vadim Kochan wrote: