obnox/wireshark/wip.git
18 years ago+ gui_enabled()
lego [Mon, 6 Feb 2006 23:58:07 +0000 (23:58 +0000)]
+ gui_enabled()
* make  the gui routines call-able since the first line of the script

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17190 f5534014-38df-0310-8fa8-9805f1628bb7

18 years ago- fix a leak
lego [Mon, 6 Feb 2006 23:54:54 +0000 (23:54 +0000)]
- fix a leak
- register the funnel mini-api ASAP

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17189 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoForgot to add ssl-dlg.h to the distro
jmayer [Mon, 6 Feb 2006 15:47:05 +0000 (15:47 +0000)]
Forgot to add ssl-dlg.h to the distro

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17188 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoPaolo Abeni
jmayer [Mon, 6 Feb 2006 15:00:49 +0000 (15:00 +0000)]
Paolo Abeni

the attached patch set correctly the title of the 'Follow SSL stream'
dialog, to fix one issue reported by Nail Devis.
Unfortunaly there isn't an easy way to enable the 'Follow SSL stream'
dialog only for ssl session without knowing the value of proto_ssl (the
ssl protocol id), because the ssl dissector can run on user specified
ports (configured via preferences)

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17187 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoprettify class/infolevel for GetInfo/SetInfo
sahlberg [Mon, 6 Feb 2006 13:17:11 +0000 (13:17 +0000)]
prettify class/infolevel for GetInfo/SetInfo

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17186 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agofix some variable declarations bugs (code not conforming to ANSI-C)
ulfl [Mon, 6 Feb 2006 13:06:15 +0000 (13:06 +0000)]
fix some variable declarations bugs (code not conforming to ANSI-C)

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17185 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoDeclare -ssl_stream_cb in ssl-dlg.h
jmayer [Mon, 6 Feb 2006 12:41:58 +0000 (12:41 +0000)]
Declare -ssl_stream_cb in ssl-dlg.h

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17184 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agosvn eol-style and keywords
jmayer [Mon, 6 Feb 2006 12:21:31 +0000 (12:21 +0000)]
svn eol-style and keywords

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17183 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoExport the new privilege-manipulation routines (not that they do
guy [Mon, 6 Feb 2006 11:18:38 +0000 (11:18 +0000)]
Export the new privilege-manipulation routines (not that they do
anything on Windows).

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17182 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoMove the code to relinquish set-UID and set-GID privileges to a routine
guy [Mon, 6 Feb 2006 10:27:27 +0000 (10:27 +0000)]
Move the code to relinquish set-UID and set-GID privileges to a routine
in epan/privileges.c.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17181 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agodissect the TWrp chain element
sahlberg [Mon, 6 Feb 2006 09:51:42 +0000 (09:51 +0000)]
dissect the TWrp chain element

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17180 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoadd dissection of a few more create options
sahlberg [Mon, 6 Feb 2006 09:37:56 +0000 (09:37 +0000)]
add dissection of a few more create options

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17179 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoanother gtk_resize_window()
sahlberg [Mon, 6 Feb 2006 09:32:27 +0000 (09:32 +0000)]
another gtk_resize_window()

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17178 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoFrom Paolo Abeni:
guy [Mon, 6 Feb 2006 09:09:06 +0000 (09:09 +0000)]
From Paolo Abeni:

Set up to build on Windows if we have GNU TLS.

Define "ssl_data_set()" regardless of whether we have GNU TLS or
not, as it's used in either case.

Get rid of an extra #include of epan/gnuc_format_check.h.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17177 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agogtk1.x does not have gtk_window_resize()
sahlberg [Mon, 6 Feb 2006 08:50:20 +0000 (08:50 +0000)]
gtk1.x does not have gtk_window_resize()

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17176 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoTag some #else/#endif to make it clearer what tests they handle.
guy [Mon, 6 Feb 2006 04:12:12 +0000 (04:12 +0000)]
Tag some #else/#endif to make it clearer what tests they handle.

Also, remove some trailing white space.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17175 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoAdd code to check whether the app was started with special privileges
guy [Mon, 6 Feb 2006 03:11:34 +0000 (03:11 +0000)]
Add code to check whether the app was started with special privileges
(e.g., set-UID or set-GID), and don't load user plugs if it is.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17174 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoLua uses the simple dialog
lego [Mon, 6 Feb 2006 01:29:05 +0000 (01:29 +0000)]
Lua uses the simple dialog

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17173 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoThe simple dialog
lego [Mon, 6 Feb 2006 01:27:05 +0000 (01:27 +0000)]
The simple dialog

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17172 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoNo C++/C99-style comments, please.
guy [Mon, 6 Feb 2006 01:17:29 +0000 (01:17 +0000)]
No C++/C99-style comments, please.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17171 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoInclude <epan/gnuc_format_check.h> in packet-ssl-utils.h, not
guy [Mon, 6 Feb 2006 01:14:36 +0000 (01:14 +0000)]
Include <epan/gnuc_format_check.h> in packet-ssl-utils.h, not
packet-ssl-utils.c; everything else that includes it is a header file.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17170 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoFrom Paolo Abeni: fix some warnings, etc..
guy [Mon, 6 Feb 2006 01:01:09 +0000 (01:01 +0000)]
From Paolo Abeni: fix some warnings, etc..

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17169 f5534014-38df-0310-8fa8-9805f1628bb7

18 years ago"text_window_delete_event_cb()" returns a gboolean; declare it as such.
guy [Mon, 6 Feb 2006 00:53:05 +0000 (00:53 +0000)]
"text_window_delete_event_cb()" returns a gboolean; declare it as such.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17168 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoAdd an example of tap,text window and menu usage
lego [Sun, 5 Feb 2006 20:07:19 +0000 (20:07 +0000)]
Add an example of tap,text window and menu usage

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17167 f5534014-38df-0310-8fa8-9805f1628bb7

18 years ago* move all the tap functions to lua_tap
lego [Sun, 5 Feb 2006 20:06:05 +0000 (20:06 +0000)]
* move all the tap functions to lua_tap
* change the way taps work (docs coming)
* add an at_close method to the textwindow that allows the user to set a callback function to be called when the window is closed

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17166 f5534014-38df-0310-8fa8-9805f1628bb7

18 years ago* add an option to funnel_register_menu to retap the packets right after been called
lego [Sun, 5 Feb 2006 20:02:41 +0000 (20:02 +0000)]
* add an option to funnel_register_menu to retap the packets right after been called
* add a set_close_cllback function to the textwindow mini-api to set a callback to be called when the window gets closed.
* fix few issues regarding the closing of the window

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17165 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoTrivial warning fix (no newline at end of file)
jmayer [Sun, 5 Feb 2006 11:46:00 +0000 (11:46 +0000)]
Trivial warning fix (no newline at end of file)

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17164 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoH.248 over UDP
lego [Sun, 5 Feb 2006 04:24:51 +0000 (04:24 +0000)]
H.248 over UDP

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17163 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoAllow lua to register menu items
lego [Sun, 5 Feb 2006 04:02:52 +0000 (04:02 +0000)]
Allow lua to register menu items

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17162 f5534014-38df-0310-8fa8-9805f1628bb7

18 years ago- add a register_menu funnel
lego [Sun, 5 Feb 2006 03:59:56 +0000 (03:59 +0000)]
- add a register_menu funnel
- remove the field_menu altoghether (It was not what I thought)
- move a declaration to the start of a function to allow VC6 to compile

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17161 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoUpdate from the current asn1/tcap code.
guy [Sun, 5 Feb 2006 03:56:29 +0000 (03:56 +0000)]
Update from the current asn1/tcap code.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17160 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoChange port define to something more readable
jmayer [Sun, 5 Feb 2006 03:38:50 +0000 (03:38 +0000)]
Change port define to something more readable

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17159 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agofrom JBM
sahlberg [Sun, 5 Feb 2006 03:11:13 +0000 (03:11 +0000)]
from JBM

some more functions names of new procedures in Vista

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17158 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoBuildbot found:
jmayer [Sun, 5 Feb 2006 02:33:06 +0000 (02:33 +0000)]
Buildbot found:
- p_rem_proto_data has been renamed to p_remove_proto_data
- I forgot to commit the changes to Makefile.common

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17157 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoPaolo Abeni
jmayer [Sat, 4 Feb 2006 23:44:05 +0000 (23:44 +0000)]
Paolo Abeni

I have developed an external plugin to enable ssl decryption in
ethereal.

Me

- Remove unnecessary $Id$ from acinclude.m4
- Added packet-ssl-utils.h to Makefile.common
- Fixed a few warnings

TODO

- Lots of warning fixes (see separate mail)
- Reformat function headers to read like the others do
  (return value<newline>function-name...)
- Test on Windows platform
- Review the patch to packet-ssl.c and new files packet-ssl-utils.[hc]

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17156 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agodefine funnel_register_field_menu even if it is not implemented.
lego [Sat, 4 Feb 2006 22:49:44 +0000 (22:49 +0000)]
define funnel_register_field_menu even if it is not implemented.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17155 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoGTK1 buid failed, this should fix it.
lego [Sat, 4 Feb 2006 22:44:31 +0000 (22:44 +0000)]
GTK1 buid failed, this should fix it.

s/tv/tw/

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17154 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoPropset
lego [Sat, 4 Feb 2006 20:36:04 +0000 (20:36 +0000)]
Propset

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17153 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoPropset eol-style and Id for all
lego [Sat, 4 Feb 2006 20:34:16 +0000 (20:34 +0000)]
Propset eol-style and Id for all
lua_gui.h has a licence

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17152 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoVC6 doesn't like empty structs.
lego [Sat, 4 Feb 2006 20:26:36 +0000 (20:26 +0000)]
VC6 doesn't like empty structs.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17151 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoGive lua a minimal gui.
lego [Sat, 4 Feb 2006 20:00:58 +0000 (20:00 +0000)]
Give lua a minimal gui.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17150 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoThe funneled GUI mini API.
lego [Sat, 4 Feb 2006 19:56:50 +0000 (19:56 +0000)]
The funneled GUI mini API.
A very reduced set of gui ops (by now just a text window) that can be funneled to dissectors (even plugins) via epan.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17149 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoAdd SSN:s from 3GPP TS 23.003.
etxrab [Sat, 4 Feb 2006 10:28:28 +0000 (10:28 +0000)]
Add SSN:s from 3GPP TS 23.003.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17148 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoFix a faulty def and add some 3gpp AVP:s
etxrab [Sat, 4 Feb 2006 10:27:12 +0000 (10:27 +0000)]
Fix a faulty def and add some 3gpp AVP:s

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17147 f5534014-38df-0310-8fa8-9805f1628bb7

18 years ago* packet-lua.h
lego [Fri, 3 Feb 2006 21:25:26 +0000 (21:25 +0000)]
* packet-lua.h
   * add a shiftC() function to every class for extracting values from the stack

* lua_pinfo.c
   * fix pinfo.dst pinfo.dl_dst pinfo.dl_src pinfo.net_dst pinfo.net_src

* lua_tree.c
   * ProtoTree_add_item_any() changed to use TvbRanges, a more handy way to give it optional arguments

* lua_tvb.c
   * get ByteArray up and running
   * create TvbRange class and use it to access the tvb (this class takes care of checking bounds so that exceptions are not thrown)

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17146 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoMike Duigou:
jmayer [Fri, 3 Feb 2006 09:29:54 +0000 (09:29 +0000)]
Mike Duigou:

I noticed that when you run fuzz testing from both a root account and
a user account you can run into problems because the user account tries
to use and delete temp files created by the root account and fails. This
patch uses the same scheme as used for fuzz error files for naming the
tampered file and for the error file to prevent filename/permission
collisions between temp files from different runs.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17145 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoFrom Mike Duigou:
etxrab [Fri, 3 Feb 2006 06:31:01 +0000 (06:31 +0000)]
From Mike Duigou:
- Fixes an off by one error which had the potential to write a
terminating '\0' one byte past the end of the URI address being printed.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17144 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agogsm_a: Export needed functions
etxrab [Thu, 2 Feb 2006 15:16:51 +0000 (15:16 +0000)]
gsm_a: Export needed functions
bssap: Dissect most of the IE:s

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17143 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agofix bug 400
sahlberg [Thu, 2 Feb 2006 08:34:59 +0000 (08:34 +0000)]
fix  bug 400

the choice dissector didnt sometimes use the correct next_tvb.
based on a bogus variable    'first_pass'   that was added as a qad solution to some weird CMIP problem.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17142 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agopacket-gsma_a.ch Use valuestrings for Number type etc and export the value_strings
etxrab [Wed, 1 Feb 2006 17:39:20 +0000 (17:39 +0000)]
packet-gsma_a.ch Use valuestrings for Number type etc and export the value_strings
packet-bssap.c Add BSSAP+ dissection.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17141 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agofrom Bill Meyer
sahlberg [Wed, 1 Feb 2006 08:59:59 +0000 (08:59 +0000)]
from Bill Meyer

fix for bug 714

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17140 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoFrom Greg Morris:
etxrab [Wed, 1 Feb 2006 06:09:55 +0000 (06:09 +0000)]
From Greg Morris:
epan/dissectors/ncp2222.py - Fixes the NCP group values for all NCP's. Also fixes some additional return values and cleanup.

gtk/ncp_stat.c - Fixes the NCP group values for SRT.

 gtk/service_response_time_table.c:

The SRT is broken if you hit the reload button or apply a filter. The table isn't cleared so each item in the list is duplicated and the second entries remain with initial values. This patch clears the GTK_CLIST so that the redundant entries no longer appear.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17139 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoFrom Eric Hultin:
etxrab [Wed, 1 Feb 2006 05:44:20 +0000 (05:44 +0000)]
From Eric Hultin:
This patch adds support for dissection of the DCC packet as defined in
CableLab's (http://www.cablelabs.com/) DOCSIS Radio Frequency Interface
(RFI) specification. The latest version of this specification is currently
available at
http://www.cablemodem.com/specifications/specifications20.html . Packet
formats for DCC are defined in sections 8.3.20 (DCC-REQ), 8.3.21
(DCC-RSP), and 8.3.22 (DCC-ACK) of the RFI specifications (referencing
version CM-SP-RFIv2.0-I10-051209). In addition, this patch adds support
for the DCD packet as defined in the DOCSIS Set-Top Gateway (DSG)
Specification. The latest version of this specification is currently
available at http://www.cablemodem.com/specifications/gateway.html . The
format of the DCD packet is defined in section 5.3.1 of the DSG
specification (referencing version CM-SP-DSG-I06-051209).

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17138 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoIt was hard.. but at the end I won (or at least i believe so...).
lego [Tue, 31 Jan 2006 22:22:05 +0000 (22:22 +0000)]
It was hard.. but at the end I won (or at least i believe so...).

After install hello_world.lua works.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17137 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoExport dissector_handle_t get_itu_tcap_subdissector()
etxrab [Tue, 31 Jan 2006 19:39:55 +0000 (19:39 +0000)]
Export dissector_handle_t get_itu_tcap_subdissector()

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17136 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoFix a typo
etxrab [Tue, 31 Jan 2006 18:35:36 +0000 (18:35 +0000)]
Fix a typo

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17135 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoDisplay which dissector is linked to a ssn.
etxrab [Tue, 31 Jan 2006 18:33:56 +0000 (18:33 +0000)]
Display which dissector is linked to a ssn.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17134 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agomake sure we actually get the tcpd structure pointer before we pass it as a parameter...
sahlberg [Tue, 31 Jan 2006 10:27:30 +0000 (10:27 +0000)]
make sure we actually get the tcpd structure pointer before we pass it as a parameter to a subroutine to dereference it.

fixes bug 719

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17133 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoBSSGP - Translate MCC and make MCC MNC etc vissible filters
etxrab [Tue, 31 Jan 2006 05:46:36 +0000 (05:46 +0000)]
BSSGP - Translate MCC and make MCC MNC etc vissible filters
GSMMAP - Small bugfix

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17132 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoFix a typo.
etxrab [Tue, 31 Jan 2006 05:42:55 +0000 (05:42 +0000)]
Fix a typo.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17131 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoFix description of version0_type, now that it also supports T.38.
guy [Tue, 31 Jan 2006 02:31:18 +0000 (02:31 +0000)]
Fix description of version0_type, now that it also supports T.38.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17130 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoMake sure a pointer isn't null before we try to use it. Fixes a current
gerald [Mon, 30 Jan 2006 23:29:09 +0000 (23:29 +0000)]
Make sure a pointer isn't null before we try to use it.  Fixes a current
Buildbot failure.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17129 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoFixes bug 717
lego [Mon, 30 Jan 2006 22:43:08 +0000 (22:43 +0000)]
Fixes bug 717
Tag names with digits were not recognized.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17128 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoUse dissect_e212_mcc_mnc().
etxrab [Mon, 30 Jan 2006 05:55:46 +0000 (05:55 +0000)]
Use dissect_e212_mcc_mnc().

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17127 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoFrom Martin Mathiesson:
etxrab [Mon, 30 Jan 2006 05:45:39 +0000 (05:45 +0000)]
From Martin Mathiesson:
This patch shows (as extra, generated fields) what the address and port will be after XORing again with the transaction ID. I've done IPv4, but don't have any IPv6 captures to test with...

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17126 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoFrom Andrei Emeltchenko:
etxrab [Mon, 30 Jan 2006 05:35:39 +0000 (05:35 +0000)]
From Andrei Emeltchenko:
OMA again has changed the format of the 2 RTCP packets:

RTCP Grant and RTCP Taken

In RTCP Grant instead of spare 2 bytes there are: magic number and item_len.

In RTCP Taken there is an extra field "Number of participants" like in Grant.
http://www.openmobilealliance.org/release_program/docs/CopyrightClick.asp?pck=PoC&file=V1_0-20051104-C/OMA-TS-PoC-UserPlane-V1_0-20051104-C.pdf

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17125 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoWarning fixes: no ';' at the end of functions.
jmayer [Sun, 29 Jan 2006 23:48:43 +0000 (23:48 +0000)]
Warning fixes: no ';' at the end of functions.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17124 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoMap "mtp3.net_addr_format" to "mtp3.addr_format", for backwards
guy [Sun, 29 Jan 2006 23:10:05 +0000 (23:10 +0000)]
Map "mtp3.net_addr_format" to "mtp3.addr_format", for backwards
compatibility.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17123 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoActually use the valuestring...
etxrab [Sun, 29 Jan 2006 22:12:26 +0000 (22:12 +0000)]
Actually use the valuestring...

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17122 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoFix indentation, add a /* FALLTHRU */ comment.
guy [Sun, 29 Jan 2006 21:41:44 +0000 (21:41 +0000)]
Fix indentation, add a /* FALLTHRU */ comment.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17121 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoAs suggested by Ilja Maslov, display values of
lroland [Sun, 29 Jan 2006 21:00:00 +0000 (21:00 +0000)]
As suggested by Ilja Maslov, display values of
gsm_a.cell_lac and gsm_a.cell_ci in hex
and decimal.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17120 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoFix an infinite loop in gsm_a dissector and a wrong offset in uma dissector.
lroland [Sun, 29 Jan 2006 15:54:10 +0000 (15:54 +0000)]
Fix an infinite loop in gsm_a dissector and a wrong offset in uma dissector.

This fixes bug 716.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17119 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoUse tvb_format_text() on the message, to handle non-printable characters
guy [Sun, 29 Jan 2006 12:57:14 +0000 (12:57 +0000)]
Use tvb_format_text() on the message, to handle non-printable characters
(including tabs and newlines).

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17118 f5534014-38df-0310-8fa8-9805f1628bb7

18 years ago* packet-lua.h
lego [Sun, 29 Jan 2006 03:13:26 +0000 (03:13 +0000)]
* packet-lua.h
   * add an isXxx() declaration

* packet-lua.c
   * move the dissectors, handoffs and inits tables to the registry

* lua_proto.c
   * new_protocol is now called Protocol
   * move the dissectors, handoffs and inits tables to the registry

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17117 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoAdd an option to dissect purported RTP packets with a version number of
guy [Sun, 29 Jan 2006 00:40:40 +0000 (00:40 +0000)]
Add an option to dissect purported RTP packets with a version number of
0 as T.38 rather than STUN.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17116 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoSquelch a compiler warning.
guy [Sat, 28 Jan 2006 23:27:17 +0000 (23:27 +0000)]
Squelch a compiler warning.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17115 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoExpand the set of #defines in afn.h (and give a URL for the *current*
guy [Sat, 28 Jan 2006 23:18:19 +0000 (23:18 +0000)]
Expand the set of #defines in afn.h (and give a URL for the *current*
list of address families) and the list of strings in afn.c, and use them
in packet-lldp.c instead of having it define its own.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17114 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoFix missing closing */ in comment.
guy [Sat, 28 Jan 2006 22:49:53 +0000 (22:49 +0000)]
Fix missing closing */ in comment.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17113 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoFix missing brackets in if statement.
guy [Sat, 28 Jan 2006 22:34:22 +0000 (22:34 +0000)]
Fix missing brackets in if statement.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17112 f5534014-38df-0310-8fa8-9805f1628bb7

