====== read packets ====== rdpcap(filename, count=-1 ) reads a pcap file and returns the list of read packets. If count is positive, only the first count packets are read. rdpcap("ike.cap") rdpcap("ike.cap", count=10) ====== write packets ====== wrpcap(filename, pkt, linktype=None) Write a packet or list of packets to a pcap file. linktype can be used to force the link type value written into the file. wrpcap("my.pcap", packet-list) ====== Quelle ====== * www.secdev.org/projects/scapy/files/scapydoc.pdf - S. 32 * https://stackoverflow.com/questions/33740583/writing-to-a-pcap-with-scapy * https://stackoverflow.com/questions/7574092/python-scapy-wrpcap-how-do-you-append-packets-to-a-pcap-file