Commit graph

220 commits

Author SHA1 Message Date
Gerald Combs
dd903ca9c8 Create an "epan/crc" directory for CRC code. Add crc-16-plain.[ch],
generated from pycrc. The command line used to generate the file is in
epan/crc/Makefile.common. I used "plain" to distinguish it from CCITT,
USB, and other 16-bit CRCs. Integrate the new CRC code into our
infrastructure.

Add crc16_plain_tvb_offset() to epan/crc16.[ch] and use it in
plugins/profinet/packet-pn-rt.c. This _should_ work correctly, but
hasn't been tested.

svn path=/trunk/; revision=27790
2009-03-18 21:59:30 +00:00
Stig Bjørlykke
ba6a734bdf Addded tfs_used_notused.
svn path=/trunk/; revision=27617
2009-03-05 22:25:36 +00:00
Anders Broman
cc5110547c Export the E212 dissection routine.
svn path=/trunk/; revision=27586
2009-03-03 18:26:07 +00:00
Jaap Keuter
4c277d1642 Get the Windows build going again.
svn path=/trunk/; revision=27535
2009-02-24 18:09:27 +00:00
Gerald Combs
95ddd62076 Add a string utility function "string_or_null" which can be used to
guarantee a non-null string value. Use it in the LDAP dissector. Fixes
the crash on Windows (and other platforms) reported in bug 3262.

svn path=/trunk/; revision=27478
2009-02-17 23:15:35 +00:00
Guy Harris
14c8a5ba7d The function I really wanted to export (not that exporting the other one
is an error...).

svn path=/trunk/; revision=27461
2009-02-15 23:26:45 +00:00
Guy Harris
1babf9a388 The joys of Windows.
svn path=/trunk/; revision=27460
2009-02-15 23:26:01 +00:00
Ulf Lamping
f904f42f9d Remove an ugly hack:
There was an ugly hack while creating the menu, that tried to detect the stat_group a stats_tree belongs to by looking at the name string. That makes it unnecessarily hard to understand how the menu is really created.

Fix: Add a new function stats_tree_register_with_group() that takes the stat_group as a parameter. Use this function where a stats_tree doesn't fit into the default "unsorted" group.

svn path=/trunk/; revision=27407
2009-02-10 03:54:55 +00:00
Jaap Keuter
5f8ed74c8a Don't remove it, but replace it with the relevant one.
svn path=/trunk/; revision=27331
2009-01-30 05:52:19 +00:00
Guy Harris
01869479da Don't mention a variable that no longer exists.
svn path=/trunk/; revision=27330
2009-01-29 23:34:39 +00:00
Tomas Kukosa
5b96cb0506 - add attributes and CDATA into XML structure
- implement functions for searching in XML structure

svn path=/trunk/; revision=27316
2009-01-28 11:25:39 +00:00
Guy Harris
a2f9627d09 Fix the URL for the RLM stuff at Cisco.
Add some heuristics to the RLM LAPD-over-UDP dissector, so as not to
misdissect as many packets.

Fetch the LAPD dissector handle only once.

Change some Boolean arguments to gboolean from int.

svn path=/trunk/; revision=27217
2009-01-13 06:54:06 +00:00
Gerald Combs
c58ea3b4eb Export prefs_find_preference.
svn path=/trunk/; revision=27168
2009-01-06 17:17:29 +00:00
Gerald Combs
c30c410fa5 Add GeoIP to the Windows build. Fix a remaining geoip_ -> geoip_db_
conversion.

svn path=/trunk/; revision=27098
2008-12-23 18:56:31 +00:00
Gerald Combs
8552316c75 geoip_get_paths -> geoip_db_get_paths.
svn path=/trunk/; revision=27069
2008-12-20 01:15:21 +00:00
Tomas Kukosa
3c6f280db4 - export tvb_memeql()
- update callsinfo->call_comment in VoIP Calls

