Commit Graph

968 Commits

Author SHA1 Message Date
Anders Broman fad1888a60 Grr.. yet another missing file
svn path=/trunk/; revision=16120
2005-10-04 19:54:50 +00:00
Anders Broman cebc712e26 Add two missing files.
svn path=/trunk/; revision=16119
2005-10-04 19:51:31 +00:00
Anders Broman 5188438889 First check in of yhe h223 plugin, not part of the build script yet.
svn path=/trunk/; revision=16089
2005-10-03 19:00:52 +00:00
Anders Broman 1478e10d0c First check in of yhe h223 plugin, not part of the build script yet.
svn path=/trunk/; revision=16088
2005-10-03 18:59:41 +00:00
Anders Broman 7c65cc96c2 First check in of yhe h223 plugin, not part of the build script yet.
svn path=/trunk/; revision=16087
2005-10-03 18:54:41 +00:00
Anders Broman 90ef999a26 First check in of yhe h223 plugin, not part of the build script yet.
svn path=/trunk/; revision=16086
2005-10-03 18:54:13 +00:00
Anders Broman 7eb52d23f2 First check in of yhe h223 plugin, not part of the build script yet.
svn path=/trunk/; revision=16085
2005-10-03 18:53:52 +00:00
Anders Broman 7a8d4525fa First check in of yhe h223 plugin, not part of the build script yet.
svn path=/trunk/; revision=16084
2005-10-03 18:53:28 +00:00
Anders Broman c8c0804443 First check in of yhe h223 plugin, not part of the build script yet.
svn path=/trunk/; revision=16083
2005-10-03 18:51:54 +00:00
Luis Ontanon 154d8ae087 one step further...
TPG now uses the ignore feature of tvbparse
 named sub_rules can have cardinality

epan/tvbparse.c:
   do not crash on zero cardinality


svn path=/trunk/; revision=16065
2005-10-01 15:19:36 +00:00
Luis Ontanon 99104fe179 match changes to tpg infrastructure.
svn path=/trunk/; revision=16063
2005-10-01 10:41:00 +00:00
Luis Ontanon 5c852882d0 this struct moved to tvbparse.c
svn path=/trunk/; revision=16058
2005-09-29 20:38:41 +00:00
Luis Ontanon 8ee088f9cd at this point this makes a good parser for http headers...
svn path=/trunk/; revision=16053
2005-09-29 20:05:24 +00:00
Ulf Lamping 9a42ef9536 fix #480: Change defaults for all reassembling settings to ON
I've changed all settings I could find to TRUE. It might be reasonable to change some protocol settings back to FALSE, if reassembling fails very often.

svn path=/trunk/; revision=16048
2005-09-28 22:15:38 +00:00
Luis Ontanon 217b73a0b1 update tpg
tvbparse:
     - for tvbparse_until spend the target token even if it isn't included


svn path=/trunk/; revision=16032
2005-09-28 01:06:39 +00:00
Luis Ontanon ec0f669770 A "working" example of TPG...
svn path=/trunk/; revision=16030
2005-09-27 22:06:36 +00:00
Gerald Combs 5135bf2ad5 Don't write before the beginning of a buffer. Add an item to the
release notes.

svn path=/trunk/; revision=16003
2005-09-25 22:19:57 +00:00
Luis Ontanon 0f2e45a47a delete the xml plugin
svn path=/trunk/; revision=15989
2005-09-24 16:37:48 +00:00
Guy Harris d90a1a4ac6 Make the private variables for various lexical analyzers static, so
that we don't have all the lexical analyzers in libethereal share them
(note that they're already static in radius_dict.l, so they weren't
sharing with any other lexical analyzer), and so that OS X 10.3.9's
run-time linker doesn't get upset at finding them defined in libethereal
and the MATE plugin.

Fix up indentation.

svn path=/trunk/; revision=15961
2005-09-22 18:39:25 +00:00
Gerald Combs 65c802eed9 Move a comment to the right place.
svn path=/trunk/; revision=15932
2005-09-21 15:54:09 +00:00
Anders Broman 4148750110 Fix bug #343 Parsing Problem - TransactionResponseAck (MEGACO).
svn path=/trunk/; revision=15902
2005-09-20 18:45:21 +00:00
Guy Harris b7b80d94be Move a pile of protocol-related headers from the top-level source
directory to the epan directory.  Some of them should perhaps ultimately
be moved to epan/dissectors, if they pertain only to stuff exported by a
particular dissector.

Fix Gerald's e-mail address in files we're moving.

svn path=/trunk/; revision=15844
2005-09-17 00:02:31 +00:00
Guy Harris 25c4bc9379 Replace tvb_memcpy() calls that extract IPv4 addresses into a guint32,
and that extract IPv6 addresses into a "struct e_in6_addr", with
tvb_get_ipv4() and tvb_get_ipv6() calls - except for some that we
remove, by using proto_tree_add_item(), rather than replacing.

Have epan/tvbuff.h include epan/ipv6-utils.h, to define "struct
e_in6_addr" (not necessary to declare the tvbuff routines, but including
it there means "struct e_in6_addr" is guaranteed to be defined before
those declarations, so we don't get compiler complaints if we define it
*after* those declarations).

svn path=/trunk/; revision=15758
2005-09-11 21:25:37 +00:00
Luis Ontanon 3dece7b495 Let's migrate the xml dissector...
svn path=/trunk/; revision=15729
2005-09-08 21:18:58 +00:00
Gerald Combs adce5ed6a5 Set "COPYCMD=/Y" and remove the "/Y" from each XCOPY command in order
to fix compilation under Windows NT.  This should fix bug 403.

The changes were made using "find . -name Makefile.nmake | xargs perl
-pi.bak -e 's: /y::i'".  They appear to work under XP, but if anything
broke I blame Larry Wall.

svn path=/trunk/; revision=15710
2005-09-07 13:26:23 +00:00
Gerald Combs 00f087b2f0 In doc/Makefile.nmake, use the "install-deps" target from the root
Makefile.nmake instead of doing our own XCOPYing.  Use the "clean-deps"
target when we're done instead of leaving DLLs lying around.

Normalize the use of underscores vs hyphens in the "clean-deps" target.

svn path=/trunk/; revision=15704
2005-09-06 18:41:25 +00:00
Gerald Combs 621cf58ac5 In RTnet, make sure we don't pass a null handle to call_dissector(). Add
an entry about this to the release notes.  Fixes a recent buildbot crash.

svn path=/trunk/; revision=15673
2005-09-02 19:54:16 +00:00
Ronnie Sahlberg b177f170eb convert to g_snprintf()
also make range_convert_range() return an emem allocated string


svn path=/trunk/; revision=15660
2005-09-01 19:05:00 +00:00
Ulf Lamping 6fec98fa52 fix probable copy and paste error, as the xml dissector should be named xml and not mate
svn path=/trunk/; revision=15646
2005-08-31 23:52:40 +00:00
Anders Broman 18a57250b7 Parlay re-generated with the updated idl2eth generator.
svn path=/trunk/; revision=15644
2005-08-31 20:25:48 +00:00
Ulf Lamping 6f43fbb2f0 EVERYTHING IN THE BUILDBOT IS GOING TO BE RED!!! Sorry!
I've done more than a day to change the timestamp resolution from microseconds to nanoseconds. As I really don't want to loose those changes, I'm going to check in the changes I've done so far. Hopefully someone else will give me a helping hand with the things left ...

What's done: I've changed the timestamp resolution from usec to nsec in almost any place in the sources. I've changed parts of the implementation in nstime.s/.h and a lot of places elsewhere.

As I don't understand the editcap source (well, I'm maybe just too tired right now), hopefully someone else might be able to fix this soon.

Doing all those changes, we get native nanosecond timestamp resolution in Ethereal. After fixing all the remaining issues, I'll take a look how to display this in a convenient way...

As I've also changed the wiretap timestamp resolution from usec to nsec we might want to change the wiretap version number...

svn path=/trunk/; revision=15520
2005-08-24 21:31:56 +00:00
Jörg Mayer 96adc5f4a1 - Include the .h files in their .c files.
- Remove epan/dissectors/packet-sna.h, it isn't used anywhere.

svn path=/trunk/; revision=15475
2005-08-20 16:19:22 +00:00
Ulf Lamping 495eb1b788 snprintf -> g_snprintf
svn path=/trunk/; revision=15398
2005-08-17 23:10:28 +00:00
Gerald Combs 072a1bbfa6 ep_tvb_get_string() -> tvb_get_ephemeral_string().
svn path=/trunk/; revision=15277
2005-08-10 15:58:26 +00:00
Gerald Combs 42137a0331 Make sure we initialize our iap_conv struct _before_ we go digging
into a tvbuff.  This keeps us from leaving junk data behind if we
throw an exception.

svn path=/trunk/; revision=15267
2005-08-09 14:38:11 +00:00
Guy Harris badd56fbfd The "proto" argument to "conversation_get_proto_data()" and
"conversation_add_proto_data()" is supposed to be a protocol ID, as
returned by "proto_register_protocol()".  In addition, there are two
different types of protocol data being attached to a conversation; use
different protocol IDs for them, so we don't misinterpret an
"iap_conversation_t" as a "lmp_conversation_t" or vice versa.

svn path=/trunk/; revision=15265
2005-08-09 00:03:45 +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 46d485405e Make a variable whose value might be trashed by setjmp/longjmp
"volatile" to avoid that.

svn path=/trunk/; revision=15240
2005-08-06 10:29:20 +00:00
Ulf Lamping dc7beaa1cd fix a comment typo
svn path=/trunk/; revision=15233
2005-08-06 00:06:14 +00:00
Guy Harris b945c5bd2a Squelch a warning about "state" being used uninitialized.
svn path=/trunk/; revision=15230
2005-08-05 23:17:15 +00:00
Jörg Mayer 4e1f4b18ab More char -> const char warning fixes.
Removed (very few) casts that only change the warning message
  but don't remove it (with gcc-4).

svn path=/trunk/; revision=15227
2005-08-05 20:59:08 +00:00
Anders Broman 6f022ad796 From Thomas Steffen:
Fix a copy-paste error in the prefs. code

svn path=/trunk/; revision=15225
2005-08-05 19:32:26 +00:00
Guy Harris 3d1dfa4f67 Put in comments explaining why we're removing some generated files with
"make distclean", even though they come with the distribution, and
make the one in plugins/xml/Makefile.nmake match the one in some other
files.

