diff options
author | Libor Peltan <libor.peltan@nic.cz> | 2024-02-08 18:22:32 +0100 |
---|---|---|
committer | Daniel Salzman <daniel.salzman@nic.cz> | 2024-05-07 07:52:29 +0200 |
commit | fdad47e267c17f2840f8b5d38b1ffcf0ba7d3ae7 (patch) | |
tree | e7e81444ac794fe2c10ce156156bef56b2472f84 /python | |
parent | libknot/quic: code moved (diff) | |
download | knot-fdad47e267c17f2840f8b5d38b1ffcf0ba7d3ae7.tar.xz knot-fdad47e267c17f2840f8b5d38b1ffcf0ba7d3ae7.zip |
implemented DoT for queries and XFR
Diffstat (limited to 'python')
-rw-r--r-- | python/libknot/libknot/probe.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/python/libknot/libknot/probe.py b/python/libknot/libknot/probe.py index e6f09db3d..37b2cdff3 100644 --- a/python/libknot/libknot/probe.py +++ b/python/libknot/libknot/probe.py @@ -12,9 +12,9 @@ class KnotProbeDataProto(enum.IntEnum): UDP = 0 TCP = 1 - QUIC = 3 - TLS = 4 - HTTPS = 5 + QUIC = 2 + TLS = 3 + HTTPS = 4 class KnotProbeDataDNSHdr(ctypes.BigEndianStructure): @@ -132,8 +132,10 @@ class KnotProbeData(ctypes.Structure): string += COL("UDP", GRN) elif self.proto == KnotProbeDataProto.TCP: string += COL("TCP", RED) - else: + elif self.proto == KnotProbeDataProto.QUIC: string += COL("QUIC", ORG) + else: + string += COL("TLS", YELW) if self.tcp_rtt > 0: string += ", RTT %.2f ms" % (self.tcp_rtt / 1000) string += "\n ID %u, " % self.query_hdr.id |