'write packet data (probably to the PCAP writer if present)'

def dump(self, *args, **kw):

    if (len(args) == 3):
        (kw['len'], kw['pkt'], kw['ts']) = args
    elif (len(args) == 2):
        (kw['pkt'], kw['ts']) = args
    elif (len(args) == 1):
        kw['pkt'] = args[0]
    self.out.dump(**kw)
