Commit Graph

121 Commits

Author SHA1 Message Date
Anders Broman fa7c5d4aac Missed from previous commit.
svn path=/trunk/; revision=14797
2005-06-27 08:55:39 +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
Ronnie Sahlberg 070e3b0970 update libethereal.def to the new name dissect_ber_CHOICE
svn path=/trunk/; revision=14760
2005-06-26 06:28:53 +00:00
Guy Harris 4a1414164f Add some more reassembly routines.
svn path=/trunk/; revision=14430
2005-05-25 08:25:14 +00:00
Ulf Lamping d2233711d9 add get_manuf_name_if_known (returns NULL if unknown) in addition to get_manuf_name
svn path=/trunk/; revision=14405
2005-05-20 21:44:17 +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
Tomas Kukosa 130db4f23c Export of dissect_ber_null() and dissect_per_null()
svn path=/trunk/; revision=14202
2005-04-27 15:19:36 +00:00
Ulf Lamping 6e38159c25 add functions file_exists and file_identical to filesystem.c (coming from file.c)
svn path=/trunk/; revision=14057
2005-04-12 21:12:19 +00:00
Guy Harris 80c1907a36 Rename "register_ethereal_tap()" to "register_tap_listener_cmd_arg()" as
it's used to register a callback for a tap listener invoked if the
specified command line argument is specified to the "-z" flag.

Move it, along with routines to:

	look up a "-z" argument in the table constructed by
	"register_tap_listener_cmd_arg()" and either save the full
	argument to "-z" and the corresponding listener if it's found or
	return a failure indication if it isn't;

	list the available tap listeners;

	call the "init" routines for the tap listeners saved in the
	table above;

and have Ethereal and Tethereal use those routines.

svn path=/trunk/; revision=13993
2005-04-01 09:08:27 +00:00
Anders Broman 5386a90485 From Alejandro Vaquero :
Find attached a patch for SDP sessions to:
- Dissect Dynamic payload types in RTP packets
- Add the dynamic payload type description in RTP packets
- Add RTP dynamic payload types description in the Voip Calls Graph, in the RTP and SDP.

svn path=/trunk/; revision=13936
2005-03-27 20:55:14 +00:00
Gerald Combs 46b36c7fd5 Add "cleanup_dissection".
svn path=/trunk/; revision=13882
2005-03-23 16:23:30 +00:00
Anders Broman c728f022df Export q850_cause_code_vals
svn path=/trunk/; revision=13861
2005-03-22 15:34:51 +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
Ulf Lamping 58864f0b5a add capture_fr and stats_tree_branch_max_namelen
svn path=/trunk/; revision=13848
2005-03-21 09:56:55 +00:00
Ulf Lamping 0f790bc7cf fix stats_tree defs
svn path=/trunk/; revision=13847
2005-03-21 09:46:39 +00:00
Luis Ontanon 04dcf4e154 Rename all stats_tree extern functions to start with stats_tree_
svn path=/trunk/; revision=13840
2005-03-21 00:55:04 +00:00
Ulf Lamping 6e4536cb74 added two stats_tree functions
svn path=/trunk/; revision=13817
2005-03-20 00:49:57 +00:00
Lars Roland 42dcc095af Add subversion Id to libethereal.def
svn path=/trunk/; revision=13783
2005-03-16 23:22:28 +00:00
Guy Harris 5817da91dc Export another routine that's been asked for at least once.
svn path=/trunk/; revision=13757
2005-03-14 23:41:08 +00:00
Ulf Lamping b8a20994cb add missing dissector_dump_decodes function
svn path=/trunk/; revision=13723
2005-03-11 18:57:12 +00:00
Luis Ontanon e23d044fb8 add format_text() to the plugin API
svn path=/trunk/; revision=13636
2005-03-06 20:43:54 +00:00
Luis Ontanon 693f9f3838 Add register_all_plugin_tap_listeners() to libethereal.def
svn path=/trunk/; revision=13544
2005-02-27 23:43:12 +00:00
Ulf Lamping fed921bff9 add missing reinit_stats_tree symbol, so MSVC can compile again
svn path=/trunk/; revision=13536
2005-02-27 18:27:30 +00:00
Lars Roland b9325102e6 Add another function from epan/stats_tree.c to the list of exported functions in libethereal.def
Finally ethereal can be built again on windows.

