summaryrefslogtreecommitdiff
path: root/flowtop.c
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2015-12-16 22:12:08 +0200
committerTobias Klauser <tklauser@distanz.ch>2015-12-21 14:31:32 +0100
commit2f928fcfcb0965419cff3f6ff89757d2f0512c88 (patch)
tree6f7884ee82e613e89dffc3ece7a6e1ff9293c273 /flowtop.c
parent8fe5a36685c88220157164ac5a5bc002e8eec273 (diff)
flowtop: Indicate if 'active' flows mode is selected
Show 'Active' filter status if 'a' was pressed. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'flowtop.c')
-rw-r--r--flowtop.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/flowtop.c b/flowtop.c
index 52e4bef..d90e1ee 100644
--- a/flowtop.c
+++ b/flowtop.c
@@ -1146,6 +1146,7 @@ static void draw_flows(WINDOW *screen, struct flow_list *fl,
}
mvwprintw(screen, 1, 2, "Kernel netfilter flows(%u) for ", flows);
+
if (what & INCLUDE_IPV4)
printw("IPv4,");
if (what & INCLUDE_IPV6)
@@ -1162,6 +1163,9 @@ static void draw_flows(WINDOW *screen, struct flow_list *fl,
printw("ICMP,");
if (what & INCLUDE_ICMP && what & INCLUDE_IPV6)
printw("ICMP6,");
+ if (show_active_only)
+ printw("Active,");
+
printw(" [+%d]", skip_lines);
if (is_flow_collecting)