svn path=/trunk/; revision=15214
2005-08-04 22:22:53 +00:00
Gerald Combs c214405e41 Clean up after ourselves so that we pass "distcheck" again.
svn path=/trunk/; revision=15194
2005-08-02 15:25:41 +00:00
Jörg Mayer a0f94c125f Last set of trivial fixes for "no previous declaration" warnings.
svn path=/trunk/; revision=15191
2005-08-02 08:30:33 +00:00
Jörg Mayer 4f693dfae2 Some warning fixes for "no previous declaration"
Remove svn:executable
Add svn:eol-style native
Add svn:keywords Id


svn path=/trunk/; revision=15179
2005-08-02 05:39:45 +00:00
Gerald Combs 6bcaec9a12 Make sure "lemon" exists before we try to use it. This can happen if we
run "make dist" before running "make".

svn path=/trunk/; revision=15167
2005-08-01 21:09:34 +00:00
Luis Ontanon 440cf5767f fix another leak of tap data
svn path=/trunk/; revision=15113
2005-07-27 01:32:31 +00:00
Luis Ontanon 1ca8874eda rename OUT to OUTSIDE and TEXT to CDATA
svn path=/trunk/; revision=15070
2005-07-25 22:02:04 +00:00
Ulf Lamping c64b5cc166 fix a typo: lenght -> length
svn path=/trunk/; revision=15058
2005-07-25 18:03:38 +00:00
Ulf Lamping 156e034ef9 include pinfo_stats_tree.c in the build process, so MSVC compiles again
don't use extern before a function body, that don't make sense

svn path=/trunk/; revision=15048
2005-07-24 21:23:10 +00:00
Gerald Combs 7743ecf3c9 Break out of another infinite loop. Fixes bug 293.
svn path=/trunk/; revision=15047
2005-07-24 21:02:40 +00:00
Guy Harris a58c119084 Register the port range preferences as such, rather than doing our own
range implementation.

Make string preferences "const", to squelch compiler warnings, and make
other variables and arguments "const" to match.

Port numbers are unsigned; display them as such.

svn path=/trunk/; revision=15037
2005-07-24 11:14:13 +00:00
Guy Harris e4f089af58 Add "pinfo_stats_tree.h" to declare "register_pinfo_stat_trees()", and
include it in "pinfo_stats_tree.c" (which defines it) and
"stats_tree_plugin.c" (which refers to it).

Make all the other routines defined in "pinfo_stats_tree.c" static, as
they're not used outside "pinfo_stats_tree.c".

Get rid of declaration of unused "register_http_stat_trees()".

svn path=/trunk/; revision=15035
2005-07-24 10:32:22 +00:00
Luis Ontanon ec941c4a8c http_stats_tree is moving to a new home (packet-http.c)
svn path=/trunk/; revision=15021
2005-07-24 01:39:04 +00:00
Jörg Mayer 30a8557868 More 'char*' -> 'const char*' changes to fix warnings.
svn path=/trunk/; revision=15015
2005-07-23 11:41:25 +00:00
Jörg Mayer cb4ac62893 'char*' -> 'const char*' to fix warnings
svn path=/trunk/; revision=15014
2005-07-23 08:18:44 +00:00
Jörg Mayer b05a2365f8 moduleinfo.h was included twice.
svn path=/trunk/; revision=14916
2005-07-14 08:03:59 +00:00
Jörg Mayer 5b442f2279 After doing "make maintainer-clean", "svn status --no-ignore | grep ^I"
returned quite a list of files. Add them to MAINTAINERCLEANFILES.