svn path=/trunk/; revision=13525
2005-02-25 23:37:14 +00:00
Lars Roland f4f37d0fdf Add another function from epan/stats_tree.c to the list of exported functions in libethereal.def
svn path=/trunk/; revision=13520
2005-02-25 22:06:00 +00:00
Lars Roland 13e4abf336 Add some functions from epan/stats_tree.c to the list of exported functions in libethereal.def
svn path=/trunk/; revision=13519
2005-02-25 21:51:29 +00:00
Guy Harris 76ed6a51e1 There's no "tick_range_with_parent_name()" routine.
svn path=/trunk/; revision=13513
2005-02-25 09:56:04 +00:00
Guy Harris 35bba3db57 Add the stats tree routines.
Alphabetize, in dictionary order (case-insensitive).

svn path=/trunk/; revision=13510
2005-02-25 07:48:51 +00:00
Guy Harris 80cf6f4950 Export the routines to add 64-bit integer values, and export
tvb_ensure_length_remaining().

svn path=/trunk/; revision=13375
2005-02-10 08:10:18 +00:00
Lars Roland 197ceddab1 From Alejandro Vaquero:
h323 taps support up to 5 messages per packet now.

VoIP call analysis:
      - Collect ISUP, SIP and H323 calls from a capture and show them in window with the following info:
      - Start and Stop time of the call
      - Init

svn path=/trunk/; revision=13225
2005-02-01 12:12:35 +00:00
Ulf Lamping 1618e3697b Some dcerpc related stuff needed to write dcerpc plugin
svn path=/trunk/; revision=13163
2005-01-22 21:46:35 +00:00
Tomas Kukosa 5b3af778d6 ASN.1 PER VisibleString support
svn path=/trunk/; revision=13085
2005-01-17 10:09:43 +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
Guy Harris 3ae6f28d3f Add a "tvb_bytes_to_str_punct()" routine, which wraps
"bytes_to_str_punct()", and use it instead of extracting the bytes and
formatting them by hand.

Also, export "bytes_to_str_punct()".

svn path=/trunk/; revision=12879
2004-12-31 00:05:22 +00:00
Anders Broman 4fd11546ed Change a function name in preparation for genereating H.245 and H.225 dissectors with asn2etrh
svn path=/trunk/; revision=12872
2004-12-30 22:39:28 +00:00
Guy Harris eaa41c0480 Add "get_addr_name()" to the list of items exported by libethereal.
svn path=/trunk/; revision=12867
2004-12-30 03:32:38 +00:00
Ronnie Sahlberg 084055c895 yet another GeneralizedTime change
svn path=/trunk/; revision=12739
2004-12-13 05:31:58 +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
Lars Roland a43b6b0edf Don't export flags_set_truth from libethereal.dll. It can't be used in a plugin on win32 to initialize static variables, e.g. hf_register_info arrays.
svn path=/trunk/; revision=12660
2004-12-02 20:16:17 +00:00
Guy Harris bd960c6e54 We export flags_set_truth - add it to libethereal.def.
svn path=/trunk/; revision=12591
2004-11-24 08:55:40 +00:00
Guy Harris 39de90e5da From Tomas Kukosa: export bytes_to_str_punct().
svn path=/trunk/; revision=12355
2004-10-20 07:15:07 +00:00
Guy Harris cf5a6dc94c From Tomas Kukosa: add range preference functions.
svn path=/trunk/; revision=12344
2004-10-19 07:09:32 +00:00
Guy Harris 740ab02491 Update to reflect changes to the range API.
svn path=/trunk/; revision=12324
2004-10-17 01:38:51 +00:00
Gerald Combs 8142f2c993 Add range_convert_range and ranges_are_equal.
svn path=/trunk/; revision=12303
2004-10-15 15:08:00 +00:00
Guy Harris 981c68cd51 From Lars Roland: don't link EXTRA_OBJECTS unnecessarily with
ethereal.exe, tethereal.exe and dftest.exe.  Export mkstemp() from
libethereal.dll instead.

