资 源 简 介
Purpose of this project is to generate mscgen-compatible (http://www.mcternan.me.uk/mscgen/) files based on pcap files.
It depends on tshark (http://www.wireshark.org/) and mscgen if you want to draw the message sequence chart.
How does it work?
tshark output is read line by line. A simple regex is applied on every line. Tshark gives a good one-line summary of packet, hence pcap2msc uses it to be written on the arrow standing for an IP packet.
Why Python?
No real rationale, but a clean and easy to learn language.
How do I use it?
Got avses-tosip.cap from pcapr (http://pcapr.net/home).
$ pcap2msc ./avses-tosip.cap sip | mscgen -T png -o avses-tosip.png
This generates PNG sequence chart from cap file. pcap2msc uses tshark behind the scenes.
What mscgen format looks like?
msc { u0[label="148.147.33.67"],u1[label="148.147.33.5"],u2[label=