Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

input_sniffer: Drop "bytes" key #31

Merged
merged 1 commit into from
Jun 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion dnstap_receiver/inputs/input_sniffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ async def watch_buffer(cfg, q, queues_list, stats, cache):
qhash = hashlib.sha1(hash_payload.encode()).hexdigest()
if qhash in cache: tap["latency"] = round(tap["timestamp"]-cache[qhash],3)

tap["bytes"] = dns_payload
tap["length"] = len(dns_payload)

tap["rcode"] = dns_rcodes.RCODES[int.from_bytes(dns_payload[2:4], "big") & 15]
Expand Down