aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fnettrace/hostnames.c4
-rw-r--r--src/fnettrace/main.c6
2 files changed, 9 insertions, 1 deletions
diff --git a/src/fnettrace/hostnames.c b/src/fnettrace/hostnames.c
index 878a67123..20c83803f 100644
--- a/src/fnettrace/hostnames.c
+++ b/src/fnettrace/hostnames.c
@@ -28,6 +28,10 @@ static char buf[MAXBUF];
28char *retrieve_hostname(uint32_t ip) { 28char *retrieve_hostname(uint32_t ip) {
29 if (geoip_not_found) 29 if (geoip_not_found)
30 return NULL; 30 return NULL;
31 if (access("/usr/bin/geoiplookup", X_OK)) {
32 geoip_not_found = 1;
33 return NULL;
34 }
31 geoip_calls++; 35 geoip_calls++;
32 36
33 char *rv = NULL; 37 char *rv = NULL;
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 = "";