Wireshark-dev: Re: [Wireshark-dev] Parsing DIAMETER packet: Interpretation ofDATE/TIME and GROU
From: "Anders Broman" <[email protected]>
Date: Sun, 8 Jun 2008 10:25:46 +0200


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




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


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.