Commit Graph

31 Commits

Author SHA1 Message Date
Anders Broman 6c466a1437 Display AVP:s of Dimater type Unsigned32 as such even when they have "value translation".
svn path=/trunk/; revision=16510
2005-11-16 07:21:48 +00:00
Ronnie Sahlberg c1b84ccd59 remove some strcpy() and strcat()
remove two buffers from the stack.


svn path=/trunk/; revision=16229
2005-10-15 22:57:27 +00:00
Ronnie Sahlberg fd29897666 get rid of some strcpy() and some compiler warnings
svn path=/trunk/; revision=16212
2005-10-13 05:07:28 +00:00
Ronnie Sahlberg 14ecc1ddd5 remove some strcpy() from diameter and remove some arrays from the stack
svn path=/trunk/; revision=16209
2005-10-13 03:10:28 +00:00
Anders Broman 542a623f34 Get application ID from the packet.
svn path=/trunk/; revision=15783
2005-09-13 16:56:28 +00:00
Ronnie Sahlberg e6dd3c8b22 more sprintf updates
svn path=/trunk/; revision=15469
2005-08-20 13:02:08 +00:00
Ulf Lamping 994496a184 several times replacing:
sprintf -> g_snprintf
snprintf -> g_snprintf
vsnprintf -> g_vsnprintf
strdup -> g_strdup

svn path=/trunk/; revision=15412
2005-08-18 19:31:15 +00:00
Ulf Lamping 0dc9fb3d4a various code cleanup:
-use g_snprintf instead of sprintf and snprintf
-use g_strdup_printf where appropriate
-remove #include "snprintf.h" (as only g_snprintf should be used)
-replace some more alloc/realloc/calloc/free with their glib pendants

svn path=/trunk/; revision=15264
2005-08-08 18:50:39 +00:00
Guy Harris 8a44823f03 Constify some variables and arguments to squelch compiler warnings.
svn path=/trunk/; revision=15137
2005-07-29 03:48:03 +00:00
Jörg Mayer 34493e8f9e char -> const char warning fixes
svn path=/trunk/; revision=15126
2005-07-28 07:53:38 +00:00
Guy Harris 554f620001 Constify to remove a bunch of warnings. Add some casts to squelch
(presumably-)harmless-but-otherwise-unremovable const-to-nonconst
warnings.

In the TACACS dissector, clean up the variables used in option parsing
to avoid some const-to-nonconst warnings.

Clean up some white space.

svn path=/trunk/; revision=15043
2005-07-24 19:01:28 +00:00
Ulf Lamping 10ffd2da48 packet-diameter.c(856) : warning C4090: 'function' : different 'const' qualifiers
packet-diameter.c(856) : warning C4024: 'addVendor' : different types for formal and actual parameter 2
packet-diameter.c(857) : warning C4090: 'function' : different 'const' qualifiers
packet-diameter.c(857) : warning C4024: 'addVendor' : different types for formal and actual parameter 3
packet-diameter.c(863) : warning C4090: 'function' : different 'const' qualifiers
packet-diameter.c(863) : warning C4024: 'addCommand' : different types for formal and actual parameter 2

svn path=/trunk/; revision=14778
2005-06-26 11:10:26 +00:00
Ronnie Sahlberg d8dcc36d93 from anders b
diameter updates to add 3gpp vendor avp


svn path=/trunk/; revision=14189
2005-04-26 08:15:45 +00:00
Guy Harris f63c9301b2 No, the code is the numerical value, not the vendor ID.
svn path=/trunk/; revision=13618
2005-03-06 03:38:17 +00:00
Guy Harris c9826f64d8 From Ben Turner: fix an addVendor() call.
svn path=/trunk/; revision=13617
2005-03-06 03:28:41 +00:00
Anders Broman 7cb9e36324 Present diameter time as UTC time rather than the local time zone of the machine running Ethereal is at.
Insert a comment that time before 1970 will not be presented properly.

svn path=/trunk/; revision=13573
2005-03-02 20:16:18 +00:00
Anders Broman 3167213f5d Undo change of return (addVendor(atoi(id), code, name)); as it wasn't correct.
svn path=/trunk/; revision=13553
2005-02-28 20:49:34 +00:00
Anders Broman e18e3db225 Avoid trying to display a time before 00:00:00 UTC, January 1, 1970 as it currently will be displayed wrongly.
svn path=/trunk/; revision=13542
2005-02-27 21:33:32 +00:00
Anders Broman 58c8e8a720 From Ben Turner:
Vendors were not being parsed properly from the XML diameter dictionary.