Whitespace changes (replace multiple spaces by TABs, in a few cases this
needed to be done at the beginning of Makefile lines.


svn path=/trunk/; revision=14891
2005-07-10 08:04:27 +00:00
Anders Broman 24c91af80f Add application/vnd.wv.csp.xml
svn path=/trunk/; revision=14853
2005-07-05 17:09:28 +00:00
Anders Broman 349d377a75 From Karl Knoebl
Accept SP as separator and * provide info to COL_INFO and some "prettification"
 Cleaned up some comments as well.

svn path=/trunk/; revision=14824
2005-06-30 19:17:46 +00:00
Anders Broman 8f962c973f Regenerated Tango with the latest idl2eth and the tango.idl
svn path=/trunk/; revision=14806
2005-06-28 19:14:14 +00:00
Guy Harris ab797734dd Get rid of the private "my_match_strval()" routine in many dissectors;
add a "match_strval_idx()" routine that does the same thing, and have
"match_strval()" call it.

Make those routines, and "val_to_str()", return a "const" pointer. 
Update dissectors as necessary to squelch compiler warnings produced by
that.

Use "val_to_str()" rather than using "match_strval()" and then, if the
result is null, substituting a specific string.  Clean up some other
"match_strval()"/"val_to_str()" usages.

Add a null pointer check in the NDPS dissector's "attribute_value()"
routine, as it's not clear that "global_attribute_name" won't be null at
that point.

Make some global variables in the AFS4INT dissector local.

Make some routines not used outside the module they're in static.

Make some tables "static const".

Clean up white space.

Fix Gerald's address in some files.

svn path=/trunk/; revision=14786
2005-06-26 19:56:52 +00:00
Guy Harris af85a24619 In generated GIOP dissectors, don't set the Protocol or Info columns, or
create the top-level protocol tree item, until the dissector accepts the
packet as being for it.

"strcmp()" isn't a Boolean; don't treat it as such.

Get rid of trailing white space.

svn path=/trunk/; revision=14750
2005-06-25 18:20:13 +00:00
Guy Harris 447e5cb434 Re-generate the CosNaming, CosEventComm, and Parlay dissectors from the
IDL (and re-insert an earlier bug fix into the CosNaming and
CosEventComm dissectors), and add a new check added to ethereal_gen.py
to the Tango dissector.

svn path=/trunk/; revision=14745
2005-06-24 12:43:32 +00:00
Guy Harris b67f63560e More constification.
svn path=/trunk/; revision=14740
2005-06-24 02:51:01 +00:00
Guy Harris 4af84b3d87 Fix the line endings.
Get rid of include of "snprintf.h", and _U_-ify arguments, as per
changes made to idl2eth.

svn path=/trunk/; revision=14719
2005-06-21 09:17:53 +00:00
Guy Harris dce6d8af64 Get rid of include of "snprintf.h", and _U_-ify arguments, as per
changes made to idl2eth.

svn path=/trunk/; revision=14718
2005-06-21 09:15:26 +00:00
Gerald Combs 3a6c9ab134 Fix a format string vulneratility in the AFP dissector identified
by iDEFENSE.  Add constant format strings to proto_item_append_text()
in a bunch of other dissectors.  Copy a comment from proto.c to proto.h.

svn path=/trunk/; revision=14713
2005-06-20 19:35:58 +00:00
Anders Broman bdde78acb2 Correct a typo
svn path=/trunk/; revision=14631
2005-06-14 21:57:17 +00:00
Luis Ontanon 589035eac0 Add the missing parlay.la to the makefile
svn path=/trunk/; revision=14619
2005-06-13 08:47:24 +00:00
Ulf Lamping 007e7ef69a don't call g_assert_not_reached() for an unknown port type
svn path=/trunk/; revision=14609
2005-06-10 18:30:33 +00:00
Ulf Lamping 3ad08cb0ee raise plugin version from 0.1.0 to 0.1.1 as some bugs were found using fuzz-test.sh since the last Ethereal release
svn path=/trunk/; revision=14603
2005-06-09 20:08:39 +00:00
Anders Broman a447975030 Add dissection of parlay
www.parlay.org

svn path=/trunk/; revision=14597
2005-06-09 17:25:40 +00:00
Anders Broman a811b8f0cc From Paolo Frigo :
A new plugin based on GIOP to recognize Tango packets. TANGO is
an object oriented distributed control system based on CORBA. Tango is
being actively developed as a collaborative effort among the ESRF, Soleil, Elettra and ALBA synchrotron facilities. TANGO is an open source
project hosted by SourceForge.

svn path=/trunk/; revision=14513
2005-06-01 06:46:41 +00:00
Lars Roland 7523f78185 Add a note to config.nmake that it is required to set ENABLE_LIBETHEREAL to get plugin support in Ethereal.
Change Makefile.nmake of the stats_tree plugin to the current scheme.

svn path=/trunk/; revision=14512
2005-05-31 21:34:14 +00:00
Lars Roland 692cd3d6db As suggested by Jaap Keuter:
Add generated files copied by "install-deps" to the
"clean" target

svn path=/trunk/; revision=14509
2005-05-31 20:42:15 +00:00
Ulf Lamping b087ed4b6e add another tvb_ensure_bytes_exist() call
replace dissect_ndr_uuid_t by dissect_dcerpc_uuid_t, as this is the correct function to use and will prevent a problem with access to non existing private_data in dissect_ndr_uuid_t

svn path=/trunk/; revision=14506
2005-05-31 18:27:20 +00:00
Gerald Combs 81a381effd Throw an exception if we're handed a null pointer when we weren't
expecting one.  Fixes bug 200.

svn path=/trunk/; revision=14488
2005-05-30 16:03:24 +00:00
Gerald Combs b133b98f15 Break out of an infinite loop. Fixes bugs 213 & 214.
svn path=/trunk/; revision=14487
2005-05-30 15:51:03 +00:00
Ronnie Sahlberg aaaeb78d58 from Alejandro Vaquero
fox to packet-mgcp.c to make the viop analysis working again.


svn path=/trunk/; revision=14468
2005-05-28 23:05:41 +00:00
Anders Broman 93eee03ae8 From Martin Mathieson:
This 2-liner:
- adds the correct item for localconnectionoptions param
- recognises the message verb "MESG"

svn path=/trunk/; revision=14444
2005-05-26 20:13:42 +00:00
Gerald Combs f6d48e45c8 Make sure we don't loop when we dissect concatenated PDUs. Make some int
values larger in order to keep them from overflowing.

svn path=/trunk/; revision=14422
2005-05-23 21:18:14 +00:00
Luis Ontanon dbe55501fc at this point mate should be working as it did before the grammar
- pdu transports were upside down (ip/tcp vs tcp/ip)
 - the gop to gog index was not being populated
 - tell svn to ignore generated c files


svn path=/trunk/; revision=14416
2005-05-22 00:44:34 +00:00
Luis Ontanon 86a30241db PDU, GOP and GOG should be at the same level not nested
svn path=/trunk/; revision=14415
2005-05-21 15:47:18 +00:00
Luis Ontanon 98fd4f6f3d Fix the Id tag
svn path=/trunk/; revision=14403
2005-05-20 19:43:40 +00:00
Anders Broman d8566c0028 Add some more media types to be dissected as xml.
svn path=/trunk/; revision=14382
2005-05-17 19:13:05 +00:00
Luis Ontanon f1368440e6 - change the state label OUT to OUTSIDE to avoid a name collision with a macro defined in the windows system headers.
svn path=/trunk/; revision=14381
2005-05-17 13:29:36 +00:00
Luis Ontanon bf1117c4c9 Transforms and Pdus are working already, Gops start to work.
svn path=/trunk/; revision=14376
2005-05-16 17:16:52 +00:00
Luis Ontanon e3d0bbc874 let's get things right, we are in plugins/mate not epan/dfilter (from which I stole the nmake rules)
svn path=/trunk/; revision=14375
2005-05-16 15:10:50 +00:00
Luis Ontanon d6fa558b5f Forgot this one in the last checkin!
svn path=/trunk/; revision=14374
2005-05-16 14:59:14 +00:00
Luis Ontanon 047baf2c38 MATE has a grammar.
Although not yet fully implemented I want this version as a reference. 


svn path=/trunk/; revision=14373
2005-05-16 13:28:35 +00:00
Gerald Combs e3e4f52245 Don't write a '\0' way the heck past the end of an array. Fixes bug 164.
Add a comment asking if we shouldn't use oid_to_str() instead of our own
routine.

svn path=/trunk/; revision=14344
2005-05-10 23:45:39 +00:00
Guy Harris 0c8fb767d1 Fix a call to dereference a pointer (found by a compiler warning).
svn path=/trunk/; revision=14318
2005-05-05 11:08:20 +00:00
Ulf Lamping 1a9152727b add a *lot* more dissections of the various PN-IO blocks
svn path=/trunk/; revision=14301
2005-05-03 19:58:05 +00:00
Ulf Lamping 4e3c0cde68 move the pn-dcp dissector into the profinet plugin
svn path=/trunk/; revision=14285
2005-05-03 01:39:00 +00:00
Lars Roland 5bb4e926aa add the new target "install-plugins" to nmake makefile
in the plugins subdirectory. This target will copy all plugins to plugins/$(VERSION), thus (t)ethereal will
find and load the plugins when called from within the source tree.

call this target from the main nmake makefile after
installing other dependencies. call it from the nmake makefile
in the doc subdirectory before calling "tethereal -G".
This way "tethereal -G" will recognize the filterable
fields from the plugins, too.


svn path=/trunk/; revision=14284
2005-05-03 01:03:33 +00:00
Lars Roland cca89430e4 add another lenght check in the megaco dissector.
Fixes bug 150.

svn path=/trunk/; revision=14283
2005-05-03 00:19:08 +00:00
Gerald Combs 3d582e6e55 In dissect_mgcp_firstline(), throw an exception if tokenlen > 4. This fixes
bug 145, but may not be the best solution.

svn path=/trunk/; revision=14275
2005-05-02 20:05:03 +00:00
Michael Tüxen 8403c50a91 Get rid of trailing \
svn path=/trunk/; revision=14263
2005-05-02 10:59:51 +00:00
Ulf Lamping 9656f54e9b as Thomas Boehne suggested, put each plugin target into it's own line, so private plugins can better keep in track with the official Makefile's
svn path=/trunk/; revision=14262
2005-05-02 10:47:12 +00:00
Ulf Lamping cf33dbddb3 added the profinet plugin
svn path=/trunk/; revision=14261
2005-05-02 10:35:37 +00:00
Gerald Combs 9f61403c0b Break out of another infinite loop. Found during fuzz testing.
svn path=/trunk/; revision=14250
2005-05-01 13:36:00 +00:00
Ulf Lamping a46d7d2d59 set subversion attributes
svn path=/trunk/; revision=14249
2005-04-30 20:55:21 +00:00
Ulf Lamping 48aee19b1a move the profinet related files to a plugin (step by step), to make prototyping and further development easier (at least for me :-)
svn path=/trunk/; revision=14248
2005-04-30 20:52:20 +00:00
Lars Roland 6a4b4fc1b9 From Martin Mathieson:
- added support for local connection options
- added missing "Response Acknowledgement (000)" response code
- got rid of "display_dissect_tree" preference and code
- increased version number in moduleinfo.h

svn path=/trunk/; revision=14225
2005-04-29 00:00:42 +00:00
Gerald Combs e5af03f331 Fix a buffer overflow. Fixes bug 96.
svn path=/trunk/; revision=14207
2005-04-27 20:25:37 +00:00
Gerald Combs b979f69c0c Break out of an infinite loop. Fixes bug 95.
svn path=/trunk/; revision=14204
2005-04-27 19:09:55 +00:00
Lars Roland 0c30cc130b Reindent the mgcp dissector with tabs and
remove trailing white spaces.

svn path=/trunk/; revision=14195
2005-04-26 23:14:35 +00:00
Lars Roland f78d66b0d7 From Martin Mathieson:
a first step of cleaning up the mgcp dissector:

- re-indenting/formatting the file as it was tricky to follow
- some code simplification and commenting (more to do)
- losing some unnecessary includes (not needed under linux at least...)
- show duplicate request and response fields in tree (previously hidden)
- improved duplicate response detection
- fix a couple of problems shown by fuzz testing

svn path=/trunk/; revision=14181
2005-04-25 00:51:11 +00:00
Gerald Combs 23738d70f0 Make sure a pointer isn't null before we dereference it.
svn path=/trunk/; revision=14121
2005-04-18 02:48:31 +00:00
Gerald Combs d8a7d0beb4 Keep MGCP from looping in an infinite fashion. Other parts of the code look
like they might be prone to doing the same.

svn path=/trunk/; revision=14119
2005-04-18 01:22:17 +00:00
Gerald Combs caf66bb8dd Add a length check.
svn path=/trunk/; revision=14030
2005-04-08 19:14:05 +00:00
Ronnie Sahlberg a574ef6b88 From Martin M
updates to MGCP
checked in per Anders B request   hope it compiles


svn path=/trunk/; revision=14028
2005-04-08 11:25:18 +00:00
Ronnie Sahlberg f16afe28a9 From Cvetan Ivanov
Updates to Q931, SM and ISUP


svn path=/trunk/; revision=14013
2005-04-04 07:40:07 +00:00
Gerald Combs f52c3c3a14 Add a couple of length checks.
svn path=/trunk/; revision=14008
2005-04-04 03:01:40 +00:00
Anders Broman 80e9643f2f From Martin Mathieson :
- allow dissector to show "MGCP/SDP" in the Protocol column, at least when
the 'Display the number of MGCP messages' preference is switched off
- when displaying the command verb, show in the tree the full verb name as
well as the 4-letter code
- show the links to response and request messages as being [generated]
- fixed some indentation problems


svn path=/trunk/; revision=13972
2005-03-29 20:56:42 +00:00
Ulf Lamping 1d3e8ddbd3 bugfix of a bug causing tethereal value output to fail:
value_string's must be terminated with { 0, NULL }!!!

...seems I've missed one place in my last commit!

svn path=/trunk/; revision=13930
2005-03-27 02:40:05 +00:00
Ulf Lamping 1352cfe808 bugfix of a bug causing tethereal value output to fail:
value_string's must be terminated with { 0, NULL }!!!

svn path=/trunk/; revision=13928
2005-03-27 01:18:06 +00:00
Guy Harris ed3ecc443b Add rules to build xml_lexer.c, and to remove it with "make distclean",
modeled after the rules in epan/dfilter/Makefile.nmake.

svn path=/trunk/; revision=13919
2005-03-26 10:48:38 +00:00
Guy Harris afd5ea96b1 xml_lexer.c is generated by Flex; we don't put files generated by Flex
into the SVN tree, we just put the files from which they're generated
into the SVN tree.

svn path=/trunk/; revision=13915
2005-03-26 03:30:08 +00:00
Jörg Mayer fcda7c68a0 Remove trailing ';'
svn path=/trunk/; revision=13865
2005-03-22 16:02:09 +00:00
Luis Ontanon 22084517ad Fix the names that were not consistent after the rename.
svn path=/trunk/; revision=13852
2005-03-21 17:51:07 +00:00
Luis Ontanon 3af24ce10a Add a cleanup call-back to the stats_tree.
svn path=/trunk/; revision=13851
2005-03-21 15:40:33 +00:00
Luis Ontanon 8f404dccf2 This one is not in the makefiles (it's an example of stats_tree not realy a feature), make sure it works nontheless
svn path=/trunk/; revision=13843
2005-03-21 01:32:26 +00:00
Luis Ontanon 29499bbb66 This one was missing from the last commit
svn path=/trunk/; revision=13841
2005-03-21 01:22:23 +00:00
Guy Harris 5d8d20629a From Oleg Terletsky:
get rid of a debugging printout;

	in "get_agentx_pdu_len()", fetch the payload length in the right
	byte order.

If the NETWORK_BYTE_ORDER flag isn't set, that means "little-endian",
not "host byte order" - the host on which I'm typing this is big-endian!
That means that using the "g_hton[ls]()" macros on the result of
"tvb_get_ntoh[ls]()" won't give you little-endian values on a big-endian
host; just directly use "tvb_get_letoh[ls]()" to fetch little-endian
values.

Use "proto_tree_add_item()" whenever possible.

svn path=/trunk/; revision=13834
2005-03-20 21:52:11 +00:00
Ulf Lamping 6c8482f286 Move request packets above (before) response ones, this seems to be more natural.
Use a single HTTP submenu instead of two menu items with an entry and a submenu

svn path=/trunk/; revision=13814
2005-03-19 19:06:08 +00:00
Ulf Lamping 6a0bf13c45 Fix capitalization of tree topics
svn path=/trunk/; revision=13813
2005-03-19 18:16:39 +00:00
Lars Roland af529a9fb0 Clean up.
Remove obsolete plugin address table and related files.
Remove related targets from various makefiles.

svn path=/trunk/; revision=13787
2005-03-17 00:10:23 +00:00
Lars Roland 65fb9ef620 Remove support for the old plugin api.
TODO: 
cleanup files in /trunk/plugins

svn path=/trunk/; revision=13782
2005-03-16 23:07:08 +00:00
Guy Harris 3fd9dac8e4 Don't use the result of "format_text()" as a format string argument, as
it might contain %'s; instead, use "%s" as the format string.

svn path=/trunk/; revision=13741
2005-03-13 10:26:56 +00:00
Gerald Combs 0ab3f0586c Sync to recent changes in packet-rtp.h.
svn path=/trunk/; revision=13703
2005-03-10 21:41:24 +00:00
Luis Ontanon 8ee0a507c7 An optimization.
Instead of first running the lexer to create a list of items and then iterate through this items to create the tree, just create the tree from the lexer.


svn path=/trunk/; revision=13696
2005-03-10 17:13:47 +00:00
Luis Ontanon 420323a212 check in the newly generated lexer too
svn path=/trunk/; revision=13687
2005-03-10 06:33:07 +00:00
Luis Ontanon 5a9267805c - changed the lexer to return entire tags, refactored packet-xml.c for those changes
- add markup_declarations and indent on doctype's []
- removed debugging code
- renamed meta_tag into xmlpi


svn path=/trunk/; revision=13686
2005-03-10 06:32:06 +00:00
Olivier Biot e16aebe919 Remove duplicate media types and add XML media types from packet-text-media.c.
NOTE: we need to make sure that all the media types registered in the XML dissector get registered with the line-based text dissector as a fall-back when the XML dissector is disabled.

svn path=/trunk/; revision=13683
2005-03-09 19:52:58 +00:00
Lars Roland 9a1a762922 remove remnants of the old plugin api from dissectors and plugins
svn path=/trunk/; revision=13656
2005-03-07 21:40:29 +00:00
Lars Roland a479e104df set SVN keyword ID
svn path=/trunk/; revision=13654
2005-03-07 20:31:35 +00:00
Lars Roland 7ca59bef69 fix clean target
svn path=/trunk/; revision=13653
2005-03-07 20:25:09 +00:00
Guy Harris 802859d3fd Call the "new-style init" routine for plugins a "register" routine, as
it serves the same purpose as the register routine in a built-in
dissector, and don't require all dissectors to have one, as they might
just be taps.

Get rid of the stats tree's init routine, as it's just a tap, and as it
doesn't do anything.

Update the idl2eth Python script to generate plugins with register routines.

svn path=/trunk/; revision=13644
2005-03-07 02:44:41 +00:00
Luis Ontanon e6853d6645 - Add some media types to be dissected as xml
- be more tollerant on how an XML document should look like


svn path=/trunk/; revision=13639
2005-03-06 21:57:25 +00:00
Guy Harris e41c4740c9 Handle XNS IDP socket numbers.
Handle SMB-over-SPP.

svn path=/trunk/; revision=13635
2005-03-06 20:13:58 +00:00
Luis Ontanon 3f3c09bf67 - get rid of some warnings
svn path=/trunk/; revision=13633
2005-03-06 18:30:59 +00:00
Luis Ontanon cdb24872be - use the string id of the node, not the integer id in tick_stat_node
svn path=/trunk/; revision=13632
2005-03-06 18:02:27 +00:00
Luis Ontanon 3bdc6321bd Forgot this in the last checkin
svn path=/trunk/; revision=13630
2005-03-06 16:58:34 +00:00
Luis Ontanon 40132d1fde Add stats_tree and xml plugins to the build process
svn path=/trunk/; revision=13629
2005-03-06 16:49:16 +00:00
Luis Ontanon b134a48c12 oops, no new_plugin_init() now there is
svn path=/trunk/; revision=13620
2005-03-06 03:45:41 +00:00
Luis Ontanon 3bdcc50bda The first part of the XML dissector
currently just a preety-printer with some generic fields


svn path=/trunk/; revision=13619
2005-03-06 03:38:25 +00:00
Luis Ontanon 17dc5ee62e remove plugin_init()
svn path=/trunk/; revision=13613
2005-03-06 02:55:06 +00:00
Luis Ontanon c6694e7354 Change to new_plugin_init()
svn path=/trunk/; revision=13612
2005-03-06 02:53:23 +00:00
Lars Roland 00273300e7 Preparations for dropping the old plugin api.
Introduce a new init routine for plugins, 
which does not take the plugin api table as an 
argument and allows etheral to distinguish 
between plugins using the old and the new api.

Update README.plugins accordingly

Change all g_warnings() in epan/plugins.c to report_failue().
On windows we do not have a log console open while
loading the plugins, because a log console cannot be opened before the prefs have been read. Thus g_warnings()
does not work for reporting problems with plugins.

svn path=/trunk/; revision=13596
2005-03-05 06:28:10 +00:00
Luis Ontanon 839ef649ed add the http_srv tap a tree to verify load distribution between several http servers and/or virtual hosts
svn path=/trunk/; revision=13566
2005-03-01 19:43:14 +00:00
Luis Ontanon 47cd961ac6 add the http_stats_tree,
a replacement for the current http tap listeners and a tree for requested hosts/uris


svn path=/trunk/; revision=13556
2005-02-28 22:32:16 +00:00
Luis Ontanon eaba6357cb Adapt the stats_tree example plugin to the last changes
svn path=/trunk/; revision=13550
2005-02-28 11:10:49 +00:00
Lars Roland b62cc7c598 add agentx plugin to the clean target and update the old plugin api
svn path=/trunk/; revision=13524
2005-02-25 23:08:53 +00:00
Guy Harris 1199ef4690 Fix the declaration of "dissect_ber_boolean()" to match the current
version.

svn path=/trunk/; revision=13512
2005-02-25 08:32:33 +00:00
Guy Harris 626a91d524 Fix the declaration of "dissect_ber_boolean()" to match the current
version.

svn path=/trunk/; revision=13511
2005-02-25 08:31:51 +00:00
Luis Ontanon 445e030088 added a tree example
svn path=/trunk/; revision=13509
2005-02-25 05:15:18 +00:00
Luis Ontanon dfa295919c Change the plugin to be something useful.
Adds more taps,
tests range nodes
tests pivot nodes


svn path=/trunk/; revision=13503
2005-02-24 22:04:34 +00:00
Luis Ontanon 96c41e1293 - fix a crash in new_avpl_strict_match when the operator avpl was empty
- change the name of the preference mate.config_filename: into mate.config:


svn path=/trunk/; revision=13488
2005-02-24 04:11:31 +00:00
Luis Ontanon 5912813eeb avoid crashing when Debug_Cfg is set and no Payload is given for a Pdu
svn path=/trunk/; revision=13464
2005-02-22 02:16:35 +00:00
Luis Ontanon 9edd68b0e1 ooops,I forgot this one with the last checkin
svn path=/trunk/; revision=13462
2005-02-21 23:29:49 +00:00
Ulf Lamping 2f836c20a8 fix a typo: lenght -> length
This seems to be a "more common" typo, fixed it 13 times throughout the code ...

svn path=/trunk/; revision=13452
2005-02-20 22:36:34 +00:00
Luis Ontanon 9b02a501cd Fixes few things during reinitialization with gtk2 (it doesn't crash anymore),
there are still problems at reinit (gtk2 node->pr warns about an iterator not been OK)

set up propperties of the given files

svn path=/trunk/; revision=13448
2005-02-20 17:43:38 +00:00
Lars Roland b65e9739d2 Don't register mgcp taps,
when we haven't loaded the mgcp plugin.

and

From Alejandro Vaquero:
mgcp support for the voip call analysis tap

svn path=/trunk/; revision=13447
2005-02-20 15:53:11 +00:00
Jörg Mayer bbee792260 Add some svn props
svn path=/trunk/; revision=13442
2005-02-20 05:39:24 +00:00
Luis Ontanon 80ec76c622 Changed the GopTree in GogDef and GogExtra from a boolean to a string
GopTree={BasicTree|NoTree|FullTree}
    NoTree: just an item for each gop
    BasicTree: (default) some essential information regarding the gop
    FullTree: the Gop's full tree

added Id and eol-style to examples


svn path=/trunk/; revision=13435
2005-02-20 02:21:04 +00:00
Luis Ontanon 59ef46c037 add mms.mate to the examples collection
svn path=/trunk/; revision=13430
2005-02-19 03:22:24 +00:00
Luis Ontanon e2e5536fef In order to avoid a crash at reanalize_gop(), do not accept a GogKey where the Gop has not yet being declared.
svn path=/trunk/; revision=13429
2005-02-19 03:10:50 +00:00
Luis Ontanon c2f7b07a5a Step the version number of the plugin
svn path=/trunk/; revision=13428
2005-02-18 22:43:12 +00:00
Luis Ontanon 2cd67ce468 Adds Payload AVP to PduDef AVPLs simmetric to the Transport AVP
allows to fetch fields also from ranges that are the payload of the Proto

svn path=/trunk/; revision=13427
2005-02-18 22:33:16 +00:00
Luis Ontanon 9151efab45 Get rid of some useless lines from the last patch
svn path=/trunk/; revision=13424
2005-02-18 20:11:30 +00:00
Luis Ontanon f7a7af313d Add a pointer to the start frame of each gop in the gog's tree
svn path=/trunk/; revision=13423
2005-02-18 20:02:40 +00:00
Luis Ontanon 99f52419d5 two fixes in config loading:
- do not accept GopDefs for non existent pdus Pdu
  - GogExtra "no For" instead of "no Name" 


svn path=/trunk/; revision=13422
2005-02-18 18:40:25 +00:00
Luis Ontanon f99b87c519 An example stats_tree plugin using pinfo as its only data source
I'm not checking changes to the Makefiles yet.

svn path=/trunk/; revision=13415
2005-02-16 14:26:27 +00:00
Guy Harris 6616a3770c Make the "maintainer-clean" rules get rid of some additional generated
files.  Do this with GENERATED_HEADER_FILES, GENERATED_C_FILES, and
GENERATED_FILES macros in Makefile.common files, along the lines of what
wiretap/Makefile.common has.

Clean up "*~" files with "make clean" rather than only "make distclean"
in some additional places.

Add "maintainer-clean" rules to the Makefile.nmake files, paralelling
the ones in the automake-generated Makefile.in files, using the
GENERATED_FILES macros from Makefile.common files.  In some cases, move
the cleanup of files from "make distclean" to "make maintainer-clean",
and in other cases, put in a comment indicating why we're not doing that
(because some files that are distributed in the source tarballs, namely
Flex output, were built with a UN*X Flex and won't compile on Windows,
so we get rid of them with "make distclean" so you can clean up stuff
that *has* to be re-generated for Windows).

Clean up some *CLEANFILES definitions - get rid of ones that no longer
apply as files were moved or that add to the definition a name that's
already there.

svn path=/trunk/; revision=13402
2005-02-14 20:33:57 +00:00
Luis Ontanon f152359ac3 avoid freeing the gop_key more than once and do not reregister the tap at every reload
svn path=/trunk/; revision=13382
2005-02-11 00:04:25 +00:00
Luis Ontanon 24b8161e82 mate runtime did not get initialized when configured after loading a capture file
svn path=/trunk/; revision=13381
2005-02-10 17:14:31 +00:00
Luis Ontanon f660b69b4f add "mate" as a protocol to its tree
svn path=/trunk/; revision=13380
2005-02-10 16:55:08 +00:00
Luis Ontanon e9786bf1c3 cleanup matelib and mate examples
svn path=/trunk/; revision=13378
2005-02-10 16:23:52 +00:00
Guy Harris 162b187242 Use tcp_dissect_pdus().
svn path=/trunk/; revision=13377
2005-02-10 08:52:35 +00:00
Guy Harris 4e21355eb6 Use VB_ rather than V_ for the VarBind types, to avoid a collision with
V_INT in oleauto.h in Windows.

svn path=/trunk/; revision=13376
2005-02-10 08:15:35 +00:00
Guy Harris ba7e8f3b81 From Oleg Terletsky: AgentX support.
svn path=/trunk/; revision=13372
2005-02-10 06:36:21 +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 30a00ead93 From Alejandro Vaquero :
Find attached a patch for "Voip analysis" to get the LRQ/LCF/LRJ messages included in the H323 calls for Gatekeeper to Gatekeeper configurations

svn path=/trunk/; revision=13344
2005-02-07 20:30:27 +00:00
Anders Broman bc04baef42 From LEGO:
- fixes a leak in analize_pdu()
 - fixes a typo in analize_pdu()
 - fixes a crash in scs_unsubscribe() 
 - save a malloc and a free in get_pdu_fields()

svn path=/trunk/; revision=13335
2005-02-07 08:54:24 +00:00
Anders Broman c3440553eb From: LEGO
- fix a bug at gog reinit that disabled gogs after reload of a file.
- fix some crashes when Debug_GoG>0
- cleanup the debug output (no CR at the end is needed)
- Gops start when no GopStart is given and match an existing GogKey

svn path=/trunk/; revision=13318
2005-02-06 20:37:02 +00:00
Gerald Combs d7ad33dc51 Fix a couple of distcheck problems:
Update conversation_new and find_conversation in plugin_api_list.c and
associated files.

Add packet-dcerpc-butc.h to the distribution.

svn path=/trunk/; revision=13288
2005-02-04 15:22:25 +00:00
Guy Harris 428475c8a8 HFILL can't be used to initialize at run time.
svn path=/trunk/; revision=13286
2005-02-04 10:32:28 +00:00
Jörg Mayer d01c1ddaef albert chin:
The HP-UX compilers don't like non-constant initializers (C99'ism).
        Patch attached for plugins/mate/mate_setup.c.

Fix a few warnings (change some () to (void))

svn path=/trunk/; revision=13274
2005-02-04 00:22:00 +00:00
Anders Broman d86f7e48c4 From Jon Ringle:
1) Added a setup_frame parameter to conversation_t
2) Used the conversation_t next to maintain a list of conversations with the 
same src/dest tuple but different setup_frame number.
3) Changed the signature of find_conversation() and conversation_new() to pass 
in the frame number.
4) Adjusted packet-sdp to select RTP conversation if both m=audio and m=image 
are present, and T.38 conversation if only m=image is present. I expect that 
RTP/T.38 dissecting to be better, but I don't have a way to generate T.38 
packets.

