summaryrefslogtreecommitdiff
path: root/ui_common.h
diff options
context:
space:
mode:
authorPaul Warren <pdw@ex-parrot.com>2022-10-09 22:07:55 +0100
committerPaul Warren <pdw@ex-parrot.com>2022-10-09 22:07:55 +0100
commitaee8e05f48f0ffee4a724c6bd582f51ca65b27f1 (patch)
tree76dab521c580e74095b55ba4c8ecf3c0561a9d2f /ui_common.h
parent8d76ef06d225c4d72db544b54ea1ef1a0e077967 (diff)
Show local process names.origin/proc-display
Patch from Mark Benjamin
Diffstat (limited to 'ui_common.h')
-rw-r--r--ui_common.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/ui_common.h b/ui_common.h
index 63ae5bb..44c04e6 100644
--- a/ui_common.h
+++ b/ui_common.h
@@ -11,6 +11,7 @@
#include <stdio.h>
#include "addr_hash.h"
+#include "proc_hash.h"
#include "serv_hash.h"
#include "iftop.h"
#include "resolver.h"
@@ -33,16 +34,18 @@ typedef struct host_pair_line_tag {
extern options_t options;
-sorted_list_type screen_list;
-host_pair_line totals;
-int peaksent, peakrecv, peaktotal;
+extern sorted_list_type screen_list;
+extern host_pair_line totals;
+extern int peaksent, peakrecv, peaktotal;
extern history_type history_totals;
-hash_type* screen_hash;
-hash_type* service_hash;
+extern hash_type* screen_hash;
+extern hash_type* service_hash;
+extern hash_type* process_hash;
void analyse_data(void);
void screen_list_init(void);
-void sprint_host(char * line, int af, struct in6_addr* addr, unsigned int port, unsigned int protocol, int L, int unspecified_as_star);
+void sprint_host(char * line, int af, struct in6_addr* addr, unsigned int port,
+ unsigned int protocol, int L, int unspecified_as_star, bool is_local);
void readable_size(float, char*, int, int, option_bw_unit_t);
#endif /* __UI_COMMON_H_ */