Wireshark-dev: Re: [Wireshark-dev] Parsing DIAMETER packet: Interpretation ofDATE/TIME and GROU

From: "Anders Broman" <a.broman@xxxxxxxxx>
Date: Sun, 8 Jun 2008 10:25:46 +0200

Hi,

Perhaps you are better off looking at http://www.opendiameter.org/

Regards

Anders

 


Från: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] För Cloud Strife
Skickat: den 7 juni 2008 16:02
Till: Wireshark-dev@xxxxxxxxxxxxx
Ämne: [Wireshark-dev] Parsing DIAMETER packet: Interpretation ofDATE/TIME and GROUPED data format

 

Hi,
I am currently developing a prototype DIAMETER parser but it doesn't have a dictionary nor an XML parser. It's a hard-coded and just check the bytes position to be able to determine the length and the AVPs.  I'm having difficulty in interpreting data formats DATE/TIME and GROUPED. I know that the the DATE/TIME is in NTP and is a 32 bit integer. How would I print (or able to compare it with another) in a human readable.
Another thing is the GROUPED data type. I can only extract AVPs on the first level and store it in a data structure in C ( actually union of integer, array of unsigned char, struct in_addr). How would I extract/store those in the 2nd level and below? I'm not using pointers. I need some advise/suggestions here.
It's kind of hard for me to integrate the diameter libraries in wireshark :(

Thanks in advance for your help.