18 years ago* lua_pinfo.c
lego [Sat, 28 Jan 2006 21:09:59 +0000 (21:09 +0000)]
* lua_pinfo.c
   * Address' gt, ge, eq, le and lt operators

* lua_proto.c
   * DissectorTable:remove and DissectorTable:add
      - can take either Proto or Dissector as third argument

* lua_tree.c
   * make sure we have a lua_etts array on which to add etts
   * ProtoItem:add_subtree() if no ett is given don't fail use the default one.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17111 f5534014-38df-0310-8fa8-9805f1628bb7

18 years ago* packet-lua.h
lego [Sat, 28 Jan 2006 03:15:45 +0000 (03:15 +0000)]
* packet-lua.h
  * SubTreeType (ett) was renamed as SubTree

* lua_tap.c
   - change the way the taps register (still to be finished so I won't comment)

* lua_tree.c
   * SubTree(ett) moved here, now it autoregisters all subtrees created at once. The user neither does need to create a SubTreeArray(eliminated) anymore nor to register it.

* lua_proto.c
   * SubTree moved out from here its "global" variables are used by lua_tree.c .
   * SubTreeArray was eliminated (now ett's "autoregister")
   * Created usertypes for
      - Pref a preference
      - Prefs all preferences of one protocol
      So far they are transparent to the user.
   * Proto has become a pseudo-table instead of a method based (registration in nicer)

* packet-lua.c
  * runtime errors go where they are meant to:
    - errors in dissector code go to the tree (a-la malformed)
    - errors in registration/handoff/init use reporte_failure()
  * no more Lua code to be compiled at runtime

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17110 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoAdd an <itemizedlist> ... </itemizedlist> to fix a buildbot build error.
jmayer [Fri, 27 Jan 2006 13:57:18 +0000 (13:57 +0000)]
Add an <itemizedlist> ... </itemizedlist> to fix a buildbot build error.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17109 f5534014-38df-0310-8fa8-9805f1628bb7

18 years ago* we need not to register the interesting fields via a tap its registration should...
lego [Thu, 26 Jan 2006 23:06:48 +0000 (23:06 +0000)]
* we need not to register the interesting fields via a tap its registration should be transparent to the user.
  - as of now I'm using a "boring" tap  (NULL packet_cb)  with a filter containing all the registered ones

* Lua code in init_lua() is not to be compiled anymore (I did)

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17108 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agorewrite of the tcp sequence number analysis code to hopefully make it cleaner and...
sahlberg [Thu, 26 Jan 2006 22:50:16 +0000 (22:50 +0000)]
rewrite of the tcp sequence number analysis code to hopefully make it cleaner and easier to maintain and extend.

i have tested it with many captures   but this used to be fragile and delicate code  so there might be some regressions that will need to be addressed once identified.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17107 f5534014-38df-0310-8fa8-9805f1628bb7

18 years ago * lua_tree.c
lego [Thu, 26 Jan 2006 20:20:55 +0000 (20:20 +0000)]
 * lua_tree.c
   * protect proto_item_add_* calls with a TRY CATCH to avoid the Lua state getting corrupted
   * new ProtoItem:add_expert_info() call

 * lua_proto.c
   * protect call_dissector() and dissector_try_*() calls with TRY CATCH to avoid the Lua state getting corrupted
   * ValueString makes no sense, get rid of it we'll use Lua's associative arrays instead

 * lua_tvb.c
   * while creating a tvb from a ByteArray copy the ByteArray's data and set the tvb's free_cb
   * check bounds before calling tvb_*() to avoid a longjmp breaking Lua
   * do not leak the string in Tvb_tostring()
   * new Tvb:get_ipv4() call
   * new Tvb:get_eth() call

 * packet-lua.[ch]
   * export lua_tvb and lua_malformed to other modules being the current tvb and the protocol_id of malformed
   * convert some Lua to C
   * do not register ValueString (eliminated)

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17106 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoAdd the abillity to translate MCC.
etxrab [Thu, 26 Jan 2006 06:54:52 +0000 (06:54 +0000)]
Add the abillity to translate MCC.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17105 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agotwo bugs less
lego [Wed, 25 Jan 2006 22:49:58 +0000 (22:49 +0000)]
two bugs less

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17104 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoOne step at a time
lego [Wed, 25 Jan 2006 22:39:07 +0000 (22:39 +0000)]
One step at a time

several fixes and additions

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17103 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agofrom Gisle Vanem:
ulfl [Wed, 25 Jan 2006 21:34:04 +0000 (21:34 +0000)]
from Gisle Vanem:

This file uses SEH which AFAIK is only available for MS Visual-C.
I build using MingW/gcc, so the attached patch is needed.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17102 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoWin32: add SEH to the new features. It might be noteworthy to the users that we proba...
ulfl [Wed, 25 Jan 2006 21:32:55 +0000 (21:32 +0000)]
Win32: add SEH to the new features. It might be noteworthy to the users that we probably won't crash for hardware exceptions caused by buggy dissectors

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17101 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoBind IuUP to RTP
lego [Wed, 25 Jan 2006 20:49:42 +0000 (20:49 +0000)]
Bind IuUP to RTP

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17100 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoUse the right tree
lego [Wed, 25 Jan 2006 20:48:37 +0000 (20:48 +0000)]
Use the right tree

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17099 f5534014-38df-0310-8fa8-9805f1628bb7

18 years ago- Add new IE:s
etxrab [Wed, 25 Jan 2006 17:56:27 +0000 (17:56 +0000)]
- Add new IE:s
- White space and comment changes.
- IE type fixes.
- Print timezone data.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17098 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoAvoid crashing when given an object of the wrong usertype
lego [Wed, 25 Jan 2006 02:08:10 +0000 (02:08 +0000)]
Avoid crashing when given an object of the wrong usertype

format_time()
format_date()
report_failure()

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17097 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoan Address class, changed the names of some classes, modified pinfo to be a table
lego [Tue, 24 Jan 2006 23:22:52 +0000 (23:22 +0000)]
an Address class, changed the names of some classes, modified pinfo to be a table

pinfo.src = Address.ip("www.xxx.com")
pinfo.col.info = "A special packet"
if (pinfo.src_port == 2) then pinfo.col.protocol = "STRANGE" end

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17096 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoit wasn't a goo idea,
lego [Tue, 24 Jan 2006 23:18:09 +0000 (23:18 +0000)]
it wasn't a goo idea,
sorry

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17095 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoReplace round() with floor(), I don't know if it's the right thing to do but at least...
etxrab [Tue, 24 Jan 2006 20:20:33 +0000 (20:20 +0000)]
Replace round() with floor(), I don't know if it's the right thing to do but at least it compiles on Windows again.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17094 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agominor code cleanup
ulfl [Tue, 24 Jan 2006 19:03:09 +0000 (19:03 +0000)]
minor code cleanup

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17093 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoadd missing capture_radiotap
ulfl [Tue, 24 Jan 2006 18:59:49 +0000 (18:59 +0000)]
add missing capture_radiotap

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17092 f5534014-38df-0310-8fa8-9805f1628bb7

18 years agoDerived some more assumptions from NLB traffic
jake [Tue, 24 Jan 2006 11:54:27 +0000 (11:54 +0000)]
Derived some more assumptions from NLB traffic

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17091 f5534014-38df-0310-8fa8-9805f1628bb7