From b589e322145d87274a6e15a767393c925bf38a04 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Thu, 7 Mar 2013 23:16:12 +0100 Subject: [PATCH] flowtop: show proper title of what's tracked Signed-off-by: Daniel Borkmann --- flowtop.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/flowtop.c b/flowtop.c index 4a77bfc..274b75c 100644 --- a/flowtop.c +++ b/flowtop.c @@ -943,8 +943,14 @@ static void presenter_screen_update(WINDOW *screen, struct flow_list *fl, wclear(screen); clear(); - mvwprintw(screen, 1, 2, "Kernel netfilter TCP/UDP " - "flow statistics, [+%d]", skip_lines); + mvwprintw(screen, 1, 2, "Kernel netfilter flows for %s%s%s%s%s%s" + "[+%d]", what & INCLUDE_TCP ? "TCP, " : "" , + what & INCLUDE_UDP ? "UDP, " : "", + what & INCLUDE_SCTP ? "SCTP, " : "", + what & INCLUDE_DCCP ? "DCCP, " : "", + what & INCLUDE_ICMP && what & INCLUDE_IPV4 ? "ICMP, " : "", + what & INCLUDE_ICMP && what & INCLUDE_IPV6 ? "ICMP6, " : "", + skip_lines); rcu_read_lock(); -- 2.11.4.GIT