Wireshark

  • Riverbed Technology
  • WinPcap
the world's foremost network protocol analyzer
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

Wireshark-dev: Re: [Wireshark-dev] Dissector - Read data from file

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


From: Reinhard Speyerer <rspmn@xxxxxxxx>
Date: Tue, 03 Jun 2008 22:58:48 +0200

Hans Glück wrote:
> Hello,
> 
> thanks for all the hints. I looked into the code of text2pcap and this is a wonderful fundament to get my own pcap-creator program started. I have to think about whether I´ll use Java (parsing XML is in Java easier), C (perfect if I´ll implement my new capture file in ws) or Python (but I am not familiar with Python) to write this program.
> Can I parse in Wireshark through XML? I found this: http://wiki.wireshark.org/XML, but I do not think that this is a solution for my parsing problem?
> Regards,
> Chris

Hi Chris,

just use a shell command like
$ for f in /tmp/test*.xml; do od -Ax -tx1 -v $f; done | text2pcap -l 151 - /tmp/test.pcap
after you have set the payload_proto of USER DLT 4 (= 151) via Preferences -> Protocols
-> DLT User to xml and check whether the result in Wireshark suits your XML parsing
requirements.

Regards,
Reinhard


  • References:
    • Re: [Wireshark-dev] Dissector - Read data from file
      • From: Hans Glück
  • Prev by Date: [Wireshark-dev] Anyone using FP dissector with K12/K15 ?
  • Next by Date: Re: [Wireshark-dev] Calea packet dissection in wireshark
  • Previous by thread: Re: [Wireshark-dev] Dissector - Read data from file
  • Next by thread: Re: [Wireshark-dev] *** No rule to make target `inet_pton.lo', needed by `libwireshark.la'. Stop.
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation