class PicklablePacket:
    """A container for scapy packets that can be pickled (in contrast
    to scapy packets themselves)."""

def __init__(self, pkt):
    self.contents = bytes(pkt)
self.time = pkt.time

def __call__(self):
    """Get the original scapy packet."""
pkt = scapy.Ether(self.contents)
pkt.time = self.time
How to pickle a scapy packet?