def __init__(self, iface=None, name=None): Sink.__init__(self, name=name) if iface == None: iface = conf.iface self.iface = iface
def __init__(self, fname, name=None): Sink.__init__(self, name=name) self.f = PcapWriter(fname)