Wireshark mailing list archives
Re: WiresharkXML.py
From: Alexis La Goutte <alexis.lagoutte () gmail com>
Date: Wed, 8 Oct 2014 19:03:44 +0200
Hi Christina, If i remenber the python binding for Wireshark is obsolete... You need to use tshark or other script.. Regards On Wed, Oct 1, 2014 at 8:40 AM, Christina Obermaier <christina.obermaier () yahoo de> wrote:
Hi, I'm trying to build a Jenkins job which tests if my own dissector is working well. Therefore i decided to use tshark and safe the results in a pdml file, which i want to check with a python script. At the moment i only want to get the name and the value of the single attributes in my pdml file. import WiresharkXML def my_callback(packet): print (packet.get_name()) print (packet.get_value()) print ('test') fh = open('pdml') WiresharkXML.parse_fh(fh, my_callback) But the fist two print statements only produce an empty line. The 'test' word is written for each packet in my pdml file. I hope you can help me Greetings Christina ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- WiresharkXML.py Christina Obermaier (Sep 30)
- Re: WiresharkXML.py Alexis La Goutte (Oct 08)