Commit Graph

234 Commits

Author SHA1 Message Date
Guy Harris cc3540b0fb Move the code to get version information for libraries used by
libwireshark into libwireshark, and call it only in programs linked with
libwireshark.  That way, programs that don't link with libwireshark
don't have to link with libgcrypt or libgnutls solely so that they can
say that they're linked with a particular version of libgcrypt or
libgnutls.

Don't link dumpcap with libgcrypt or libgnutls any more.

svn path=/trunk/; revision=33531
2010-07-15 02:07:16 +00:00
Stig Bjørlykke d74c9aa2d0 Added get_column_resolved and set_column_resolved.
svn path=/trunk/; revision=33318
2010-06-25 07:35:52 +00:00
Bill Meier 91431d24f4 Add get_column_visible & set_column_visible
svn path=/trunk/; revision=33268
2010-06-20 16:57:50 +00:00
Guy Harris 11cb04fca6 Export smb_fid_types.
svn path=/trunk/; revision=33234
2010-06-16 07:47:18 +00:00
Anders Broman 0fe31eab26 Add dissector_table_foreach.
svn path=/trunk/; revision=33201
2010-06-09 20:25:50 +00:00
Gerald Combs fe79af8f42 From Kovarththanan Rajaratnam via bug 3500:
Sébastien's initial commit [1] didn't contain support for embedding Python on
Windows.

[1] http://anonsvn.wireshark.org/viewvc?view=rev&revision=28529


From me:

Comment out PYTHON_EMBED for now.

Start a list of known Python+CRT versions.

Add get_wspython_dir to libwireshark.def.

svn path=/trunk/; revision=33036
2010-06-01 22:20:15 +00:00
Anders Broman f8f763c18b Add string_replace to exported functions.
svn path=/trunk/; revision=32996
2010-05-27 16:24:44 +00:00
Tomas Kukosa e2082dedb6 Export value_string_ext related functions
svn path=/trunk/; revision=32971
2010-05-26 07:39:03 +00:00
Jeff Morriss 069fbb2ad3 Remove find_val_for_string
svn path=/trunk/; revision=32951
2010-05-25 20:57:51 +00:00
Guy Harris ac1b50ba2c Export prefs_capture_device_monitor_mode().
svn path=/trunk/; revision=32821
2010-05-15 20:00:09 +00:00
Jeff Morriss 729de1a635 As suggested in http://www.wireshark.org/lists/wireshark-dev/200809/msg00075.html
(as referenced in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2907 ) and
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3411 :

Write a new convenience routine for finding a conversation and, if it is not
found, create it.  The frame number and addresses are taken from pinfo (as is
the common case).

Use this function in a bunch of dissectors.

svn path=/trunk/; revision=32790
2010-05-13 18:28:34 +00:00
Anders Broman 56dcd99d07 tvbparse_len_left does not seem to exist in tvbparse.c
svn path=/trunk/; revision=32691
2010-05-06 19:15:25 +00:00
Jaap Keuter 069bc0a909 Cleanup and export the TVB parser.
svn path=/trunk/; revision=32689
2010-05-06 18:37:47 +00:00
Stig Bjørlykke 6efcb1adf0 Added an option to display seconds as hours, minutes and seconds
in the packet list, on this format: "1h 2m 3.456s".

svn path=/trunk/; revision=32683
2010-05-06 10:32:59 +00:00
Stig Bjørlykke 13cfe2964f Export add_ip_name_from_string from epan.
svn path=/trunk/; revision=32573
2010-04-27 07:41:34 +00:00
Gerasimos Dimitriadis dc2ceaa379 Insert the function which analyzes Q.708 ISPCs in libwireshark.def
svn path=/trunk/; revision=32336
2010-03-31 05:36:31 +00:00
Bill Meier c835846723 Convert tabs to spaces as per the comment in the file.
svn path=/trunk/; revision=32314
2010-03-27 18:43:12 +00:00
Anders Broman 1e784fc7fe Add proto_tree_add_bitmask_text to libwireshark.def
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4621

svn path=/trunk/; revision=32311
2010-03-27 18:19:31 +00:00
Anders Broman c62344e572 Make tap-diameter-avp.c compile on windows.
I hope strtok_s is portable.

svn path=/trunk/; revision=32134
2010-03-07 16:00:34 +00:00
Anders Broman 31622d1c34 Add oids_cleanup and oids_init to libwireshark.def to make it compile.
svn path=/trunk/; revision=32097
2010-03-03 19:23:12 +00:00
Guy Harris 6ca62ee1eb Sort the geoip_db_ routines, add geoip_db_type(), remove extra
geoip_db_get_paths().

svn path=/trunk/; revision=32056
2010-02-28 21:13:40 +00:00
Stig Bjørlykke 0132384530 Forgot that etype_vals is DATA.
svn path=/trunk/; revision=31811
2010-02-07 10:41:06 +00:00
Stig Bjørlykke d96a1078a2 Export etype_vals from libwireshark.
Moved some elements alphabetical.

This fixes request in bug 4468.

svn path=/trunk/; revision=31810
2010-02-07 10:29:41 +00:00
Gerasimos Dimitriadis ba32bc6d54 Fix for Bug 3116
wrong decoding IMSI with GSM MAP protocol

svn path=/trunk/; revision=31764
2010-02-01 21:19:56 +00:00
Gerasimos Dimitriadis 6fd1cec787 From Jakub Zawadzki:
Remove prepare_bits_string from proto.c; Use
equivalent function decode_bits_in_field in to_str.c

svn path=/trunk/; revision=31665
2010-01-25 18:26:47 +00:00
Gerasimos Dimitriadis 065546cdcb Change the prefix of the underscore escaping/unescaping
functions from g_ to ws_; Insert function names in
libwireshark.def

