'dump raw packet data to an output
override this if you want a format other than pcap'

def dump(self, pkt=None, **kw):

    pktdata = str(pkt)
    pktlen = kw.get('len', len(pktdata))
    if self.pcapwriter:
        self.pcapwriter.write(pktlen, pktdata, kw['ts'])
    else:
        self.log(util.hexPlusAscii(str(pkt)), level=logging.DEBUG)
