def test():
    with open('data/http.pcap', 'rb') as f:
        pcap = dpkt.pcap.Reader(f)
        print_packets(pcap)
Open up a test pcap file and print out the packets
dataset/ETHPy150Open kbandla/dpkt/examples/print_packets.py/test