svn path=/trunk/; revision=13504
2005-02-24 22:35:10 +00:00
Lars Roland ec9ca01616 Move the following files from /trunk to /trunk/epan:
asn1.[ch]
follow.[ch]
ptvcursor.[ch]
reassemble.[ch]
xmlstub.[ch]

fix #include statements accordingly.

svn path=/trunk/; revision=13366
2005-02-09 23:38:00 +00:00
Anders Broman ff755ba49c From Jacques, Olivier: - Fixing enums recognition when an XML dictionary is used (was OK with fixed dictionaries)
svn path=/trunk/; revision=12350
2004-10-19 19:29:08 +00:00
Guy Harris 8995a7ab6b Squelch a compiler warning.
svn path=/trunk/; revision=12343
2004-10-18 17:21:31 +00:00
Gerald Combs d7d9c6be54 From Olivier Jacques: Add #defines to disable XML validation.
svn path=/trunk/; revision=12340
2004-10-18 14:58:32 +00:00
Anders Broman 249ebcbfc1 From: "Jacques, Olivier :
- Added new RFC 3588 header format support (vendor-Id is replaced by
application-Id) and command code has its own separated name space. The
Draft v16 behaviour is maintained (through Preferences menu).
- Added 3GPP IMS Cx/Dx interface decoding (new imscxdx.xml)
- Fixed some issues in dictionary.xml
- Refreshed Diameter applications in embedded AVPs (that do not rely on
XML dictionary)

svn path=/trunk/; revision=12235
2004-10-08 09:35:56 +00:00
Guy Harris 61fa949789 Constify some more stuff.
svn path=/trunk/; revision=12160
2004-09-30 20:33:10 +00:00
Guy Harris 915ebf2ca3 Move the #defines for SMI Network Management Private Enterprise Codes
for organizations to an <epan/sminmpec.h> header, and add in the ones
that were used (without #defines) in the Diameter dissector.

Merge the value_string tables for them from the Diameter and Radius
dissectors into epan/sminmpec.c and merge them.

Use that value_string table in the Diameter and Radius dissectors.

Constify some stuff in the Diameter dissector.

svn path=/trunk/; revision=12159
2004-09-30 20:27:47 +00:00
Guy Harris 7c7c04cc84 From Olivier Jacques:
- Add a configuration option for Diameter version. Currently,
	  the choice is between everything before draft-v16 and RFC3588.
	- Fix diameter-ip-address parsing depending on the Diameter
	  version (and showing decoding errors accordingly).
	- Change registration of Diameter from TCP and SCTP port 1812 to
	  TCP and SCTP port 3868 (this is according to RFC3588, section
	  11.5).

svn path=/trunk/; revision=12121
2004-09-28 17:52:36 +00:00
Guy Harris bbe7f89742 Move prefs.c and prefs.h into the epan subdirectory.
svn path=/trunk/; revision=12115
2004-09-27 22:55:15 +00:00
Ulf Lamping d530bd4e14 Prevent the word "desegmentation" at the GUI, but use reassembling at that places, as we also use "defragmentation" and "reassembling". Use reassembling as the general term for such actions.
I (hopefully) didn't changed any protocol fields or preference file names, but only the GUI labels appearing in the protocol display and the protocol preferences.

Also added a note to the protocol preferences (where appropriate), that you have to enable "Allow subdissectors to reassemble TCP streams" at the corresponding protocol settings for TCP reassembling to take effect.

If you encounter any mistakes I've made here, please let me know...

svn path=/trunk/; revision=11784
2004-08-21 09:02:52 +00:00
Guy Harris 3a583aeb59 From Albert Chin: rename resolv.{ch} to addr_resolv.{ch}, so that an
include of <resolv.h> in any system header file gets the system
<resolv.h> (needed for builds on Tru64 with GTK+ 1.2[.x]).

svn path=/trunk/; revision=11615
2004-08-06 19:57:49 +00:00
Gilbert Ramirez 669db206cb Move dissectors to epan/dissectors directory.
Also move ncp222.py, x11-fields, process-x11-fields.pl,
make-reg-dotc, and make-reg-dotc.py.

Adjust #include lines in files that include packet-*.h
files.

svn path=/trunk/; revision=11410
2004-07-18 18:06:47 +00:00