aboutsummaryrefslogtreecommitdiffstats
path: root/src/fnettrace/main.c
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2023-10-24 09:13:27 -0400
committerLibravatar netblue30 <netblue30@protonmail.com>2023-10-24 09:13:27 -0400
commitfa075b62fb010267e7b9eda8264b596d94d66aab (patch)
tree70770c7df31ff84f0f02890515eea562f84d8988 /src/fnettrace/main.c
parentbuild(deps): bump github/codeql-action from 2.22.3 to 2.22.4 (diff)
downloadfirejail-fa075b62fb010267e7b9eda8264b596d94d66aab.tar.gz
firejail-fa075b62fb010267e7b9eda8264b596d94d66aab.tar.zst
firejail-fa075b62fb010267e7b9eda8264b596d94d66aab.zip
enabled nettraces by default in the main build - you would need to be root to run these optionslandlock-split
Diffstat (limited to 'src/fnettrace/main.c')
-rw-r--r--src/fnettrace/main.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/fnettrace/main.c b/src/fnettrace/main.c
index 5a0b97e89..4db8e7478 100644
--- a/src/fnettrace/main.c
+++ b/src/fnettrace/main.c
@@ -308,6 +308,8 @@ static inline const char *common_port(uint16_t port) {
308 return "Tor"; 308 return "Tor";
309 else if (port == 9030) 309 else if (port == 9030)
310 return "Tor"; 310 return "Tor";
311 else if (port == 9040)
312 return "Tor";
311 else if (port == 9050) 313 else if (port == 9050)
312 return "Tor"; 314 return "Tor";
313 else if (port == 9051) 315 else if (port == 9051)
@@ -506,16 +508,16 @@ static void print_stats(FILE *fp) {
506 508
507 fprintf(fp, "\n\nIP map"); 509 fprintf(fp, "\n\nIP map");
508 if (fp == stdout) 510 if (fp == stdout)
509 ansi_faint(" - server-address network (packets)\n"); 511 ansi_faint(" - network (packets)\n");
510 else 512 else
511 fprintf(fp, " - server-address network (packets)\n"); 513 fprintf(fp, " - network (packets)\n");
512 radix_print(fp, 1); 514 radix_print(fp, 1);
513 515
514 fprintf(fp, "\n\nEvents %d", ev_cnt); 516 fprintf(fp, "\n\nEvents %d", ev_cnt);
515 if (fp == stdout) 517 if (fp == stdout)
516 ansi_faint(" - time address:port data\n"); 518 ansi_faint(" - time address data\n");
517 else 519 else
518 fprintf(fp, " - time address:port data\n"); 520 fprintf(fp, " - time address data\n");
519 ev_print(fp); 521 ev_print(fp);
520 522
521} 523}