def parse_splitted_files(filenames, ng = False): print >> printing.http_stream, printing.header() for filename in sorted(filenames): for lite_tcp_session in pcap_lite_sessions(pcap_stream([filename],ports)): if ng: handle_lite_tcp_session_ng(lite_tcp_session) else: handle_lite_tcp_session(lite_tcp_session)
def parse_splitted_files(filenames, ng=False): print >> printing.http_stream, printing.header() for filename in sorted(filenames): for lite_tcp_session in pcap_lite_sessions( pcap_stream([filename], ports)): if ng: handle_lite_tcp_session_ng(lite_tcp_session) else: handle_lite_tcp_session(lite_tcp_session)
def parse_pcap_files(filenames, ng=False): print >> printing.http_stream, printing.header() for lite_tcp_session in pcap_lite_sessions(pcap_stream(filenames, ports)): if ng: handle_lite_tcp_session_ng(lite_tcp_session) else: handle_lite_tcp_session(lite_tcp_session)
def parse_pcap_files(filenames, ng = False): print >> printing.http_stream, printing.header() for lite_tcp_session in pcap_lite_sessions(pcap_stream(filenames,ports)): if ng: handle_lite_tcp_session_ng(lite_tcp_session) else: handle_lite_tcp_session(lite_tcp_session)