factor out pcap file writer code and fix endian support
commitcabf4988bbe083c4c326dcb1da83faa7f4336669
authorrofl0r <retnyg@gmx.net>
Mon, 27 Aug 2018 04:30:35 +0000 (27 05:30 +0100)
committerrofl0r <retnyg@gmx.net>
Mon, 27 Aug 2018 04:30:35 +0000 (27 05:30 +0100)
tree882c24ab2d90f3eb5aad6f313b8bfb587240cf20
parent7dc57c05f38c8a76f30f9505f63a82cfe9ab63bf
factor out pcap file writer code and fix endian support

the existing code wrote a hardcoded little-endian fileheader, but
the packet header in host endianess.
macgeiger.c
pcapfile.c [new file with mode: 0644]
pcapfile.h [new file with mode: 0644]