put pcap / pcapng functionallity to separat functions
added support for pcapng header checks