svn path=/trunk/; revision=26844
2008-11-25 14:21:04 +00:00
Tomas Kukosa
dbe342e738 export call_dissector_only()
svn path=/trunk/; revision=26843
2008-11-25 12:04:22 +00:00
Anders Broman
04f9b031ef From Pascal Quantin:
Add 3GPP 44.018 RR Short Protocol Discriminator dissection.

svn path=/trunk/; revision=26730
2008-11-07 17:37:22 +00:00
Anders Broman
e95a3f43c8 From Pascal Quantin:
Add 3GPP Special Conformance Testing Procedures to GSM statistics

svn path=/trunk/; revision=26716
2008-11-06 21:49:21 +00:00
Stig Bjørlykke
2ec94c8f7c Show configured GeoIP paths in About->Folders
svn path=/trunk/; revision=26587
2008-10-27 20:35:52 +00:00
Stig Bjørlykke
91eca9661e Added proto_get_protocol_long_name.
svn path=/trunk/; revision=26538
2008-10-24 10:54:54 +00:00
Stig Bjørlykke
aefc1dc53e Added proto_check_field_name to libwireshark.def
svn path=/trunk/; revision=26408
2008-10-10 17:11:25 +00:00
Guy Harris
8a3dcb7922 Export read_keytab_file(), which is used outside libwireshark.
svn path=/trunk/; revision=26344
2008-10-03 06:53:55 +00:00
Anders Broman
3eadb385c3 From Alexey Neyman:
Implement dissector for IPMB (DLT_IPMB_LINUX, 209).

svn path=/trunk/; revision=25986
2008-08-12 04:44:35 +00:00
Anders Broman
082a5aec04 From Neil Piercy:
All I've done in these is to split the 3 obviously distinct protocols (BSSMAP & RP) from the still-large (and wrongly-named) DTAP (really the whole of layer 3 - it includes RR and packet parts too).

So far I've only split in a "minimum change" manner - there is clearly some tidying and structure enhancement of how the common bits are used, removing the globals just added, and great scope for consistency of white space, improved naming etc. - but I thought it best to keep it very close to the original initially to establish the split.

With some changes to make it compile on Windows.

svn path=/trunk/; revision=25917
2008-08-04 19:44:03 +00:00
Anders Broman
de0ca39861 From Stephen Donnelly:
Infiniband Dissector Plugin 1.2.0

svn path=/trunk/; revision=25876
2008-07-30 15:47:11 +00:00
Jeff Morriss
8980883a4e Move privileges.c and unicode-utils.c symbols from epan to wsutil
svn path=/trunk/; revision=25641
2008-06-30 18:07:34 +00:00
Anders Broman
bc337f0845 Export the tvb_get_bits functions.
svn path=/trunk/; revision=25487
2008-06-19 14:39:43 +00:00
Stig Bjørlykke
c64847fe16 Update all time columns when changing the time precision.
Not implemented for conversation relative and delta time yet, because this
will need a reload as they are set by the dissectors and does not exist in
the frame data.

svn path=/trunk/; revision=25452
2008-06-14 16:51:11 +00:00
Martin Mathieson
fd6090cff6 Add these functions as requested in bug 2553.
svn path=/trunk/; revision=25377
2008-05-25 23:55:36 +00:00
Jeff Morriss
a5cee04fad Move the file utility functions from wiretap to libwsutil so that
libwireshark (and the plugins using those functions) do not depend on
wiretap on Windows.

While doing that, rename the eth_* functions to ws_*.

svn path=/trunk/; revision=25354
2008-05-22 15:46:27 +00:00
Jaap Keuter
d967c76c2f Add PTV cursor API to Win32 exported functions
svn path=/trunk/; revision=25322
2008-05-20 06:29:11 +00:00
Anders Broman
3456e3bac6 Do not export the depreciated functions proto_tree_add_xx_hidden()
any more.

svn path=/trunk/; revision=25295
2008-05-14 08:01:33 +00:00
Ulf Lamping
79ebaba30a export emem_tree_foreach as requested by user
svn path=/trunk/; revision=25003
2008-04-13 21:59:39 +00:00
Stig Bjørlykke
41e9bde037 Added an option to save column widths in the recent file.
Not 100% implemented for usage with configuration profiles with 
different column layout yet, as this requires some of the recent
values to be saved in each profile.

