summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorLibor Peltan <libor.peltan@nic.cz>2024-02-08 18:22:32 +0100
committerDaniel Salzman <daniel.salzman@nic.cz>2024-05-07 07:52:29 +0200
commitfdad47e267c17f2840f8b5d38b1ffcf0ba7d3ae7 (patch)
treee7e81444ac794fe2c10ce156156bef56b2472f84 /python
parentlibknot/quic: code moved (diff)
downloadknot-fdad47e267c17f2840f8b5d38b1ffcf0ba7d3ae7.tar.xz
knot-fdad47e267c17f2840f8b5d38b1ffcf0ba7d3ae7.zip
implemented DoT for queries and XFR
Diffstat (limited to 'python')
-rw-r--r--python/libknot/libknot/probe.py10
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