Commit Graph

43 Commits

Author SHA1 Message Date
Anders Broman 996d4db495 Ethereal->Wireshark
svn path=/trunk/; revision=18234
2006-05-28 19:49:07 +00:00
Anders Broman 1814821adc From Martin Mathieson:
- Many DCT2000 protocols can be embedded within an IP primitive 
message.  Add a heuristic to see if we can find the protocol payload 
within in IP primitive message, and look for an ethereal dissector 
matching the DCT2000 protocol name (this is useful for simple protocol 
testing where no physical links are involved)
- Make some more of these protocols (diameter, http, mgcp) findable by name
- Adds protocol 'variant' number to stub and dissector
- Break the duplicated writing of the stub header out into a separate 
function

svn path=/trunk/; revision=18212
2006-05-23 05:48:00 +00:00
Ronnie Sahlberg feab79e328 change a whole bunch of ethereal into wireshark
svn path=/trunk/; revision=18196
2006-05-21 04:49:01 +00:00
Anders Broman 5b69723fdc dissect_diameter_tcp should be static void
svn path=/trunk/; revision=18166
2006-05-15 20:22:24 +00:00
Anders Broman ea024eb4ad From Martin Mathieson:
Some cosmetic changes:
- when working out the application id description to show in the info 
column, also consider vendor application identifiers
- make sure application ids and command codes are always shown as 
decimal numbers
- a little whitespace tidyup

svn path=/trunk/; revision=17684
2006-03-20 19:46:04 +00:00
Anders Broman 522757cae0 from Martim Mattieson:
This small patch will cause the current AVP dictionary to be freed and 
repopulated when relevant preferences have changed.

svn path=/trunk/; revision=17635
2006-03-15 18:55:12 +00:00
Anders Broman c6a21a1d14 From Martin Mathieson
>>>This patch:
>>>- makes it possible to turn off use of the XML AVP dictionary (which 
>>>relies upon the XML lib being installed).  A failed load results in 3 
>>>annoying dialogs popping up the first time a diameter packet is read. 
>>>Default is previous behaviour.

svn path=/trunk/; revision=17628
2006-03-15 06:16:12 +00:00
Guy Harris b13f6dcbd3 Use the new "proto_tree_add_*_format_value" routines.
svn path=/trunk/; revision=17316
2006-02-16 11:43:38 +00:00
Jörg Mayer a052b3a98b packet-bgp.c: Fix incorrect use of g_snprintf return value
mp_addr_to_str was unnecessary 'complex' - simplified it
packet-dns.c: Fix incorrect use of g_snprintf return value
packet-dcm.c: Fix incorrect use of g_snprintf return value
        Someone who understands the protocol should look at the
        "vr, tr might be used uninitialized..." warning.
packet-x11.c: Fix incorrect use of g_snprintf return value
packet-kerberos.c: Fix incorrect use of g_snprintf return value
        Someone should take a look at the
        "longjump might clobber ..." messages
packet-diameter.c: Fix incorrect use of g_snprintf return value
        Get rid of unsigned < 0 check
packet-pgm.c: Fix incorrect use of g_snprintf return value
packet-nbns.c: Fix incorrect use of g_snprintf return value
packet-winsrepl.c: Collateral damage to packet-nbns.c fix
packet-netbios.c: Collateral damage to packet-nbns.c fix
packet-netbios.h: Collateral damage to packet-nbns.c fix
packet-kerberos.c: Collateral damage to packet-nbns.c fix
packet-nbipx.c: Collateral damage to packet-nbns.c fix


svn path=/trunk/; revision=17065
2006-01-20 21:18:18 +00:00
Anders Broman 496e4be980 Handle <application id="4294967295" name="Relay"/>
svn path=/trunk/; revision=16988
2006-01-10 19:57:15 +00:00
Jörg Mayer f9a57f08d1 Bill Meier:
Spelling fixes.

svn path=/trunk/; revision=16956
2006-01-05 13:01:08 +00:00
Anders Broman 15e0ccf887 Use VendorID from sminmpec.
svn path=/trunk/; revision=16552
2005-11-19 15:59:30 +00:00
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