svn path=/trunk/; revision=24949
2008-04-12 19:37:05 +00:00
Anders Broman
6dfb039a26 From Jonas Nilsson:
Add exports for packet-gsm_a decoding functions in libwireshark.def
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2427

svn path=/trunk/; revision=24944
2008-04-12 17:09:20 +00:00
Stephen Fisher
bbcd8e7529 Remove ws_strsplit from libwireshark.def to fix Windows build
svn path=/trunk/; revision=24830
2008-04-07 05:37:29 +00:00
Martin Mathieson
9a042adc6a Export proto_register_prefix()
svn path=/trunk/; revision=24766
2008-04-04 05:26:47 +00:00
Guy Harris
1f19552893 Add a missing routine (proto_initialize_all_prefixes).
svn path=/trunk/; revision=24764
2008-04-04 00:38:11 +00:00
Anders Broman
4d1463f62d Export:
dissect_gsm_map_GlobalCellId
dissect_gsm_map_lcs_Ext_GeographicalInformation

Dissect GlobalCellId 
Fix offset in GeographicalInformation
use parameter tvb when calling be_chan_type()

svn path=/trunk/; revision=24728
2008-03-25 21:49:55 +00:00
Tomas Kukosa
27afff18dd export SRTP related functions
svn path=/trunk/; revision=24694
2008-03-19 08:24:57 +00:00
Stig Bjørlykke
3b4c2011cb Export get_column_custom_field from libwireshark.
svn path=/trunk/; revision=24680
2008-03-17 23:59:49 +00:00
Gerald Combs
f9c1aac9bb From Anders: Add a couple of entries to libwireshark.def.
svn path=/trunk/; revision=24670
2008-03-17 18:13:01 +00:00
Jeff Morriss
74f8aef594 For Anders: add call_ber_oid_callback()
svn path=/trunk/; revision=24665
2008-03-17 14:17:00 +00:00
Anders Broman
85c905c9dd Add register_ber_oid_dissector_handle to the exported functions.
svn path=/trunk/; revision=24659
2008-03-16 19:38:22 +00:00
Anders Broman
2fbd6fcf1f Add register_ber_oid_dissector to the exported functions.
svn path=/trunk/; revision=24638
2008-03-15 11:40:49 +00:00
Anders Broman
7a5b90df34 From Peter Johansson :
Support for EtherCAT subdissectors.

svn path=/trunk/; revision=24566
2008-03-05 20:42:58 +00:00
Stig Bjørlykke
43272f9435 Added an option to Conversations and Endpoints to limit the list to match
the current display filter.

Some Hosts -> Endpoints cleanup.

svn path=/trunk/; revision=24368
2008-02-17 00:35:55 +00:00
Gerald Combs
eba80d5c38 Add fvalue_string_repr_len.
svn path=/trunk/; revision=24337
2008-02-15 22:35:09 +00:00
Stephen Fisher
8f3a1b0d16 Check in changes originally checked in as SVN revision 24308 (new column
type: Custom) that were backed out in SVN revision 24309.

Changes since that revision include a reworking of the handling of the
cfile/cinfo variables in epan/column-utils.c, addition of three new
functions to libwireshark.def and a bug fix to prevent a crash when no
custom columns were not in use.

Compilation verified locally on MacOS X, Linux and Windows.


svn path=/trunk/; revision=24317
2008-02-13 05:05:33 +00:00
Stig Bjørlykke
71ad1e38f8 Add get_sctp_port to libwireshark.def
svn path=/trunk/; revision=24292
2008-02-08 14:47:21 +00:00
Gerald Combs
a4a1f2a69e Make the "!="/"ne" change compile under Windows.
svn path=/trunk/; revision=24234
2008-01-31 20:18:07 +00:00
Stig Bjørlykke
f3747bf637 Hide hidden devices in "Capture Interfaces" dialog.
Added a function to check for hidden devices, which also work correctly
for plumbed devices on solaris.

