Commit Graph

12756 Commits

Author SHA1 Message Date
Ulf Lamping 617c848092 cleanup old files before generating xyzzy target (it drove me almost crazy to find out the right way to build this target correctly, so be a bit more "automatically" the next time)
svn path=/trunk/; revision=13008
2005-01-12 21:38:09 +00:00
Ulf Lamping 86bd4b30c5 performance improvement:
In the past: to prevent duplicate protocol names (and alike), each time a new protocol was registered, the list of protocols were iterated and the name compared with each existing name using strcasecmp, which is slow as we have >500 protocols right now.

Now: the protocol name to check against duplicates is first converted into a hashvalue and then only this value is checked and stored in a hashtable. This way the string to check for, has to be converted/compared only a single time!

svn path=/trunk/; revision=13007
2005-01-12 21:31:22 +00:00
Ulf Lamping aa139758f9 add new function dissect_dcerpc_uuid_t and let dissect_ndr_uuid_t call it
svn path=/trunk/; revision=13006
2005-01-12 21:20:50 +00:00
Ulf Lamping 24c519ca86 clarify text and describe libethereal.def
Could someone have a look at this, as I'm not 100% sure if it's correct.

svn path=/trunk/; revision=13005
2005-01-12 21:16:53 +00:00
Anders Broman e44fae7226 From Tomer Shani :register_dissector call
svn path=/trunk/; revision=13004
2005-01-12 06:00:31 +00:00
Guy Harris 7f796b174f Improve the error reporting.
Remove a duplicate #include, and shuffle the includes a bit to put OS
includes before other includes.

svn path=/trunk/; revision=13003
2005-01-11 00:13:42 +00:00
Tomas Kukosa e136ee34a4 Add a "hex_str_to_bytes()" routine
svn path=/trunk/; revision=13002
2005-01-10 09:06:07 +00:00
Lars Roland 2b88200a3a One more patch for mate:
- renamed analyze_frame() into mate_analyze_frame().
- prepare mate to be statically linked
- use report_open_failure() , report_read_failure() and
report_failure() in case there's an error while loading the config
- some cleanup in mate_util.c
- some fixes and cleanup in examples and matelib

svn path=/trunk/; revision=13001
2005-01-10 02:37:19 +00:00
Lars Roland 2f5e81cccc From Luis Ontanon:
Add another piece of code that got lost to the cnf file of the new h225 dissector.

svn path=/trunk/; revision=13000
2005-01-10 02:19:11 +00:00
Guy Harris 7b49d981ae From Deepak Jain: L2TP v3 (draft 15) support.
Add VENDOR_IETF to <epan/sminmpec.h>, and add an entry for it to
sminmpec_values[], so that the L2TP dissector can use them rather than
defining its own copy of the private enterprise number values and table
- and make it do so.

svn path=/trunk/; revision=12999
2005-01-09 21:42:39 +00:00
Guy Harris d8c21fe77e Properly declare "dissect_h245()" and "dissect_h245_h245()" as returning
nothing.

svn path=/trunk/; revision=12998
2005-01-09 00:01:55 +00:00
Guy Harris cbddfd0793 From Luis Ontanon: if new ett values are registered after the
tree_is_expanded array is initially allocated, grow the array

svn path=/trunk/; revision=12997
2005-01-08 23:43:29 +00:00
Guy Harris 54a2df6352 Get rid of some of the boilerplate comments from the sample dissector,
and de-boilerplate another part of the comment.

Fix a test of "octet_aligned" that was setting it to false rather than
testing whether it was false.

svn path=/trunk/; revision=12996
2005-01-08 20:54:23 +00:00
Lars Roland 5b994efbbe Fix svn file properties
svn path=/trunk/; revision=12995
2005-01-08 19:21:30 +00:00
Anders Broman d787b13c7c Reinsert dissection of h450 messages
svn path=/trunk/; revision=12994
2005-01-08 16:38:13 +00:00
Anders Broman 45aa6d1949 Add a dissector for RTP payload AMR RFC 3267
svn path=/trunk/; revision=12993
2005-01-08 15:49:37 +00:00
Anders Broman 5163475742 Generate "conversations" code correctly, adaptions to changes in asn2eth generator.
Regenerate with latest asn2eth compiler.