svn path=/trunk/; revision=13245
2005-02-02 20:09:00 +00:00
Anders Broman 8f749c91cc From Jon Ringle:
1) Added a setup_frame parameter to conversation_t
2) Used the conversation_t next to maintain a list of conversations with the 
same src/dest tuple but different setup_frame number.
3) Changed the signature of find_conversation() and conversation_new() to pass 
in the frame number.
4) Adjusted packet-sdp to select RTP conversation if both m=audio and m=image 
are present, and T.38 conversation if only m=image is present. I expect that 
RTP/T.38 dissecting to be better, but I don't have a way to generate T.38 
packets.

svn path=/trunk/; revision=13244
2005-02-02 20:08:36 +00:00
Ulf Lamping b3b3f5cbcc use MATE (not mate) for protocol name and protocol tree
svn path=/trunk/; revision=13191
2005-01-28 23:24:04 +00:00
Lars Roland 4bf362f863 A new patch for mate from Luis Ontanon:
- move mate_packet into packet-mate.c and remove it frome mate.h
  - supressed some warnings

svn path=/trunk/; revision=13190
2005-01-28 13:53:14 +00:00
Guy Harris d90ba1a144 From Yoshihiro Oyama: get rid of _U_s in prototype declarations that
lack variable names.

svn path=/trunk/; revision=13188
2005-01-28 10:15:03 +00:00
Lars Roland f7a9907702 From Luis Ontanon for Mate:
- supress some solaris compiler warnings
- adds GopExpiration, GopIdleTimeout and GopLifetime parameters