svn path=/trunk/; revision=24231
2008-01-31 16:47:05 +00:00
Stig Bjørlykke
1efb7e3627 Add Luis' uat_get_table_by_name() to fetch SMI uat tables.
svn path=/trunk/; revision=24229
2008-01-30 22:50:55 +00:00
Jeff Morriss
98ae26105c Add tvb_free (as per the request in http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2219)
svn path=/trunk/; revision=24191
2008-01-25 15:34:55 +00:00
Stig Bjørlykke
1621224a86 Free allocated data in prefs_reset, removed need for uat_reload_all and
made some cleanups in profile_dlg.

svn path=/trunk/; revision=24136
2008-01-19 01:18:35 +00:00
Stig Bjørlykke
ce9142ead7 Added smi_modules_uat and smi_paths_uat to libwireshark.def.
svn path=/trunk/; revision=24134
2008-01-18 16:13:48 +00:00
Anders Broman
6cb56fba71 make per_constrained_integer handle 64bits needed for X2AP.
svn path=/trunk/; revision=24097
2008-01-15 17:59:43 +00:00
Stig Bjørlykke
a2d1e9005d This patch adds support for configuration profiles, which can be used to
configure and use more than one set of preferences and configuration files.

This can be found in the "Configuration Profiles..." menu item from the Edit
menu, or by pressing Shift-Ctrl-A.  It's also possible to start wireshark
and tshark with a named profile by using the "-C ProfileName" option.
A new status pane in the main window will show the current profile.

The configuration files currently stored in the Profiles are:
- Preferences
- Capture Filters
- Display Filters
- Coloring Rules
- Disabled Protocols
- User Accessible Tables

The recent data are by design not added to the profile.

Planned future enhancements:
- make a more convenient function to switch between profiles
- add a "clone profile" button to copy an existing profile
- make the profiles list active and accept return as OK
- save users "Decode as" in the profile
- make new, clone and deletion of profiles more secure
- make some of the recent values available in the profile

This patch also fixes:
- setting default status pane sizes
- a bug setting status pane for packets when not having main lower pane.

svn path=/trunk/; revision=24089
2008-01-14 16:40:23 +00:00
Anders Broman
de16039c51 Get rid of dissect_ber_boolean_value() and change the signature of
dissect_ber_boolean() to return a value and update asn2wrs to generate the new signature.
Regenerate all BER dissectors.

svn path=/trunk/; revision=24015
2008-01-04 16:21:07 +00:00
Anders Broman
73fee653de Get rid of ber_last_created_item(). (Final?)
svn path=/trunk/; revision=24010
2008-01-04 13:39:24 +00:00
Graeme Lunt
7a5f960bb7 Add missing proto_get_id
svn path=/trunk/; revision=23874
2007-12-15 15:17:07 +00:00
Anders Broman
e5f48395f1 Move the routines tvb_skip_wsp() to tvbuff.c
svn path=/trunk/; revision=23818
2007-12-09 17:41:16 +00:00
Gerald Combs
0fa29bb1ea Add an oid_get_default_mib_path() function, and use it to display the MIB
path in About->Folders.

svn path=/trunk/; revision=23753
2007-12-04 18:43:40 +00:00
Tomas Kukosa
a5ca7ec384 hide implementation of module list
(it makes easier change from GList to GTree as we have many modules now and GList implementation is slow for searching)

svn path=/trunk/; revision=23669
2007-11-29 07:52:52 +00:00
Stig Bjørlykke
5fa904e278 Added tvb_get_ephemeral_faked_unicode and tvb_get_ephemeral_stringz
to epan/libwireshark.def

svn path=/trunk/; revision=23619
2007-11-27 11:21:12 +00:00
Gerald Combs
dfb104544f Add relative start time, duration, and average data rate (bps) columns
to the conversation lists. Move the "copy" button down to the button bar
in order to free up some real estate. Add an nstime_cmp() function. Clean
up code in a few places.

