URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=cd7d159c2ee180be6654a7acbf7c83f902216462
Submitter: Peter Wu (peter@xxxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark
Commits:
cd7d159 by Martin Kacer (kacer.martin@xxxxxxxxx):
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@xxxxxxxxxxxxx>
Reviewed-by: Dario Lombardo <lomato@xxxxxxxxx>
Petri-Dish: Pascal Quantin <pascal.quantin@xxxxxxxxx>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
Actions performed:
from d00dae7 RADIUS: update nomadix dictionary (from FreeRADIUS)
adds cd7d159 json2pcap support added
Summary of changes:
AUTHORS.src | 1 +
doc/tshark.pod | 28 ++-
epan/print.c | 110 ++++++++---
tools/json2pcap/json2pcap.py | 450 ++++++++++++++++++++++++++++++++++++++++++
tshark.c | 70 ++++---
5 files changed, 595 insertions(+), 64 deletions(-)
create mode 100644 tools/json2pcap/json2pcap.py