svn path=/trunk/; revision=13154
2005-01-21 19:11:59 +00:00
Lars Roland 76f3c8df66 Add mate to the clean and distclean target
svn path=/trunk/; revision=13094
2005-01-17 22:17:09 +00:00
Guy Harris 1dd7bd0b38 Add MATE to the list of plugins.
svn path=/trunk/; revision=13093
2005-01-17 22:01:38 +00:00
Jörg Mayer 491ceb3905 Some trivial warning fixes in mate
svn path=/trunk/; revision=13073
2005-01-16 15:45:21 +00:00
Guy Harris dc0932f4a8 Set fp to NULL before "load_loal_error()" is called, so we don't pass an
uninitalized variable to it.

svn path=/trunk/; revision=13054
2005-01-15 23:34:29 +00:00
Jörg Mayer ec6c844387 Add mate to the build process (plus a few whitespace changes)
svn path=/trunk/; revision=13051
2005-01-15 18:39:44 +00:00
Guy Harris 6775bd5557 Use -1 as a length value for "to the end of the tvbuff".
svn path=/trunk/; revision=13046
2005-01-15 10:39:49 +00:00
Guy Harris 673665ae6c Welcome to the wonderful world of "make", wherein a command in a set of
make rules must be indented with one or more tabs - no spaces, just
tabs.  I seem to remember a Stu Feldman quote somewhere in which he
apologized for that requirement....

svn path=/trunk/; revision=13011
2005-01-13 01:16:53 +00:00
Ulf Lamping 80d0151d6c add some of the DCE/RPC functions to the plugin API
svn path=/trunk/; revision=13010
2005-01-12 21:44:53 +00:00
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 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
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
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
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
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 8926d08a04 From Chris Maynard: free a string obtained with "tvb_get_string()".
svn path=/trunk/; revision=12958
2005-01-05 10:23:26 +00:00
Guy Harris 7e58bd88ca Cast the values passed to the <ctype.h> macros so as to avoid
sign-extending 8-bit characters.

svn path=/trunk/; revision=12922
2005-01-02 00:23:50 +00:00
Guy Harris 3a8f2634bb When computing a hash value based on, among other things, a
conversation, use the "index" member of the conversation_t - that lets
you get a value that fits in a guint, but without provoking the warning
you might get from a compiler if you cast a pointer to the conversation
to a guint.

svn path=/trunk/; revision=12916
2005-01-01 23:21:05 +00:00
Lars Roland 9e0391990e Update some function declarations in the plugin api
svn path=/trunk/; revision=12903
2004-12-31 14:53:17 +00:00
Lars Roland 2ce1e037f6 From Luis Ontanon for Mate:
- moved gop and gog indexes into gopcfgs, which is a propedeutic
change for upcoming changes in the way gops are to be grouped
-  changed the way gog-keys are kept in memory
- every gopkey attribute is copied into the gop->extras to avoid
redundancy in the configuration
- added timers to gogs mate.gog_type.StartTime and mate.gog_type.Time
- fixed a bug in scs_subscribe that mangled some strings
- minor interface improvement to scs propedeutic to having types avp
values in a future
- changed medium and large into mate_medium and mate_large in the
scs_collection
- fixed Mode=Replace in Transforms, now it works
- fixed a crash at reinit due to impropper initialization of mate_items

svn path=/trunk/; revision=12902
2004-12-31 14:27:38 +00:00
Guy Harris 28bdc16f36 We now require gint64/guint64 support to build Ethereal, so get rid of
the #ifdefs.

Don't use "%ll[doux]" - not all platforms use "ll" as the length
specifier for 64-bit integers in formats.  Use PRI[doux]64 instead, to
handle platforms where some other length specifier is used.

svn path=/trunk/; revision=12874
2004-12-30 23:19:17 +00:00
Guy Harris 27db7b5c30 Regenerate.
svn path=/trunk/; revision=12870
2004-12-30 18:34:11 +00:00
Guy Harris cd4a738b63 Fix the declaration of "tap_queue_packet()" to match its new signature.
svn path=/trunk/; revision=12869
2004-12-30 18:33:14 +00:00
Ulf Lamping 78ff68d4b5 a lot of warnings removed, most of them about pointer to int casts without using the appropriate GLib macros
svn path=/trunk/; revision=12832
2004-12-25 13:49:30 +00:00
Lars Roland 5474c91d65 Fixes for Mate from Luis Ontanon:
- fixes crash at reinit when DiscardPduData=TRUE: check if there's an
avpl before deleting it.
- mate.pdu_type.RelativeTime had a dual use, add
mate.pdu_type.TimeInGop and leave the other alone.
- other fixes related to times (they now seem to be right)
- scs_subscribe doesn't use g_malloc anymore. it uses GMemChunks
(I had to rename two GMemChunks to make MSVC happy)
- fixes crash at reinit when DiscardPduData=TRUE: check if there's an
avpl before deleting it.
- mate.pdu_type.RelativeTime had a dual use, add
mate.pdu_type.TimeInGop and leave the other alone.
- other fixes related to times (they now seem to be right)
- fixed few things at reinit:
     - reset last_id 
     - remove the nodes in the items hash tables 

svn path=/trunk/; revision=12820
2004-12-23 08:27:30 +00:00
Lars Roland af8041a316 Patch for Mate Plugin.
From Luis Ontanon:
- moves mate configuration from proto_register to proto_register_handoff
- add the config file protocol preference
- every item (gop,gog,pdu) has it's own ett
- the tap doesn't do nothing, it just primes the tree
- analyze_frame()  what once was the tap now is called by the dissector
- should work with tethereal now (to be tested)

svn path=/trunk/; revision=12763
2004-12-16 19:36:23 +00:00
Lars Roland e4b76b25e6 Update Xplugin_table.h, too. (Just by regenerating the X-files of the plugin api)
svn path=/trunk/; revision=12747
2004-12-13 21:35:59 +00:00
Ronnie Sahlberg 9a41dceb4a change some signatures for some ber helpers from unsigned to signed
svn path=/trunk/; revision=12746
2004-12-13 21:11:13 +00:00
Ronnie Sahlberg 8afae320de update of the asn2eth compiler to use the types ber_[choice|sequence]_t instead of ber_[choice|sequence]
regenerated all dissectors


