if len(chunks) == 3:
# For a "query" entry's clientip:clientport:id field.
- id = int(chunks[2], 16)
- words[i] += f" (id {id})"
+ packet_id = int(chunks[2], 16)
+ words[i] += f" (id {packet_id})"
def decode_ip(words : list, i : int):
r"""
"""
qt = words[i]
- words[i] = query_type.get(int(qt), qt)
+ words[i] = query_type_name.get(int(qt), qt)
def handle_dnscache_log(line : str) -> Optional[str]:
r"""