def parse_live(): try: do_parse("device") finally: cleanups.cleanup()
def parse_pcap(): try: do_parse("file") finally: cleanups.cleanup()
def signal_handler(signal, frame): print("Canceled, stopping....", file=sys.stderr) cleanups.cleanup() sys.exit(0)
def parse_live(): try: parse_("device") finally: cleanups.cleanup()
def parse_pcap(): try: parse_("file") finally: cleanups.cleanup()