fixed the choice/sequence struct to use unsigned entities for class and tag
(to reduce some compiler warning and because it should be signed quantities)



svn path=/trunk/; revision=12740
2004-12-13 08:15:34 +00:00
Ronnie Sahlberg fa6a017338 yet another plugin update for GeneralizedTime
svn path=/trunk/; revision=12738
2004-12-13 04:36:01 +00:00
Ronnie Sahlberg 68d7a3186b rename generalized_time to the new name GeneralizedTime in the plugin directory.
I didnt notice it since i never comple with plugins.



svn path=/trunk/; revision=12737
2004-12-13 03:40:45 +00:00
Lars Roland 04a6f55e4c Update for Mate from Luis Ontanon:
- make rd static (no purpose for it to be global)
- remove outdated comments
- add "PduCriteria" feature (as already stated in the wiki)
- add "DiscardUnassignedPdu" feature (as already stated in the wiki)
- removed ".Id" from abbrev for "mate.item_name"

- in radius.mate:  Don't use the port to determine the Gop key.

svn path=/trunk/; revision=12735
2004-12-12 23:40:44 +00:00
Lars Roland 3974027add Update the declaration of dissect_ber_integer() in the plugin api
svn path=/trunk/; revision=12729
2004-12-12 17:59:01 +00:00
Lars Roland 62506c09d6 Fixes for Mate Plugin:
As suggested by Martin Regner:
- Use strtod() instead of strtof()

From Luis Ontanon:
- changes the id of mate items to be integer (the old string ID
imposed a lenght limit and as mate fileds had become dynamic it makes
no more sense anymore)

- fixes a huge avp leak on reinit (every avp object was leaked when a
new file was loaded)

- adds the "Lib" AVP to the Action=Include AVPL to include definitions
>from matelib

- rename mate.[dll/so] to zzmate.[dll/so] so it gets initialized as
the very last protocol (so that fields from every dissector can be
used).

svn path=/trunk/; revision=12728
2004-12-12 16:58:59 +00:00
Lars Roland 86d7ed9bae New Plugin from Luis Ontanon:
MATE -- Meta Analysis and Tracing Engine

Won't be compiled by default.

It is still not possible to link the plugin on Win32.

svn path=/trunk/; revision=12716
2004-12-11 01:00:17 +00:00
Lars Roland ea67e4cfab Add functions to the old and the new plugin api for the MATE Plugin.
svn path=/trunk/; revision=12715
2004-12-11 00:13:27 +00:00
Guy Harris bebb2b7705 Get rid of C++/C99-style comments - not all C compilers accept them.
Fix some indentation.

svn path=/trunk/; revision=12710
2004-12-10 11:20:48 +00:00
Lars Roland 22bc471bb6 Make rtnet plugin compile again with MSVC
and some white space cleanup.

svn path=/trunk/; revision=12622
2004-11-29 23:48:26 +00:00
Guy Harris 7c3027c5e9 Export two versions of the Ethereal dissector, for use with encapsulated
Ethernet frames, one for encapsulated frames that include an FCS and one
for encapsulated frames that don't include an FCS.  Use the appropriate
versions.

In the ISL dissector, do the same sort of processing we do in the
Ethernet dissector to figure out whether the frame has a trailer or not
and whether it has an FCS or not.

svn path=/trunk/; revision=12593
2004-11-24 09:13:52 +00:00
Guy Harris ccb72b77b5 From Erwin Rol: Dissect DMX in a readable format, and other updates.
svn path=/trunk/; revision=12587
2004-11-24 03:35:17 +00:00
Guy Harris eb0a24bbad Updates from Erwin Rol.
svn path=/trunk/; revision=12584
2004-11-24 02:36:14 +00:00
Guy Harris 77f9af3434 Update a URL.
svn path=/trunk/; revision=12550
2004-11-21 03:01:15 +00:00
Guy Harris 1f4073974f Check for bogus attribute lengths.
svn path=/trunk/; revision=12505
2004-11-10 10:46:40 +00:00
Gerald Combs 642513149f From Laurent Rabret:
- enable Windows' ShellExecute command to call Ethereal without specifying
  the installation path (a new key added in the registry)
- decode 2 more options in the OPSI plugin.


svn path=/trunk/; revision=12363
2004-10-21 02:06:37 +00:00
Guy Harris f0b50fb262 Constify more pointer arguments.
svn path=/trunk/; revision=12266
2004-10-11 18:35:26 +00:00
Guy Harris 518f7926b7 Constify more pointer arguments.
svn path=/trunk/; revision=12265
2004-10-11 18:34:54 +00:00
Guy Harris 21119337d0 Make the "per_choice_t" and "per_sequence_t" pointer arguments pointers
to const.

svn path=/trunk/; revision=12254
2004-10-11 06:39:04 +00:00
Guy Harris 4998eb51ee Make the "per_choice_t" and "per_sequence_t" pointer arguments pointers
to const.

svn path=/trunk/; revision=12253
2004-10-11 06:38:12 +00:00
Ulf Lamping aa85e98b06 remove some MSVC warnings
svn path=/trunk/; revision=12248
2004-10-09 07:44:41 +00:00
Guy Harris 017d788da0 From Lars Roland: we need to define _NEED_VAR_IMPORT_ in plugins if we
link the plugins with libethereal, so do so.

svn path=/trunk/; revision=12176
2004-10-01 19:50:03 +00:00
Guy Harris 99392257b7 In "plugins/plugin_api.h", don't include stuff required for the plugin
address table if we don't need the plugin address table, so as to catch
plugin dissectors that don't directly include stuff they need -
eventually, the plugin address table stuff should completely go away, so
we don't want dissectors depending on it.

Fix those dissectors caught by this.

Don't include "simple_dialog.h" in the ASN.1 dissector - it doesn't use
it.

svn path=/trunk/; revision=12140
2004-09-29 22:20:21 +00:00
Guy Harris 444119dbcb From Lars Roland: add an option to link plugins with libethereal rather
than using the plugin address table.

svn path=/trunk/; revision=12139
2004-09-29 19:30:10 +00:00
Guy Harris eaadcc4c62 Move various tables into the epan directory.
svn path=/trunk/; revision=12130
2004-09-29 00:52:45 +00:00
Guy Harris 6472876ab3 Move the tap infrastructure to the epan directory.
svn path=/trunk/; revision=12128
2004-09-29 00:06:36 +00:00
Guy Harris 53ab91826b Move the xDLC helper routines into epan.
svn path=/trunk/; revision=12127
2004-09-28 23:48:02 +00:00
Guy Harris ac98f225a8 Move various checksum routines and headers to epan.
svn path=/trunk/; revision=12117
2004-09-28 00:06:32 +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
Guy Harris fdfdd39080 Routines called by "g_node_traverse()" return a Boolean - FALSE to
continue traversing, TRUE to stop traversing - so make
"free_node_data()" return FALSE.

svn path=/trunk/; revision=12110
2004-09-27 08:30:25 +00:00
Guy Harris a1968b1326 Add proto_tree_add_debug_text(), rtcp_add_address(), and
rtp_add_address() to the list of functions exported from libethereal.dll
and exported via the plugin function table.

svn path=/trunk/; revision=12068
2004-09-23 07:32:58 +00:00
Guy Harris 55d15a436b Add proto_tree_add_debug_text(), rtcp_add_address(), and
rtp_add_address() to the list of functions exported from libethereal.dll
and exported via the plugin function table.

svn path=/trunk/; revision=12067
2004-09-23 07:32:16 +00:00
Guy Harris 97cd8040a8 Preference strings don't remain null pointers for long - they get
converted to pointers to null strings (see prefs.c for an explanation). 
Initialize "current_asn1" to a mallocated null string.

That lets us use "strcmp()" to compare asn1_filename and current_asn1. 
We already do that with asn1_pduname and current_pduname, so use
"strcmp()" for them as well.

Call "build_pdu_tree()" if we haven't yet built a PDU tree, even if the
PDU type preference hasn't changed.

Don't register with any of the ports unless we have a PDU tree, so we
don't try to dissect with a null PDU tree pointer.

Before constructing a PDU tree, if we already have a PDU tree, free it.

When we free data_nodes, free the data attached to the nodes.

Make a bunch of stuff static.

svn path=/trunk/; revision=12045
2004-09-19 03:00:00 +00:00
Anders Broman 790e524443 Fix dissection of MEGACO over TCP, there will be a TPKT header included.
svn path=/trunk/; revision=12043
2004-09-18 21:28:28 +00:00
Guy Harris 92dcbdc192 Export the "proto_tree_add_float" routines, and the routines to get IEEE
float and double values from a tvbuff.

svn path=/trunk/; revision=12019
2004-09-16 19:33:18 +00:00
Guy Harris 56f95db6b4 Export the "proto_tree_add_float" routines, and the routines to get IEEE
float and double values from a tvbuff.

svn path=/trunk/; revision=12018
2004-09-16 19:32:09 +00:00
Anders Broman dbec88f562 Fix a problem where MEGACO not fully RFC complient wasn't dissected, change some indentations,
and a problem where transaction ID wasn't put in the info columb correctly.

svn path=/trunk/; revision=11997
2004-09-15 19:59:53 +00:00
Guy Harris f23f4ecf04 Use _WIN32 rather than WIN32 to determine if we're compiling on Win32;
according to Gisle Vanem, WIN32 isn't a built-in in MSVC, but _WIN32 is.

svn path=/trunk/; revision=11972
2004-09-11 23:03:36 +00:00
Guy Harris d15724fc9e Make a bunch of source files non-executable.
svn path=/trunk/; revision=11869
2004-09-01 07:07:23 +00:00
Guy Harris b061f78dad Updates from Erwin Rol.
svn path=/trunk/; revision=11868
2004-09-01 06:56:33 +00:00
Guy Harris e6bc3872b0 From Lars Roland: don't link with GTK+, as it's not necessary to do so,
and as plugin dissectors shouldn't be linked with GTK+ (so that they
don't depend on Ethereal being built with a particular version of GTK+ -
Ethereal is packaged for Windows in both GTK+ 1.3[.x] and 2.x versions -
and so that they can work with Tethereal, which doesn't use GTK+).

svn path=/trunk/; revision=11840
2004-08-26 22:46:32 +00:00
Guy Harris b700504585 From Lars Roland: add "tvb_get_ntoh64()" to the list of routines
callable from plugins and the list of routines exported from
libethereal.dll.

Do the same for "tvb_get_letoh64()".

svn path=/trunk/; revision=11826
2004-08-25 03:30:40 +00:00
Guy Harris 3481780eea From Lars Roland: add "tvb_get_ntoh64()" to the list of routines
callable from plugins and the list of routines exported from
libethereal.dll.