svn path=/trunk/; revision=12992
2005-01-08 14:42:12 +00:00
Anders Broman 2b6a0d1597 Generate "conversations" code correctly, adaptions to changes in asn2eth generator.
svn path=/trunk/; revision=12991
2005-01-08 14:39:53 +00:00
Anders Broman a4863006ca Fixa a typo
svn path=/trunk/; revision=12990
2005-01-08 14:36:10 +00:00
Guy Harris 6acf9106dc Fix the signature of proto_register_subtree_array().
svn path=/trunk/; revision=12989
2005-01-07 22:20:28 +00:00
Guy Harris 857aceb2d8 Fix the signature of proto_register_subtree_array().
svn path=/trunk/; revision=12988
2005-01-07 22:19:44 +00:00
Guy Harris d91588af2d Use BASE_NONE, not FT_NONE, for the "base" value of an FT_STRING field.
svn path=/trunk/; revision=12987
2005-01-07 19:34:36 +00:00
Guy Harris 4d47f84a1f Get rid of duplicate "element signature" field.
Clean up indentation.

The signatures are 4-byte strings - treat them as such.

Don't hide fields - dissectors should show what all bytes, other than
perhaps padding bytes, are.

Don't use the tvb_format_text-ified versions of strings as the value -
Ethereal already deals with non-printable characters when displaying
them.

When creating a subset tvbuff that runs to the end of the parent, use -1
as the length, don't calculate the length ourselves.

Use "tvb_reported_length()", not "tvb_length()", in loops that parse the
entire packet.

svn path=/trunk/; revision=12986
2005-01-07 19:29:54 +00:00
Lars Roland 603c9edd83 From Luis Ontanon:
A new patch for mate

- changed the default config file name to "" 
- avoid trying to confgure mate when the config filename is ""
- add filename and line to config errors, that way one can actually
find errors in config files
- teady up the config error strings ( made them uniform )
- fixed a crash when missing index AVPs (Name,For,On etc) in config AVPLS
- make sure we do not delete the config AVPs and AVPLs to avoid
references to unsubscribed strings been left arround
- fixed the len on LoALs 
- changed the way loal_from_file reports an error.
- matelib/sip.mate was missing the Name in a PduDef  (from Julien Leproust)
- matelib/h225_ras had a wrong field name (from Julien Leproust)

At this point mate is silent when it's not expressely configured by the user.

From me:
reduce compiler noise on MSVC

svn path=/trunk/; revision=12985
2005-01-07 18:07:18 +00:00
Gerald Combs 02520bcf9c Define data_handle at startup.
svn path=/trunk/; revision=12984
2005-01-07 15:08:24 +00:00
Guy Harris 3defa3be20 From Thomas Boehne: fix a call to use errmsg_len rather than sizeof
errmsg - errmsg is a pointer, so sizeof errmsg is the size of the
pointer, not the size of what it points to.

svn path=/trunk/; revision=12983
2005-01-07 13:33:21 +00:00
Guy Harris 8860bfa6ef From Mike Duigou: JXTA protocol support.
svn path=/trunk/; revision=12982
2005-01-07 12:58:43 +00:00
Guy Harris 4c45795dab Constify a pointer, so that the array of pointers to ett_ values can be
const, although the pointers can't point to consts (as the values get
filled in as they're registered).

svn path=/trunk/; revision=12981
2005-01-07 12:56:21 +00:00
Guy Harris 3662eb81fe Doxygen cleanups, from Mike Duigou.
svn path=/trunk/; revision=12980
2005-01-07 12:00:01 +00:00
Guy Harris 3d06f85155 Grammar and typo fix from Mike Duigou.
svn path=/trunk/; revision=12979
2005-01-07 11:59:05 +00:00
Guy Harris 88cf75d47f Include <epan/address.h>, as per a suggestion by Thomas Boehne - not all
dissectors using the address resolution routines need to know about the
"address" structure, so not all of them would include <epan/address.h>
themselves.

svn path=/trunk/; revision=12978
2005-01-07 11:56:00 +00:00
Guy Harris b2aee79a35 From Carlos Pignataro:
o BGPv4 SAFI-Specific Attribute support
	  - draft-kapoor-nalawade-idr-bgp-ssa-00.txt
	o Tunnel SAFI support for BGP
	  - draft-nalawade-kapoor-tunnel-safi-02.txt
	o Small length fix

svn path=/trunk/; revision=12977
2005-01-07 11:43:05 +00:00
Guy Harris f8b7622fd5 Put back the declaration of hostspath on Windows.
svn path=/trunk/; revision=12976
2005-01-07 11:22:18 +00:00
Guy Harris fe833fc123 From Chris Maynard: free strings fetched with "tvb_get_string()" when
we're done with them.

svn path=/trunk/; revision=12975
2005-01-07 10:49:05 +00:00
Guy Harris a419637209 From Chris Maynard: free strings fetched with "tvb_fake_unicode()" when
we're done with them.

