Ethereal-dev: SV: [Ethereal-dev] diameter vendor patch

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Anders Broman" <a.broman@xxxxxxxxx>
Date: Thu, 24 Feb 2005 23:37:32 +0100
Checked in.
Best regards
Anders

Hello,

Whilst using ethereal to analyse diameter packets, I noticed vendors
were not being parsed properly from the XML diameter dictionary. After 
a little hunting through the source, i found the cause:

In epan/dissectors/packet-diameter.c the function to add vendors is declared
as:

  addVendor(int id, gchar *name, gchar *longName) { ... }

However, in the function that parses the XML vendors (xmlParseVendor), the
function is
called as follows (line 639):

  return (addVendor(atoi(code), id, name));

This should be:

  return (addVendor(atoi(id), code, name));

I attached a small patch for this.

Best regards,

Ben

-- 
Ben Turner (Consultant)
SIEMENS - IC MN D SU
tel: +32 14 252326

I programmed my home computer,
beamed myself into the future.