Do the same for "tvb_get_letoh64()".

svn path=/trunk/; revision=11825
2004-08-25 03:29:54 +00:00
Guy Harris fcf529654a Ethereal has required guint64 support for a while, so there's no need to
check for it in the Gryphon plugin.

Use "tvb_get_ntoh64()" to fetch the time stamp, and format it similarly
to the way absolute date/time time stamps are formatted.

svn path=/trunk/; revision=11800
2004-08-22 02:42:27 +00:00
Guy Harris 42b915674b Map the old one-port "generic ASN.1" TCP/UDP/SCTP port-number
preferences to the new multi-port ones, so that, instead of complaining
when the old preferences were seen, we make the port be the one port in
the new preference.

Make the "message_win" "generic ASN.1" preference an obsolete
preference, so we silently ignore it rather than complaining about it.

svn path=/trunk/; revision=11623
2004-08-08 01:20:26 +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
Jörg Mayer 0ca5d06e2e Change // to C90 style comment
svn path=/trunk/; revision=11576
2004-07-31 22:02:20 +00:00
Guy Harris 0ee683e0b8 From Matthijs Melchior:
add SCTP support;

	allow more than one port number to be specified;

	add recovery from garbled or incomplete ASN.1 messages.

svn path=/trunk/; revision=11572
2004-07-30 07:28:31 +00:00
Jörg Mayer e869dbb17d Trivial warning fixes:
- comma at end of enum
- function declarations with empty args instead of void
- c++ style comments

svn path=/trunk/; revision=11492
2004-07-23 23:28:08 +00:00
Guy Harris 6041d12dde From Laurent Rabret: OPSI support.
svn path=/trunk/; revision=11454
2004-07-21 06:31:33 +00:00
Jörg Mayer fd24ad7d92 .cvsignore is dead
it has been replaced by
svn proplist -v <dir/file>
and
svn propedit <dir/file>

svn path=/trunk/; revision=11422
2004-07-18 23:44:34 +00:00
Jörg Mayer 56c759212f Add epan/dissectors/.cvsignore
Add tags and TAGS to all .cvsignore files

svn path=/trunk/; revision=11419
2004-07-18 22:51:50 +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
Guy Harris 8a8b883450 Set the svn:eol-style property on all text files to "native", so that
they have LF at the end of the line on UN*X and CR/LF on Windows;
hopefully this means that if a CR/LF version is checked in on Windows,
the CRs will be stripped so that they show up only when checked out on
Windows, not on UN*X.

svn path=/trunk/; revision=11400
2004-07-18 00:24:25 +00:00
Guy Harris bafd976873 Include "crc16.h" to handle "crc16_ccitt_tvb()".
svn path=/trunk/; revision=11284
2004-06-30 17:57:53 +00:00
Michael Tüxen 42279a7088 get rid of data_handle decalriation, bacause it is
defined external in irda-appl.h which is included.

svn path=/trunk/; revision=11282
2004-06-30 15:42:24 +00:00
Guy Harris 6fda42b60c Add packet-sir.lo.
svn path=/trunk/; revision=11281
2004-06-30 08:23:24 +00:00
Guy Harris 6feb4e2751 Add "crc16_ccitt_tvb()" to the plugin API and the list of functions
exported from libethereal.dll.

svn path=/trunk/; revision=11280
2004-06-30 08:22:56 +00:00
Guy Harris a9e9366b00 From Shaun Jackman: Serial Infrared support.
svn path=/trunk/; revision=11279
2004-06-30 07:34:53 +00:00
Guy Harris b93965db56 From Dennis Lim: add routines used by dissectors for ONC RPC protocols
to the plugin API.

Add them to the list of routines exported from the libethereal DLL on
Windows as well.

svn path=/trunk/; revision=11186
2004-06-19 10:13:52 +00:00
Anders Broman 3bf4394d12 From Thomas Anders fix some memory leaks
svn path=/trunk/; revision=11047
2004-05-31 19:31:14 +00:00
Anders Broman 5f9eb1d737 From Thomas Anders patch adds sub parameter dissection to the MGCP plugin
(plugins/mgcp/packet-mgcp.c), initially for the ConnectionParameters(P),
and updates/adds some specification references.

This patch makes the sub parameter values filterable as numbers and
may allow for improved MGCP statistics in the future.

svn path=/trunk/; revision=11033
2004-05-30 17:58:35 +00:00
Guy Harris 911bad80f0 Have two strings in an enum_val_t - one that's a short string that is
convenient to put into a command line (no capital letters, no spaces to
require quotes), and one that's a detailed description for use in the
UI.  Allow either of them in the preferences file or "-o" option; use
the detailed description in the UI, and also use it when writing the
preferences out, so that the preference will be readable by older
versions of Ethereal (assuming the preference existed in that version).

Update "README.developer" to give more detail about an enum_val_t (and
to put the _t in), and to give a more detailed description of the
"radio_buttons" argument to "prefs_register_enum_preference()".

svn path=/trunk/; revision=10982
2004-05-24 02:25:21 +00:00
Anders Broman 4f9ab6e99d Add translation of result codes
svn path=/trunk/; revision=10972
2004-05-23 13:43:13 +00:00
Guy Harris 15af0f656f From Lars Roland: add support for building a libethereal.dll with MSVC:
add a config.nmake option to control whether to build
	libethereal.dll or not;

	remove "./wiretap" from PATH to prevent problems due to
	wrongly-loaded files;

	build dissector.lib with MSVC;

	move "print.c" and "ps.c" to the dissector helpers, as "print.c"
	imports variables from packet-frame.c and packet-data.c, which
	are in libethereal;

	move "g711.c" out of the dissector helpers, as they're used only
	by Ethereal in a tap, not in Tethereal or in any dissector;

	add a .def file for libethereal;

	arrange to declare global variables exported from libethereal
	with "__declspec(dllimport)" when building programs that import
	those variables;

	update the NSIS installer.

Make the "configure" script define ETH_VAR_IMPORT as "extern".

svn path=/trunk/; revision=10834
2004-05-09 10:03:41 +00:00
Olivier Biot 93751c8e32 Replace the plugin linkage libs into PLUGIN_LIBS which is generated from the
top-level configure.in when running configure.

svn path=/trunk/; revision=10699
2004-04-25 21:10:20 +00:00
Jörg Mayer cfc40f2f00 Fix the fix
svn path=/trunk/; revision=10693
2004-04-25 15:16:39 +00:00
Jörg Mayer 61467be2fc It's proto_register_rudp not proto_reg_rudp
svn path=/trunk/; revision=10690
2004-04-25 11:20:43 +00:00
Jörg Mayer ea9eab40e8 Give --enable-static a chance to succeed:
Some plugins failed to do initialization inside a #ifndef ENABLE_STATIC.

svn path=/trunk/; revision=10689
2004-04-25 11:14:01 +00:00
Guy Harris 9bff3255f9 Get rid of bogus extra "proto_tree_add_text()" arguments.
svn path=/trunk/; revision=10668
2004-04-23 03:20:58 +00:00
Anders Broman 4aca73e9b4 Skipp leading spaces in front of MEGACO and fix dissection of TransactionResponseAck
svn path=/trunk/; revision=10658
2004-04-21 19:58:14 +00:00
Guy Harris d209115ba3 Add a "report_failure()" routine to allow dissectors to report arbitrary
errors to the user.  Use that, rather than "g_warning()", in the
Diameter dissector to report errors reading the dictionary.

Make the format argument to "simple_dialog()" a "const" pointer.

Fix up the read-error message in Tethereal to end with a newline.

If a simple dialog is requested before the main window or the
capture-control window is popped up, queue it up and pop the queued
messages up once the main or capture-control window is displayed.

svn path=/trunk/; revision=10616
2004-04-16 23:17:13 +00:00
Olivier Biot 4459d9f0a9 Add support for plugin dissectors on cygwin builds, by adding the following
line to every Makefile.am file for a given plugin XXX:

	XXX_la_LIBADD = -L../../epan -lethereal @GLIB_LIBS@

This way symbols defined in libethereal and GLib are resolved when linking
the plugin dissector modules.

svn path=/trunk/; revision=10601
2004-04-14 22:13:28 +00:00
Guy Harris af3a427ffd From Albert Chin: the Sun WorkShop 5.0 compiler and HP-UX 10.20 compiler
don't allow you to initialize aggregates with an initializer that
includes non-constant values.

svn path=/trunk/; revision=10527
2004-03-30 19:36:50 +00:00
Guy Harris 1ca8d227a2 From Lars Roland: have "make clean" and "make distclean" clean up the
new Cisco VoIP plugins.

svn path=/trunk/; revision=10521
2004-03-30 18:45:04 +00:00
Guy Harris 36abac74a4 From Duncan Sargeant: include "moduleinfo.h" so that the plugins get the
right version number.

svn path=/trunk/; revision=10520
2004-03-30 18:30:28 +00:00
Gerald Combs 320e375f09 Call plugin_address_table_init() before proto_register_protocol().
svn path=/trunk/; revision=10497
2004-03-26 04:01:31 +00:00
Guy Harris d937629449 Update for Tomas Kukosa's new APIs to get the parent and the
nth-grandparent-up for a protocol tree item and to get the last item
created by the BER dissector (that API and the new names for the
universal tags were supplied by him - the checkin item didn't give him
credit).

svn path=/trunk/; revision=10491
2004-03-26 00:01:32 +00:00
Guy Harris 044f075c66 From Tomas Kukosa: add APIs to get the parent of a protocol tree item
and the item N levels up from a protocol tree item.

svn path=/trunk/; revision=10486
2004-03-25 23:55:21 +00:00
Guy Harris d5c6a38601 Add .cvsignore files to the new plugins.
svn path=/trunk/; revision=10484
2004-03-25 23:11:27 +00:00
Guy Harris c04677e83c Squelch compiler warnings, and remove some trailing blanks from lines.
svn path=/trunk/; revision=10483
2004-03-25 23:09:18 +00:00
Guy Harris ab724a63eb Add the usual extra files to the new plugins.
svn path=/trunk/; revision=10482
2004-03-25 19:11:05 +00:00
Guy Harris a1467c86e1 From Duncan Sargeant: Cisco SS7 RUDP, RLM, and Session Management
support.

svn path=/trunk/; revision=10480
2004-03-25 11:21:07 +00:00
Guy Harris a6ed2d499a From Tomas Kukosa: BER dissector enhancements and proto.c updates to
support them.

From Ronnie Sahlberg: Kerberos updates with new constants from the
current draft, decryption and dissection of Kerberos blobs, and changes
to work with the changed BER dissector.