svn path=/trunk/; revision=23516
2007-11-20 18:35:41 +00:00
Martin Mathieson
24d6a39eb0 Embedding EAP inside wimaxasncp.
svn path=/trunk/; revision=23474
2007-11-16 23:03:09 +00:00
Anders Broman
de19156225 follow_tcp_stats -> follow_stats
svn path=/trunk/; revision=23351
2007-11-04 08:11:24 +00:00
Tomas Kukosa
84488ec016 asn2wrs
- parameterized object class assignment
 - octet string with extensible size constraint
 - RELATIVE-OID type (still not supported in packet-per/ber)
packet-per
 - octet string with extensible size constraint
more dissect_per_... functions exported from libwireshark.dll
PER dissectors regenerated
add forgotten packet-h323-template.h
fix svn properties for h323 files

svn path=/trunk/; revision=23309
2007-10-29 19:25:37 +00:00
Tomas Kukosa
136de3920c new codec table for registering codecs by name
new codec plugin type
search registered codecs in rtp player
fix memory leak in rtp player

svn path=/trunk/; revision=23270
2007-10-25 09:38:15 +00:00
Tomas Kukosa
44800d2c5a H.460 new dissector implemented (H.460.2-H.460.22)
H.225
 - change RysMessage_vals to h225_Rasmessage_vals
 - use #.PDU directive for H323-UserInformation and RasMessage instead of implementing it by hands
 - register RasMessage_PDU as "h225.ras" dissector for calling it from H.460
asn2wrs make PDUs exportable

svn path=/trunk/; revision=23226
2007-10-18 13:35:57 +00:00
Graham Bloice
74b161b108 Fixed sort order, used case-insensitive ascending
svn path=/trunk/; revision=23223
2007-10-18 11:42:59 +00:00
Stig Bjørlykke
d6d6502bb7 Add eth_stdio_open to libwireshark.def
svn path=/trunk/; revision=23222
2007-10-18 11:29:32 +00:00
Tomas Kukosa
e461d0d0e8 export more types from H.225.0 and H.245 which will be necessary for H.460.x, H.323 (Annex M,R), H.501
svn path=/trunk/; revision=23069
2007-10-05 07:44:03 +00:00
Sake Blok
a592e6412c This patch adds two new column types:
- COL_REL_CONV_TIME which is used to display the time relative to the first frame that was seen in the conversation
- COL_DELTA_CONV_TIME which is used to display the delta time from the previous frame of the conversation

It also adds the function "col_set_time()" to "epan/column-utils.[ch]" which can be called from within a dissector to set either of these two columns to the appropiate time.

Last but not least, it lets the tcp-dissector make use of these two columns.


svn path=/trunk/; revision=23058
2007-10-03 14:02:08 +00:00
Tomas Kukosa
138050c4ea improvements in ROS handling in Q.932 and H.450
move common ROS code into ros/ros-*.cnf files

svn path=/trunk/; revision=22936
2007-09-24 11:01:53 +00:00
Tomas Kukosa
c50da9f742 Support of QSIG Extensions
svn path=/trunk/; revision=22888
2007-09-17 13:23:25 +00:00
Gerald Combs
d2d4fcd903 Add routines under Windows to check if npf.sys is running, and to
fetch the major OS version.  If we're running Windows >= 6 (Vista)
_and_ npf.sys isn't running, warn the user in Wireshark and TShark.
Add a recent prefs item to disable the warning in Wireshark.

svn path=/trunk/; revision=22877
2007-09-15 00:18:17 +00:00
Stig Bjørlykke
a072f5e810 Added ipprotostr to libwireshark.def
svn path=/trunk/; revision=22805
2007-09-06 14:02:35 +00:00
Stig Bjørlykke
9703036496 Added capture_wlancap to libwireshark.def
svn path=/trunk/; revision=22756
2007-08-30 19:11:36 +00:00
Gerald Combs
92802883a6 Change the "--enable-setuid-install" option to install dumpcap and TShark
setuid instead of Wireshark.  Remove the "DANGEROUS" notices, but leave it
disabled by default.  Whine if the user runs Wireshark or TShark as root.
Add a preference to disable the whining.  Add a "setuid-root" script that
can be used to switch dumpcap and TShark's setuid-ness on and off for
development and testing.  Update the release notes and README.packaging.