svn path=/trunk/; revision=12974
2005-01-07 10:44:44 +00:00
Guy Harris 0667d869b2 From Chris Maynard: free mallocated strings when we're done with them.
(There's still the risk of a leak if we throw an exception before we
free the string.)

Clean up indentation.

svn path=/trunk/; revision=12973
2005-01-07 10:39:51 +00:00
Guy Harris 081f202ae3 Move the open and close of the hosts file into "read_hosts_file()".
On Windows, if we don't get the SYSTEMROOT environment variable, try
various locations where the hosts file is known to exist.

svn path=/trunk/; revision=12972
2005-01-07 10:20:17 +00:00
Guy Harris 87919fc4ef From Chris Maynard: free strings fetched with "tvb_get_string()".
Use "format_text()" or "tvb_format_text()" with the %s format, to handle
non-printable characters.

When uncompressing data into a new tvbuff, add it to the list of data
sources as we do elsewhere.

When putting items into the protocol tree from an uncompressed tvbuff,
use the offset into the tvbuff and the length of the item.

Fetch string lengths into a variable and use the variable rather than
repeatedly fetching the length from a tvbuff.

Use -1 rather than tvb_length_remaining() when putting a "to the end of
the tvbuff" item into the protocol tree.

Use "proto_tree_add_item()" to put items into the tree, rather than
"proto_tree_add_xxx" calls with a "tvb_get_yyy" call as the argument.

If we've fetched a value into a variable, don't re-fetch it in
"proto_tree_add_xxx" calls.

svn path=/trunk/; revision=12971
2005-01-07 10:09:34 +00:00
Lars Roland 0a771e1c65 Check return value of getenv().
It can return NULL, which would lead here to strcpy(hostspath, NULL);
*Very* bad.

replace g_malloc(), strcpy() and strcat() with one single g_strconcat(). 

svn path=/trunk/; revision=12970
2005-01-07 03:19:39 +00:00
Lars Roland ccf44f7fb1 From Luis Ontanon:
Fix some MSVC warnings in MATE

svn path=/trunk/; revision=12969
2005-01-06 23:21:10 +00:00
Lars Roland b7642931ad From Luis Ontanon:
Another patch for mate:
 - adds a "GopTree={TRUE|FALSE}" attribute to Gogs
 - changes "ShowPduTree={NoTree|PduTree|FrameTree}"
 - adds "implicit stop" to Gops with no Stop declared

svn path=/trunk/; revision=12968
2005-01-06 12:39:54 +00:00
Guy Harris 50708fac46 Add a dissector to handle IEEE 802a's OUI Extended Ethertype; dissectors
can register an OUI, and PIDs for that OUI, in the same fashion that
they can do so for SNAP (after which the 802a OUI Extended Ethertype is
clearly modeled).

svn path=/trunk/; revision=12967
2005-01-06 08:37:43 +00:00
Guy Harris 586da2f14e Handle the case where nobody registers any OUIs and oui_info_table is
thus null.

svn path=/trunk/; revision=12966
2005-01-06 08:21:25 +00:00
Guy Harris 9f3573430b From Chris Maynard: catch a case where a string allocated with
"tvb_get_string()" wasn't freed.  (It appears there can also be leaks if
an exception is thrown while dissecting.)

svn path=/trunk/; revision=12965
2005-01-05 11:00:11 +00:00
Guy Harris cf347c9f8b Use tvb_format_text() with %s format items, to handle non-printable
characters.

Clean up indentation.

svn path=/trunk/; revision=12964
2005-01-05 10:55:00 +00:00
Guy Harris 77762e2ddc From Chris Maynard: don't extract strings with "tvb_get_string()" if
we're not going to use them, and free them when we're done with them.

Clean up white space.

svn path=/trunk/; revision=12963
2005-01-05 10:51:05 +00:00
Guy Harris 45d7435bd3 From Chris Maynard: free strings allocated by "tvb_get_string()" after
we're done with them.

svn path=/trunk/; revision=12962
2005-01-05 10:45:43 +00:00
Guy Harris de220d047d From Chris Maynard: free strings allocated by "tvb_fake_unicode()" after
we're done with them.

svn path=/trunk/; revision=12961
2005-01-05 10:42:26 +00:00
Guy Harris 652b22c0b9 From Chris Maynard: free mallocated data.
Don't assign the result of a routine that mallocates data to a const
pointer - that forces us to cast the pointer when freeing the data.

svn path=/trunk/; revision=12960
2005-01-05 10:38:50 +00:00
Guy Harris 6a8b0221f4 From Chris Maynard: free strings even if we don't put them into the
protocol tree.

svn path=/trunk/; revision=12959
2005-01-05 10:27:22 +00:00