svn path=/trunk/; revision=12181
2004-10-02 01:54:35 +00:00
Guy Harris c351c2c4e0 Export "sminmpec_values[]" from libethereal, for the (future) benefit of
plugins ("future" because that depends on plugins linking with
libethereal.lib, which isn't yet the only way to build plugins).

svn path=/trunk/; revision=12161
2004-09-30 21:11:08 +00:00
Guy Harris bd2d4088e2 From Tomas Kukosa: export ether_to_str() from libethereal.dll.
svn path=/trunk/; revision=12094
2004-09-25 07:43:12 +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 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
Guy Harris 0f66112c84 From Dave Richards: export "host_ip_af()" (it's used by
"get_conn_cfilter()").

svn path=/trunk/; revision=11974
2004-09-11 23:26:19 +00:00
Guy Harris 5c3332c497 From Dave Richards: remove from libethereal.def some routines from
util.c, as util.c is no longer part of libethereal.

Update his e-mail address (I'm presuming it's the same person - Comcast
bought AT&T Broadband, so the domain name change makes sense).

svn path=/trunk/; revision=11967
2004-09-11 22:08:29 +00:00
Guy Harris 3c66466029 Add the new "proto_registrar_dump_values()" routine, as it's used by
Ethereal and Tethereal to handle "-G values".

svn path=/trunk/; revision=11957
2004-09-10 22:55:22 +00:00
Ulf Lamping 26afcbd9cc First working implementation of "Decode As" for DCE-RPC interface bindings. Ethereal needs to capture the DCE-RPC bind sequence, to get a relationsship between the interface UUID and the current conversation. If this binding wasn't captured, one can use "Decode As" and choose the interface from a list corresponding to a specific conversation. Currently "only" implemented for connectionoriented (TCP) DCE-RPC, but connectionless is a work in progress.
svn path=/trunk/; revision=11924
2004-09-07 16:19:56 +00:00
Ulf Lamping 7125550f19 rename add_conv_to_dcerpc_bind_table to dcerpc_add_conv_to_bind_table and don't use packet_info as a parameter
svn path=/trunk/; revision=11916
2004-09-06 19:51:33 +00:00
Guy Harris f06c1b5fb0 The packet range stuff knows about capture_file structures, so it's
really more of an Ethereal/Tethereal component than a libethereal
component (nothing else in libethereal knows about capture files); move
it back out of libethereal.  (The range stuff doesn't; we leave it in
libethereal.)

svn path=/trunk/; revision=11898
2004-09-04 20:02:11 +00:00
Guy Harris 3c7631aa32 Split the pure range stuff out into separate files, exporting their own
functions.

svn path=/trunk/; revision=11892
2004-09-04 01:32:13 +00:00
Guy Harris 478ba9a691 Rename "range.c" and "range.h" to "packet-range.c" and "packet-range.h";
they should ultimately be split into files with routines that handle
ranges, which are just subsets of [0,2^32), and packet ranges, which are
subsets of the packet list, possibly specified by a range.

Move them into epan, so they can be used by, for example, utilities that
handle ranges, such editcap.

svn path=/trunk/; revision=11890
2004-09-04 00:53:16 +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
Gerald Combs 2875ddd269 Move convert_string_to_hex() and convert_string_case() from gtk/find_dlg.c
to epan/strutil.c

svn path=/trunk/; revision=11733
2004-08-13 02:39:49 +00:00
Olivier Biot a11651260b From Lars Roland: With this patch print.(c/h) and ps.(c/h) don't belong to
the DISSECTOR_SUPPORT_xy files any longer and as a consequence they 
won't be linked into libethereal.

svn path=/trunk/; revision=11559
2004-07-29 00:11:14 +00:00
Olivier Biot 21cb72b093 Partial fix after some files being moved between directories.
There is still a problem with MSVC builds as 3 objects get built twice (once
at the top level, and once in epan: xmlstub.obj, print.obj and ps.obj).

This fix allows to compile again with MSVC if debug symbols are NOT enabled
while building Ethereal.  Do this by editing config.nmake and replacing
"LOCAL_LDFLAGS=/DEBUG" with "LOCAL_LDFLAGS=". In other words: Ethereal CANNOT
be built right now with debug symbols in the object code, for MSVC builds.

svn path=/trunk/; revision=11557
2004-07-28 22:41:19 +00:00
Ulf Lamping c54fcb2c02 removed print_packet_header, as it seems to be no longer used/available and will result in a link error
svn path=/trunk/; revision=11552
2004-07-28 16:48:58 +00:00
Gerald Combs 59be185931 From Anders Broman: Update libethereal.def to match recent changes in print.c.
svn path=/trunk/; revision=11525
2004-07-26 14:11:28 +00:00
Gerald Combs e7eaa72a89 Add more entries.
svn path=/trunk/; revision=11350
2004-07-09 18:42:35 +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 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
Gerald Combs e458d288cf From Lars Roland: Add have_tap_listeners() and rtp_payload_type_vals
to libethereal.def.

svn path=/trunk/; revision=11092
2004-06-03 16:29:39 +00:00
Guy Harris d346faf38a From Gisle Vanem: export more functions from libethereal, as they're
needed by Ethereal itself.

svn path=/trunk/; revision=10956
2004-05-22 08:12:33 +00:00
Guy Harris f3a8b09eac From Gisle Vanem: export dfilter_dump from libethereal for the benefit
of dftest.

svn path=/trunk/; revision=10908
2004-05-15 21:57:52 +00:00
Guy Harris cb6f40213b From Lars Roland: fix some MSVC build problems.
svn path=/trunk/; revision=10835
2004-05-09 18:54:00 +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