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

Commit

Permalink
Merge pull request #31 from kyrias/sniffer-drop-bytes
Browse files Browse the repository at this point in the history
input_sniffer: Drop "bytes" key
  • Loading branch information
dmachard authored Jun 10, 2021
2 parents f3f9ee4 + 036dc23 commit 8d92501
Showing 1 changed file with 0 additions and 1 deletion.
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

0 comments on commit 8d92501

Please sign in to comment.