Skip to content

Commit

Permalink
adding the truncated dns pcap
Browse files Browse the repository at this point in the history
  • Loading branch information
brifordwylie committed Dec 22, 2020
1 parent 4a0106c commit 2a8a822
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file added examples/data/truncated_dns.pcap
Binary file not shown.
2 changes: 1 addition & 1 deletion examples/print_dns_truncated.py
Expand Up @@ -75,7 +75,7 @@ def print_packets(pcap):

def test():
"""Open up a test pcap file and print out the packets"""
with open('/Users/briford/data/pcaps/dpkt_test/test.pcap', 'rb') as f:
with open('data/truncated_dns.pcap', 'rb') as f:
pcap = dpkt.pcap.Reader(f)
print_packets(pcap)

Expand Down

0 comments on commit 2a8a822

Please sign in to comment.