svn path=/trunk/; revision=31662
2010-01-25 18:14:01 +00:00
Ronnie Sahlberg cb37c28c37 Export the dissect_mscldap_string() that is used to dissect
compressed dns strings.



svn path=/trunk/; revision=31650
2010-01-25 05:38:22 +00:00
Gerald Combs 708e80bf6f Add profile_store_persconffiles.
svn path=/trunk/; revision=31338
2009-12-21 17:20:49 +00:00
Stig Bjørlykke 885093fe09 Export copy_persconffile_profile.
svn path=/trunk/; revision=31336
2009-12-21 14:41:04 +00:00
Jaap Keuter 6af0e4e002 From Richard Pecl:
Adding prefs_register_protocol_subtree to libwireshark.def

svn path=/trunk/; revision=31246
2009-12-11 17:35:10 +00:00
Tomas Kukosa f11b9097f6 Export more BER functions
svn path=/trunk/; revision=30940
2009-11-12 14:44:40 +00:00
Stig Bjørlykke 3a5c9ec3b2 Load lua scripts in the plugins directory, both global and personal.
List loaded lua scripts in Help->About->Plugins.

svn path=/trunk/; revision=30675
2009-10-23 17:52:18 +00:00
Jeff Morriss 6274e6b1ff ... and emem_init isn't (it is called directly by reassemble_test).
svn path=/trunk/; revision=30651
2009-10-21 00:12:36 +00:00
Guy Harris 7443432ed5 ep_init_chunk() and se_init_chunk() are static.
svn path=/trunk/; revision=30650
2009-10-20 23:50:31 +00:00
Guy Harris acf223006c Add req_resp_hdrs_do_reassembly to the list of functions that are
exported by libwireshark, so it's usable by plugins.

svn path=/trunk/; revision=30468
2009-10-10 09:38:37 +00:00
Ronnie Sahlberg 06cd64f64b mark the dcerpc 1632 and 3264 type dissectors exportable for windows
svn path=/trunk/; revision=30411
2009-10-09 04:11:36 +00:00
Kovarththanan Rajaratnam ad7042d2a4 calculate_crc32c -> crc32c_calculate for proper 'namespacing'
svn path=/trunk/; revision=30405
2009-10-08 15:10:43 +00:00
Jeff Morriss 3c960cd5a2 As requested by Gregory Seidman on -dev: add CRC32 functions to libwireshark.def. Use consistent indentation in crc32.c.
svn path=/trunk/; revision=30401
2009-10-08 14:28:23 +00:00
Ronnie Sahlberg d86f67b925 add a new function read_keytab_file_from_preferences(void)
that can be called by dissectoirs using kerberos keytab files.
This function will load a new keytab file on demand, if it is changed in 
the preferences.

The previous code had you save the preferences and then restart 
wireshark which is suboptimal from a user friendly perspective



svn path=/trunk/; revision=30384
2009-10-07 07:03:33 +00:00
Stig Bjørlykke e162470d6b Prime interesting fields when selecting a package, so Lua's ProtoField
can extract the field value correctly.

This fixes bug 4058.

svn path=/trunk/; revision=30252
2009-10-02 19:55:43 +00:00
Kovarththanan Rajaratnam 14d2f617c2 Refactor frame_data_init() into frame_data_set_before_dissect() and frame_data_set_after_dissect().
svn path=/trunk/; revision=30066
2009-09-22 14:23:20 +00:00
Kovarththanan Rajaratnam 2e282e7567 Introduce frame_data_cleanup() and start using it
svn path=/trunk/; revision=30023
2009-09-20 18:18:29 +00:00
Kovarththanan Rajaratnam e56f27dc99 Introduce frame_data_init() and get rid of fill_in_fdata() in tshark.c
svn path=/trunk/; revision=30021
2009-09-20 17:51:16 +00:00
Kovarththanan Rajaratnam b97cfa22fd offset_from_real_beginning() is only called with 0 as second argument, so remove the argument completely. It seems that the second argument only acts as an accumulator allowing offset_from_real_beginning() to call itself recursively. To be consistent offset_from_real_beginning() is renamed to tvb_offset_from_real_beginning().
svn path=/trunk/; revision=29844
2009-09-10 16:54:02 +00:00
Kovarththanan Rajaratnam 8c48c6835f Rename address_to_str() to ep_address_to_str() because:
1) This indicates that the string has ephemeral lifetime
2) More consistent with its existing seasonal counterpart, se_address_to_str().

svn path=/trunk/; revision=29747
2009-09-06 14:25:47 +00:00
Kovarththanan Rajaratnam 7d4cf0b966 col_custom_set_fstr() is unused. Remove it
svn path=/trunk/; revision=29722
2009-09-05 18:45:55 +00:00
Tomas Kukosa 9e282cf141 export t38_add_address, prefer destination port for T.38 conversation searching
svn path=/trunk/; revision=29564
2009-08-26 15:10:31 +00:00
Anders Broman 1108352f00 Use col_text in frame data.
- colum-utils needs more work, based on
 Didier Gautherons optimizations patch http://wiki.wireshark.org/Development/Optimization

svn path=/trunk/; revision=29489
2009-08-21 10:12:47 +00:00
Anders Broman 7ec476b88a From Didier Gautheron:
Part 2
Extracted from optimizations patch http://wiki.wireshark.org/Development/Optimization
Optimize expert info.
Slightly changed by me.

svn path=/trunk/; revision=29478
2009-08-19 18:37:13 +00:00
Kovarththanan Rajaratnam 8b515e9340 Switch a bunch of dissectors over to using tvb_new_subset_remaining()
svn path=/trunk/; revision=29446
2009-08-16 12:36:22 +00:00