svn path=/trunk/; revision=10479
2004-03-25 09:18:03 +00:00
Guy Harris 121f06fab7 Make "epan_init()" take, as additional arguments, pointers to routines
that dissectors should call to report file open and read errors, and
have "report_open_failure()" and "report_read_failure()" call through
those pointers, rather than being defined and exported by the
application using libethereal - instead, the application would define
those functions and pass pointers to them to 'epan_init()".

Move "report_err.h" to the epan directory, as the functions it declares
are now part of the libethereal API.

svn path=/trunk/; revision=10470
2004-03-23 21:19:58 +00:00
Guy Harris 2b9ad9ec25 From Brian Wheeler: DOCSIS 2.0 support.
svn path=/trunk/; revision=10387
2004-03-17 06:55:03 +00:00
Guy Harris 2271736636 Add the URL of the specifications page.
svn path=/trunk/; revision=10348
2004-03-08 23:19:14 +00:00
Guy Harris c74dac3af9 Use "tvb_format_text()" on the port name, so that if there are bytes in
it that aren't printable characters, they'll be shown as C-style escape
sequences.

svn path=/trunk/; revision=10343
2004-03-08 19:41:52 +00:00
Guy Harris 4a4650b273 Fetch the port name string using "tvb_get_string()", so that we don't
have to worry about overflowing a buffer; thanks to Stefan Esser for
catching that one.  (It also means we handle it if there's no '\0' at
the end.)

svn path=/trunk/; revision=10341
2004-03-07 22:46:04 +00:00
Guy Harris 36a9a266f4 From Tomas Kukosa: add packet-ber.c routines to the plugin API.
svn path=/trunk/; revision=10295
2004-03-04 07:07:57 +00:00
Jörg Mayer 12a17e8f96 Note to self: If you update the code, you should update the docs too.
Update README.plugins to use ENABLE_STATIC instead of __ETHEREAL_STATIC__
Update some plugins, that were created after my changes according to the
outdated docs.
Changed occurrences of
G_MODULE_EXPORT void plugin_reg_handoff(void)
into
G_MODULE_EXPORT void
plugin_reg_handoff(void)

as the one line Python version doesn't work with the Python of Suse 9.0

svn path=/trunk/; revision=10281
2004-03-02 23:45:34 +00:00
Guy Harris 07a989fbc6 Make the default ASN.1 file be "no file", not {Ethereal install
directory}/asn1/default.tt.

svn path=/trunk/; revision=10192
2004-02-22 23:53:57 +00:00
Guy Harris 9a7cac1dff Include "report_err.h" to declare "report_open_failure()" and
"report_read_failure()".

svn path=/trunk/; revision=10167
2004-02-21 11:38:45 +00:00
Guy Harris 711a7cbfa3 Regenerate the files from the latest list of exported functions.
svn path=/trunk/; revision=10154
2004-02-21 02:21:36 +00:00
Guy Harris 091108fb80 Move "dissect_per_bit_string()" to the end, to preserve the order of
earlier entries in the table of exported functions.

svn path=/trunk/; revision=10153
2004-02-21 02:20:44 +00:00
Guy Harris 83634f54c7 Add routines that can be called from dissectors to report file open and
read errors; there are separate implementations for Ethereal (pops up an
alert box) and Tethereal (prints an error message).

Use those routines in the ASN.1 dissector.

svn path=/trunk/; revision=10152
2004-02-21 02:15:07 +00:00
Guy Harris 0a8db3ba32 Fix a typo.
svn path=/trunk/; revision=10141
2004-02-20 22:14:12 +00:00
Guy Harris 3b1a2d094f On Win32, don't treat "file not found" as an error when trying to load
the ASN.1 file if the pathname is the old default file pathname, with
the last component preceded by "/" rather than "\", to suppress
complaints if you have a preferences file saved under the old regime.

svn path=/trunk/; revision=10118
2004-02-20 02:57:08 +00:00
Gerald Combs 037c2c12e4 From Lars Roland: Add support for a combined GTK1/2 Windows installer.
svn path=/trunk/; revision=10098
2004-02-18 20:45:54 +00:00
Guy Harris eed50af495 From Erwin Rol: update RTnet plugin to the latest spec.
svn path=/trunk/; revision=10083
2004-02-18 05:33:35 +00:00
Ronnie Sahlberg 126383282c From Tomas Kukosa, add a PER helper to dissect BITSTRINGS
svn path=/trunk/; revision=10071
2004-02-16 18:31:40 +00:00
Guy Harris e6adbf5966 Add "tvb_strsize()".
svn path=/trunk/; revision=10023
2004-02-10 23:30:56 +00:00
Ulf Lamping 5297f06717 replaced every appearance of gtk_scrolled_window_new() with
scrolled_window_new().
added gtk_scrolled_window_set_policy(AUTOMATIC,AUTOMATIC) to
scrolled_window_new()
added GTK2's gtk_scrolled_window_set_shadow(GTK_SHADOW_IN)
to every place needed

svn path=/trunk/; revision=9999
2004-02-06 19:19:12 +00:00
Guy Harris dbdea1617e Update a comment.
svn path=/trunk/; revision=9981
2004-02-05 08:16:01 +00:00
Guy Harris 02d2de411a From Lars Roland: fix the declaration of "tvb_strneql()".
svn path=/trunk/; revision=9958
2004-02-02 18:01:59 +00:00
Jörg Mayer 38faa0f27b packet-dcerpc-afs4int.c
svn path=/trunk/; revision=9938
2004-02-01 06:49:25 +00:00
Gerald Combs d69016e552 Delete generated files during distclean instead of maintainerclean, so
that we pass distcheck.

svn path=/trunk/; revision=9850
2004-01-25 18:52:33 +00:00
Gerald Combs a8348ec990 Make the definition of tvb_format_text() match what's in tvbuff.h.
svn path=/trunk/; revision=9847
2004-01-25 17:53:55 +00:00
Ulf Lamping 064d5e5e07 Added the ability to compile both GTK versions 1 and 2 at the same time.
svn path=/trunk/; revision=9827
2004-01-24 20:01:36 +00:00
Jörg Mayer 7180513677 Trivial signed/unsigned warning fixes
svn path=/trunk/; revision=9824
2004-01-24 02:07:05 +00:00
Jörg Mayer 3a60501750 Change msg from guint8* to gchar* (because of tvb_format_text change)
svn path=/trunk/; revision=9802
2004-01-23 09:47:39 +00:00
Guy Harris 0f159e9f7b From Pierre Juhen: add "find_protocol_by_id()" to the list of functions
exported to plugins.

Fix some author list glitches.

svn path=/trunk/; revision=9789
2004-01-23 00:36:30 +00:00
Jörg Mayer aa411b1861 Fix warnings found by -Wstrict-prototypes
svn path=/trunk/; revision=9721
2004-01-18 15:57:47 +00:00
Jörg Mayer ab37702076 Remove unused rule to build packet-asn1-static.o
svn path=/trunk/; revision=9718
2004-01-18 14:08:28 +00:00
Guy Harris eaf42827f3 Give the IrDA dissector its own private value_string table for the frame
type in the IrLAP control field - on most UNIXes the dissector should be
able to use the table from the main program, but that doesn't currently
work on Windows.

svn path=/trunk/; revision=9717
2004-01-18 14:03:37 +00:00
Guy Harris 49a7eb8e5f Add arguments to "dissect_xdlc_control()" to specify value_string
tables, for use in the top-level item for the control field, for
unnumbered frame function codes for commands and responses.  If the
argument is null, default to the standard tables.

Use "dissect_xdlc_control()" and the #defines from "xdlc.h" for IrDA.

Use the reported length rather than the data length in the IrDA
dissector when iterating over the data in an IrDA packet.

Make "dissect_xid()" update the column information as well as the
protocol tree.  Put the slot number into the protocol tree only for
command frames - "the slot number field is undefined in discovery XID
response frames", to quote the IrLAP spec.

svn path=/trunk/; revision=9716
2004-01-18 13:02:30 +00:00
Guy Harris 369528c769 Add arguments to "dissect_xdlc_control()" to specify value_string
tables, for use in the top-level item for the control field, for
unnumbered frame function codes for commands and responses.  If the
argument is null, default to the standard tables.

Use "dissect_xdlc_control()" and the #defines from "xdlc.h" for IrDA.

Use the reported length rather than the data length in the IrDA
dissector when iterating over the data in an IrDA packet.

Make "dissect_xid()" update the column information as well as the
protocol tree.  Put the slot number into the protocol tree only for
command frames - "the slot number field is undefined in discovery XID
response frames", to quote the IrLAP spec.

svn path=/trunk/; revision=9715
2004-01-18 12:57:25 +00:00
Guy Harris 5a751f6811 Add arguments to "dissect_xdlc_control()" to specify value_string
tables, for use in the top-level item for the control field, for
unnumbered frame function codes for commands and responses.  If the
argument is null, default to the standard tables.

Use "dissect_xdlc_control()" and the #defines from "xdlc.h" for IrDA.

Use the reported length rather than the data length in the IrDA
dissector when iterating over the data in an IrDA packet.

Make "dissect_xid()" update the column information as well as the
protocol tree.  Put the slot number into the protocol tree only for
command frames - "the slot number field is undefined in discovery XID
response frames", to quote the IrLAP spec.

svn path=/trunk/; revision=9713
2004-01-18 08:32:46 +00:00
Guy Harris 9dac6d42d5 From Matthijs Melchior: allow an absent or empty file name to mean "no
type table".

svn path=/trunk/; revision=9650
2004-01-13 02:36:51 +00:00
Guy Harris 349feca55d Don't do anything exotic to get signed integral values - Ethereal's
dissectors assume a two's-complement machine (we offer our apologies to
those trying to run it on sign-magnitude IBM 7090/7094's and one's
complement Univac/Unisys 11xx machines :-)).

svn path=/trunk/; revision=9584
2004-01-07 05:13:29 +00:00
Guy Harris 542c89afd4 Use "tvb_get_guint8()", not "tvb_get_ntohs()", to fetch 1-byte numbers.
Use "proto_tree_add_item()" if you don't need the number's value.

svn path=/trunk/; revision=9582
2004-01-07 04:33:21 +00:00
Ulf Lamping 0d9679de8d removed some MSVC warnings (level 3)
svn path=/trunk/; revision=9561
2004-01-05 19:31:44 +00:00
Ulf Lamping b6a0525091 Bugfix from Lars Roland: included missing xdlc.h
svn path=/trunk/; revision=9553
2004-01-05 15:03:38 +00:00