dumpcap: enable capture of pcapng from pipe
authorJames Ko <jck@exegin.com>
Wed, 22 Nov 2017 19:05:48 +0000 (11:05 -0800)
committerAnders Broman <a.broman58@gmail.com>
Fri, 1 Dec 2017 08:18:16 +0000 (08:18 +0000)
commit8606062cb38373f7e594bbaa812fb19719d7e6ef
tree3a1ed60dab5f56fde65bdcea268ef321b248753e
parent1683dd11e76f01760665ab15cd9204fa19923238
dumpcap: enable capture of pcapng from pipe

Reads pcapng blocks from a pipe.  Section header blocks are parsed for
endianess.  All other blocks only have the general block header parsed
for type and length, and then endianess converted if necessary.
Outputs all blocks using the original endianess format so none of the
other block types or options require parsing.

Change-Id: I2f4f0175013d8fc2cda42a63e7deacad537951e3
Bug: 11370
Reviewed-on: https://code.wireshark.org/review/24536
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
dumpcap.c
wiretap/pcapng.h
writecap/pcapio.c
writecap/pcapio.h