json2pcap support added
authorMartin Kacer <kacer.martin@gmail.com>
Mon, 13 Feb 2017 08:36:02 +0000 (09:36 +0100)
committerPeter Wu <peter@lekensteyn.nl>
Sat, 25 Feb 2017 19:11:01 +0000 (19:11 +0000)
commitcd7d159c2ee180be6654a7acbf7c83f902216462
tree87d5364749f160aacf42b44397ba19e60152c141
parentd00dae7af9c590a8100e54dba0685271bd8b1165
json2pcap support added

Modified tshark -T json -x output
Added tshark -T jsonraw output
json2pcap.py (can be used for basic packet editing by modifying json)

The modification in tshark -T json -x and new tshark -T jsonraw output
add into  hex-data output in JSON also information on which position
each field is dissected in the original frame, what is the field length,
bitmask (for not byte aligned fields) and type. This information can be
used for latter processing. One use-case is json2pcap script which
assembles the protocol layers back together from upper to lowers layers,
which allows the basic packet modification/editing/rewriting.

Change-Id: Ibf948eb8fc7e3b0b51c12df6c3855f705a9c7925
Reviewed-on: https://code.wireshark.org/review/19990
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
AUTHORS.src
doc/tshark.pod
epan/print.c
tools/json2pcap/json2pcap.py [new file with mode: 0644]
tshark.c