svn path=/trunk/; revision=22733
2007-08-30 00:24:40 +00:00
Luis Ontanon
873dd9585d add the new oid_* functions
svn path=/trunk/; revision=22663
2007-08-26 03:11:27 +00:00
Anders Broman
f2e1c5cb7d Get rid of now unused:
add_oid_name
 add_oid_str_name
l get_oid_name
 get_oid_str_name

svn path=/trunk/; revision=22652
2007-08-25 07:44:01 +00:00
Richard van der Hoff
8c39917b53 add remaining golay_* functions
svn path=/trunk/; revision=22614
2007-08-23 23:33:23 +00:00
Jeff Morriss
6f9a2673c6 Export golay_errors() to get the Windows builds going again
svn path=/trunk/; revision=22608
2007-08-23 21:11:47 +00:00
Gerald Combs
72daa58e19 Instead of converting between 802.11 frequencies and channels umpteen
different ways, add a set of common conversion routines.  Add a
"Frequency/Channel" column and fill it in where we can.  Fix RSSI column
printing in PPI.

Fix up whitespace along the way.

svn path=/trunk/; revision=22538
2007-08-17 19:34:14 +00:00
Ulf Lamping
4b215597ae experimental feature: dissector filters
add the possibility, that a dissector writer can provide (usually non-trivial) display filters specific for the protocol in question (with an example in packet-dcerpc-pn-io.c), that will appear in the GUI


svn path=/trunk/; revision=22530
2007-08-16 22:03:10 +00:00
Luis Ontanon
282e5005d2 +prefs_add_uat_preference
svn path=/trunk/; revision=22484
2007-08-10 21:07:18 +00:00
Luis Ontanon
bc50d5ceb7 Export the entire uat api
svn path=/trunk/; revision=22462
2007-08-07 20:09:18 +00:00
Guy Harris
3d18eafe0a Export dfilter_macro_build_ftv_cache() for use by Wireshark.
svn path=/trunk/; revision=22429
2007-07-31 01:32:47 +00:00
Jeff Morriss
0c6ea016ea Add fetch_tapped_data
svn path=/trunk/; revision=22412
2007-07-27 14:22:47 +00:00
Tomas Kukosa
82ea2908f1 - export some ASN.1 functions from libwireshark
- fill-in actx->created_item in dissect_ber_object_identifier()

svn path=/trunk/; revision=22406
2007-07-26 14:00:48 +00:00
Tomas Kukosa
3b5c406f8c QSIG fully implemented
svn path=/trunk/; revision=22361
2007-07-20 09:54:47 +00:00
Tomas Kukosa
b08ff956bc export prefs_register_static_text_preference()
svn path=/trunk/; revision=22201
2007-06-27 06:54:48 +00:00
Gerald Combs
0c4cb64c57 Add capture counts for PPI.
svn path=/trunk/; revision=22195
2007-06-26 19:38:44 +00:00
Stephen Fisher
de9f69f58a From Frank Stratemeier:
I added rval_to_str, match_strrval and match_strrval_idx to
libwireshark.def for being available in plugins.


svn path=/trunk/; revision=22189
2007-06-25 19:29:02 +00:00
Anders Broman
c9e31101a1 Export fragment_end_seq_next to get the Windows buildbot going again.
svn path=/trunk/; revision=22177
2007-06-24 08:13:11 +00:00
Stephen Fisher
99234c5e03 Get the Windows builds going again after my last check-in
svn path=/trunk/; revision=22039
2007-06-04 21:18:19 +00:00
Anders Broman
3aabc51db4 Add dissect_per_enumerated
svn path=/trunk/; revision=22033
2007-06-03 22:06:19 +00:00