diff options
author | netblue <netblue@debian> | 2023-06-25 17:52:44 -0400 |
---|---|---|
committer | netblue <netblue@debian> | 2023-06-25 17:52:44 -0400 |
commit | c17c8c3acfe994c1728c1d1c204ad442132aca85 (patch) | |
tree | 309483a8285ab64f0f378a9fd62c706e5eb54e3d | |
parent | build: move MAKEFLAGS to config.mk.in (diff) | |
download | firejail-c17c8c3acfe994c1728c1d1c204ad442132aca85.tar.gz firejail-c17c8c3acfe994c1728c1d1c204ad442132aca85.tar.zst firejail-c17c8c3acfe994c1728c1d1c204ad442132aca85.zip |
QUIC (HTTP/3) support in --nettrace
-rw-r--r-- | RELNOTES | 1 | ||||
-rw-r--r-- | src/fnettrace/main.c | 6 |
2 files changed, 6 insertions, 1 deletions
@@ -5,6 +5,7 @@ firejail (0.9.73) baseline; urgency=low | |||
5 | * feature: a random hostname is assigned to each sandbox unless | 5 | * feature: a random hostname is assigned to each sandbox unless |
6 | overwritten using --hostname command | 6 | overwritten using --hostname command |
7 | * feature: add IPv6 support for --net.print option | 7 | * feature: add IPv6 support for --net.print option |
8 | * feature: QUIC (HTTP/3) support in --nettrace | ||
8 | * modif: Stop forwarding own double-dash to the shell (#5599 #5600) | 9 | * modif: Stop forwarding own double-dash to the shell (#5599 #5600) |
9 | * modif: Prevent sandbox name (--name=) and host name (--hostname=) | 10 | * modif: Prevent sandbox name (--name=) and host name (--hostname=) |
10 | from containing only digits (#5578 #5741) | 11 | from containing only digits (#5578 #5741) |
diff --git a/src/fnettrace/main.c b/src/fnettrace/main.c index 178ac3631..3eb7a13f5 100644 --- a/src/fnettrace/main.c +++ b/src/fnettrace/main.c | |||
@@ -351,8 +351,10 @@ static void hnode_print(unsigned bw) { | |||
351 | bwline = print_bw(ptr->bytes / bwunit); | 351 | bwline = print_bw(ptr->bytes / bwunit); |
352 | 352 | ||
353 | const char *protocol = NULL; | 353 | const char *protocol = NULL; |
354 | if (ptr->port_src == 443) | 354 | if (ptr->port_src == 443 && ptr->protocol == 0x06) // TCP |
355 | protocol = "(TLS)"; | 355 | protocol = "(TLS)"; |
356 | else if (ptr->port_src == 443 && ptr->protocol == 0x11) // UDP | ||
357 | protocol = "(QUIC)"; | ||
356 | else if (ptr->port_src == 53) | 358 | else if (ptr->port_src == 53) |
357 | protocol = "(DNS)"; | 359 | protocol = "(DNS)"; |
358 | else if (ptr->port_src == 853) { | 360 | else if (ptr->port_src == 853) { |
@@ -367,6 +369,8 @@ static void hnode_print(unsigned bw) { | |||
367 | ; | 369 | ; |
368 | else if (ptr->protocol == 0x11) | 370 | else if (ptr->protocol == 0x11) |
369 | protocol = "(UDP)"; | 371 | protocol = "(UDP)"; |
372 | else if (ptr->protocol == 0x06) | ||
373 | protocol = "(TCP)"; | ||
370 | 374 | ||
371 | if (protocol == NULL) | 375 | if (protocol == NULL) |
372 | protocol = ""; | 376 | protocol = ""; |