obnox/wireshark/wip.git
18 years agoUse tabs to indent all credits.
guy [Sun, 18 Dec 2005 19:46:38 +0000 (19:46 +0000)]
Use tabs to indent all credits.

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

18 years agoRe-UTF-8ify.
guy [Sun, 18 Dec 2005 19:41:49 +0000 (19:41 +0000)]
Re-UTF-8ify.

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

18 years agoFrom Michael Rozhavsky:
etxrab [Sun, 18 Dec 2005 19:01:46 +0000 (19:01 +0000)]
From Michael Rozhavsky:
In my previous patch I forgot to add a OOBResync flag to the DBD packet flags field. This patch adds this flag.

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

18 years agoWork in progress ANSI MAP dissector.
etxrab [Sun, 18 Dec 2005 18:17:29 +0000 (18:17 +0000)]
Work in progress ANSI MAP dissector.

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

18 years agoFrom Martin Warnes
etxrab [Sun, 18 Dec 2005 18:15:24 +0000 (18:15 +0000)]
From Martin Warnes
Attached a small patch to top level Makefile.am to include the recently
added diamter data files chargecontrol.xml and TGPPSh.xml

From jaaap Keuter:
I've polished up the README.malloc describing ememified memory management. It's basically the same information, but made a bit more accessable. All this in response to bug 511

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

18 years agoFrom Greg Morris:
etxrab [Sun, 18 Dec 2005 18:13:05 +0000 (18:13 +0000)]
From Greg Morris:
-  New Dissector Novell Cluster Services

1. Changes Dir Handle Type from Boolean to val string
2. Changes Search Mode from Boolean to val string
3. Adds a number of additional attribute definitions
4. Adds file migration state values
5. Adds missing return values
6. Adds NCP 90,150 "File Migration Request"

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

18 years agouse #ifdef SHOW_WELCOME_PAGE for the currently disabled welcome page instead of simpl...
ulfl [Sun, 18 Dec 2005 11:36:06 +0000 (11:36 +0000)]
use #ifdef SHOW_WELCOME_PAGE for the currently disabled welcome page instead of simply #if 0

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

18 years agoIf we're going to use a handle for the data handle, we need to get a
guy [Sun, 18 Dec 2005 11:19:25 +0000 (11:19 +0000)]
If we're going to use a handle for the data handle, we need to get a
handle for that dissector.  This fixes bug 637.

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

18 years agoUpdate tcap.cnf to generate the current packet-tcap.c
guy [Sun, 18 Dec 2005 11:08:38 +0000 (11:08 +0000)]
Update tcap.cnf to generate the current packet-tcap.c

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

18 years agoGet rid of an unused variable.
guy [Sun, 18 Dec 2005 10:59:45 +0000 (10:59 +0000)]
Get rid of an unused variable.

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

18 years agoSquelch a compiler warning.
guy [Sun, 18 Dec 2005 10:58:47 +0000 (10:58 +0000)]
Squelch a compiler warning.

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

18 years agoGet rid of an unused variable.
guy [Sun, 18 Dec 2005 10:51:41 +0000 (10:51 +0000)]
Get rid of an unused variable.

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

18 years agoGet rid of an unused variable.
guy [Sun, 18 Dec 2005 10:42:29 +0000 (10:42 +0000)]
Get rid of an unused variable.

Fix a typo in svn:keywords.

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

18 years agoreassembling as enabled by default (the default was changed from disabled to enabled...
ulfl [Sun, 18 Dec 2005 03:42:01 +0000 (03:42 +0000)]
reassembling as enabled by default (the default was changed from disabled to enabled some time ago)

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

18 years agoremove // comments
lego [Sat, 17 Dec 2005 21:17:58 +0000 (21:17 +0000)]
remove // comments

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

18 years agoHave tcap subdissectors registering using functions provided by tcap and tcap manage...
lego [Sat, 17 Dec 2005 16:55:45 +0000 (16:55 +0000)]
Have tcap subdissectors registering using functions provided by tcap and tcap manage ssn registration.

In packet-sccp.c avoid not having a binding.

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

18 years agoWin32 bugfix: peeking the signal_pipe at capture_loop start seems to be unreliable
ulfl [Sat, 17 Dec 2005 00:19:47 +0000 (00:19 +0000)]
Win32 bugfix: peeking the signal_pipe at capture_loop start seems to be unreliable

Instead, simply keep the signal_pipe setting directly from the command line which is working well

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

18 years agoboth eug and edg still mentioned Ethereal 0.10.12
ulfl [Sat, 17 Dec 2005 00:16:37 +0000 (00:16 +0000)]
both eug and edg still mentioned Ethereal 0.10.12

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

18 years agoadd work in progress srvsvc.idl.
sahlberg [Fri, 16 Dec 2005 22:06:52 +0000 (22:06 +0000)]
add work in progress srvsvc.idl.

This idl file is required by wkssvc.idl since wkssvc references Platform_id

There are still some minor changes required for pidl to prettify the output for both wkssvc and srvsvc before these two dissectors should be used.

note that this idl is significantly different from the samba4 idl since it contains all the additional functions and structures the handwritten dissector has that is lacking from s4 idl.

it is expected that s4 will take up the authorative version of this idl soon so there will only be one master copy of this idl.

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

18 years agoInclude the latest diameter.xml files
etxrab [Fri, 16 Dec 2005 20:58:50 +0000 (20:58 +0000)]
Include the latest diameter.xml files

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

18 years agomodify the tool tip "Nodes in the diagram are identified with network source and...
etxrab [Fri, 16 Dec 2005 20:54:24 +0000 (20:54 +0000)]
modify the tool tip "Nodes in the diagram are identified with network source and destination address (like SS7 point codes)" remove the section between parenthesis

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

18 years agoA patch for packet-ospf.c is attached:
etxrab [Fri, 16 Dec 2005 20:37:45 +0000 (20:37 +0000)]
A patch for packet-ospf.c is attached:
 - Fix the handling of the DN-bit of options field.
 - Add a new function dissect_ospf_bitfield() to dissect a bitfield
   such as options, flags. The following functions are merged by
   using this function.
     - dissect_ospf_lls_extended_options()
     - dissect_ospf_dbd()
     - dissect_ospf_options()
     - dissect_ospf_v3_prefix_options()
 - dissect the flags and prefix-options bitfield.

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

18 years agoAs per Olivier Jacques mail,
etxrab [Fri, 16 Dec 2005 20:36:09 +0000 (20:36 +0000)]
As per Olivier Jacques mail,
"preferences/mtp3 must be changed accordingly (it is explicitly indicated that the "network address format" is ..."
Change the text and som names.

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

18 years agoIf "CLIENTNAME" is set (which indicates that we're using RDP) use
gerald [Fri, 16 Dec 2005 17:53:44 +0000 (17:53 +0000)]
If "CLIENTNAME" is set (which indicates that we're using RDP) use
"not tcp port 3389" instead of "not ip host $CLIENTNAME", since it
seems to be more reliable.

Make sure we remove dumpcap.obj when we clean.

This also tests the content-type "text/plain; charset=utf-8" for commit
messages.  Maybe Stig B's name will show up correctly now.

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

18 years agoSome updates
jmayer [Fri, 16 Dec 2005 17:52:05 +0000 (17:52 +0000)]
Some updates

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

18 years agoDon't link dumpcap against libethereal etc.
jmayer [Fri, 16 Dec 2005 17:05:37 +0000 (17:05 +0000)]
Don't link dumpcap against libethereal etc.
It might be, that I've removed too many options:

in that case, replace
@PCAP_LIBS@
by some of
@PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@

and let me know which of the options are needed

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

18 years agoJaap Keuter:
jmayer [Fri, 16 Dec 2005 16:40:31 +0000 (16:40 +0000)]
Jaap Keuter:
I'm seeing a variant of the registered Ethernet address for MS NLB
multicast being used.

Changed to remove "multicast" from the name as it isn't a multicast
address.

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

18 years agoFrom Jaap Keuter:
etxrab [Fri, 16 Dec 2005 16:37:03 +0000 (16:37 +0000)]
From Jaap Keuter:
- Editcap
Mikko Tiihonen filed bug 379 including a patch for editcap. This wasn't picked up so far. I've ported the patch to svn 16820 and included a documentation patch.

-packet-ieee80211.c
Radek Vokal of RedHat filed a bug found by Vladimir Kondratiev of Intel in the 802.11 dissector. Radek provided a sample capture and Vladimir a oneliner patch. I've ported the patch to svn 16820 and tested it against the provided capture. Works well.

-From Kan Sasaki
A patch for packet-ospf.c is attached:
 - Fix the handling of the DN-bit of options field.
 - Add a new function dissect_ospf_bitfield() to dissect a bitfield
   such as options, flags. The following functions are merged by
   using this function.
     - dissect_ospf_lls_extended_options()
     - dissect_ospf_dbd()

     - dissect_ospf_options()
     - dissect_ospf_v3_prefix_options()
 - dissect the flags and prefix-options bitfield.

- lldp Bugfix Bug 596  LLDP TIA Network Policy Decode is not correct

- Camel make it possible to dissect based on OID.

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

18 years agoFrom Jaap Keuter:
etxrab [Fri, 16 Dec 2005 16:31:46 +0000 (16:31 +0000)]
From Jaap Keuter:
Bug 373 complains about a field type. Trivial fix attached.

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

18 years agoDeclare the GTK 2.6 as the official mainline now!!!
ulfl [Fri, 16 Dec 2005 08:20:22 +0000 (08:20 +0000)]
Declare the GTK 2.6 as the official mainline now!!!

(as per mailing list discussions and mainly as the Gimp windows port also uses this version)

fix the NSIS install settings for GTK 2.6 of GTK-Wimp

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

18 years agosome minor fixes: logging and comments fixed
ulfl [Fri, 16 Dec 2005 07:43:24 +0000 (07:43 +0000)]
some minor fixes: logging and comments fixed

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

18 years agoFrom Michael Rozhavsky:
etxrab [Fri, 16 Dec 2005 07:37:28 +0000 (07:37 +0000)]
From Michael Rozhavsky:

This patch adds support for draft-nguyen-ospf-lls-05.txt, draft-nguyen-ospf-oob-resync-05.txt and draft-nguyen-ospf-restart-05.txt. These are an alternative way to do OSPF graceful restart.

These drafts are implemented by cisco and several other vendors that want to interoperate with cisco. My patch adds a dissectors for LLS TLVs.

I had to modify the existing ospf dissector as it assumed that all the data after IP header is OSPF packet. This is not true anymore and probably was not true before as well.

Also please find attached an example of OSPF packets with LLS data blocks.
--

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

18 years agoFrom Jacques, Olivier (OCBU-Test Infra)
etxrab [Fri, 16 Dec 2005 07:20:13 +0000 (07:20 +0000)]
From Jacques, Olivier (OCBU-Test Infra)

> here is a small patch for the flow graph feature. It allows
> to have SS7 nodes (network indicator/point codes) to be
> recognized as nodes in the graphs.
> The patch consists in using "pinfo->net_src" or
> "pinfo->net_dst" instead of "pinfo->src" or "pinfo->dst".
> I did some tests with other IP protocols and behavior was
> still the same as before. But I do not guaranty that it
> doesn't have some bad side effects for some protocols.

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

18 years agoFrom Grame Lunt:
etxrab [Fri, 16 Dec 2005 07:18:52 +0000 (07:18 +0000)]
From Grame Lunt:
The new oid_resolv.c OID handling is more strict on what an OID is. It now requires the OID string representation to be a sequence of dotted integers - particularly when looking up an associated name.

The X.411 and DISP dissectors have [ab]used the OID handling to support the dissection of x.411 standard-extensions (which are indicated by a single
integer) and where the OID is sufficient by itself (disp). Have a look at x411.cnf and disp.cnf

Attached is a small patch to restore the previous functionality in the new handling. If this is something you don't wish to continue to support in the OID handling, then I'll look at alternate mechanisms.

Graeme

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

18 years agoGet rid of duplicted dissector tables for MTP3 Service indicator and SCCP ssn:s
etxrab [Fri, 16 Dec 2005 07:05:50 +0000 (07:05 +0000)]
Get rid of duplicted dissector tables for MTP3 Service indicator and SCCP ssn:s

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

18 years agoFrom Graeme Lunt:
etxrab [Fri, 16 Dec 2005 06:47:22 +0000 (06:47 +0000)]
From Graeme Lunt:
* DOP - This has now been successfully tested and so is now enabled by default and workaround code removed.
Also now uses the correct EXPORTs from the other modules/dissectors.

* X509SAT - Most of the selected attributes are now supported in addition to the DirectoryString syntax attributes. This includes restoring the correct DirectoryString syntax and also providing the basic syntaxes (e.g. OBJECT IDENTIFIER, PrintableString). The latter requires a sed line in the Makefile which I assume should be OK? Not all the SAT can be defined in x509sat - so some have been included in x509if and x509af - though x509sat.cnf contains the master list and references the other dissectors where appropriate.

(I still prefer a syntax registration approach but I don't think that is going to be agreed in the short term.)

* X509IF - a mechanism to register some formating, based upon the hf_index, that is used in the cnf file.

* A couple of fixes identified by Stig.

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

18 years agoFrom Stig B
sahlberg [Fri, 16 Dec 2005 00:32:12 +0000 (00:32 +0000)]
From Stig B
Patch for COTP reassembly.

There does not seem to be any reasonable or cleaner way to fix COTP
reassembly than adding the frame.[ch] patch.

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

18 years agofrom Jaap K
sahlberg [Thu, 15 Dec 2005 23:17:01 +0000 (23:17 +0000)]
from Jaap K

fix for bug 306

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

18 years agoupdate to modbus/tcp
sahlberg [Thu, 15 Dec 2005 22:54:33 +0000 (22:54 +0000)]
update to modbus/tcp

Make the dissector new-style and add simple (better than nothing) heuristics so that it can reject some packets that are obviously not modbus.

change the constants to upper case

 the horrors:
replace two instances where tvb_memcpy()  were used to read straight into a structure to instead read the structure field by field using tvb_get_...()
This may allow the modbus dissector to actually work.

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

18 years agoFix themeing for GTK+ 2.8. This hasn't been tested under 2.6 or 2.4.
gerald [Thu, 15 Dec 2005 19:12:51 +0000 (19:12 +0000)]
Fix themeing for GTK+ 2.8.  This hasn't been tested under 2.6 or 2.4.

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

18 years agoMake sure we install the libpng and cairo DLLs if needed.
gerald [Thu, 15 Dec 2005 03:36:17 +0000 (03:36 +0000)]
Make sure we install the libpng and cairo DLLs if needed.

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

18 years agoUse the reported length, not the length, to figure out how much to
guy [Thu, 15 Dec 2005 02:44:26 +0000 (02:44 +0000)]
Use the reported length, not the length, to figure out how much to
dissect (so that we report a packet cut short by the snapshot length).

Get rid of an unused variable..

As we restore "pinfo->fragmented" from "save_fragmented" regardless of
whether we're defragmenting or not, we have to save its previous value
in "save_fragmented" regardless of whether we're defragmenting or not.

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

18 years agoremove the setting of no longer required command line options:
ulfl [Thu, 15 Dec 2005 00:48:59 +0000 (00:48 +0000)]
remove the setting of no longer required command line options:

-H (Hide capture info dialog)
-m (font to use)

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

18 years agoremove a missplaced comment
ulfl [Thu, 15 Dec 2005 00:46:23 +0000 (00:46 +0000)]
remove a missplaced comment

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

18 years agouse capture_opts_trim_iface() instead of duplicated code
ulfl [Thu, 15 Dec 2005 00:45:29 +0000 (00:45 +0000)]
use capture_opts_trim_iface() instead of duplicated code

various minor code cleanup

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

18 years agoFix Bug 628 Bugzilla 2.18.3
etxrab [Wed, 14 Dec 2005 21:46:56 +0000 (21:46 +0000)]
Fix Bug 628  Bugzilla 2.18.3
CAMEL - Connect decoding error
- Calledparty number included first two octets

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

18 years agoAdd possibility to try to dissect IP over TIPC.
etxrab [Wed, 14 Dec 2005 21:40:04 +0000 (21:40 +0000)]
Add possibility to try to dissect IP over TIPC.

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

18 years agoAdd support for GLib/GTK+ 2.8. Point to the latest tag.
gerald [Wed, 14 Dec 2005 21:19:39 +0000 (21:19 +0000)]
Add support for GLib/GTK+ 2.8.  Point to the latest tag.

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

18 years agoFrom Jaap Keuter:
etxrab [Wed, 14 Dec 2005 21:14:57 +0000 (21:14 +0000)]
From Jaap Keuter:
> Two patch files are attached adding UDP-Lite dissection to the UDP
> dissector. Wiki page is available at the normal location, including
> sample captures courtesy of Gerrit Renker of the University of
> Aberdeen Electronics Research Group. The patch has been tested with
> both the sample captures and Fuzz test.

And add Marc Petit-Huguenin to AUTHORS

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

18 years agoAdd makefiles
etxrab [Wed, 14 Dec 2005 21:04:42 +0000 (21:04 +0000)]
Add makefiles

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

18 years agoFrom Grame Lunt:
etxrab [Wed, 14 Dec 2005 21:02:56 +0000 (21:02 +0000)]
From Grame Lunt:
Attached is a patch that updates -

* DOP - This has now been successfully tested and so is now enabled by default and workaround code removed.
Also now uses the correct EXPORTs from the other modules/dissectors.

* X509SAT - Most of the selected attributes are now supported in addition to the DirectoryString syntax attributes. This includes restoring the correct DirectoryString syntax and also providing the basic syntaxes (e.g. OBJECT IDENTIFIER, PrintableString). The latter requires a sed line in the Makefile which I assume should be OK? Not all the SAT can be defined in x509sat - so some have been included in x509if and x509af - though x509sat.cnf contains the master list and references the other dissectors where appropriate.

(I still prefer a syntax registration approach but I don't think that is going to be agreed in the short term.)

* X509IF - a mechanism to register some formating, based upon the hf_index, that is used in the cnf file.

* A couple of fixes identified by Stig.

Note the patc for dop did not apply don't regenerate dissectors yet.

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

18 years agoFrom Graeme Lunt:
etxrab [Wed, 14 Dec 2005 20:45:15 +0000 (20:45 +0000)]
From Graeme Lunt:
Here is a patch for packet-ber.c that only includes the upgraded dissect_unknown_ber()

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

18 years agoFrom Marc Petit-Huguenin
etxrab [Wed, 14 Dec 2005 20:43:39 +0000 (20:43 +0000)]
From Marc Petit-Huguenin

This is a patch that add support for the latest drafts[1] in the STUN dissectors. I choose to add TURN directly in the STUN dissector instead of creating a new dissector because of the decision at the latest IETF meeting[2] to redefine TURN as an use case of STUN.

[1] ftp://ftp.rfc-editor.org/in-notes/internet-drafts/draft-ietf-behave-rfc3489bis-02.txt
ftp://ftp.rfc-editor.org/in-notes/internet-drafts/draft-rosenberg-midcom-turn-08.txt
ftp://ftp.rfc-editor.org/in-notes/internet-drafts/draft-camarillo-midcom-turn-ipv6-00.txt
[2] http://www3.ietf.org/proceedings/05nov/minutes/behave.txt

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

18 years agoUse src and dst instead of net_src.
etxrab [Wed, 14 Dec 2005 20:01:21 +0000 (20:01 +0000)]
Use src and dst instead of net_src.

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

18 years agoClose the dictionary files after reading from them.
lego [Wed, 14 Dec 2005 09:50:11 +0000 (09:50 +0000)]
Close the dictionary files after reading from them.

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

18 years agoupdate Ethereal command line options -D and -i
ulfl [Wed, 14 Dec 2005 09:43:16 +0000 (09:43 +0000)]
update Ethereal command line options -D and -i

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

18 years agodocument latest command line changes:
ulfl [Wed, 14 Dec 2005 09:16:30 +0000 (09:16 +0000)]
document latest command line changes:

new: -D to list interfaces
changed: -i will also accept indices (rather than complete names only)

text copied from the tethereal.pod file

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

18 years ago"a & b == c" is, in C, parsed as "a & (b == c)" - and if b and c are the
guy [Wed, 14 Dec 2005 07:33:07 +0000 (07:33 +0000)]
"a & b == c" is, in C, parsed as "a & (b == c)" - and if b and c are the
same, and have only one bit set, "(a & b) == c", which is what is
intended, is the same as "a & b".

In addition, we don't want to do desegmentation if "isup_apm_desegment"
isn't set, so that test should be ANDed with the other two tests.

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

18 years agoConstify a bunch of arguments and variables, to squelch compiler
guy [Wed, 14 Dec 2005 07:29:38 +0000 (07:29 +0000)]
Constify a bunch of arguments and variables, to squelch compiler
warnings.

Include "wiretap/libpcap.h" in "capture_loop.h", to get its declarations
of data structures for headers in libpcap files.  This lets us remove
the includes of "wiretap/libpcap.h from files including
"capture_loop.h".

Make "log_func_ignore()" in "tethereal.c" static, and declare some of
its arguments unused.  Also get rid of an unused variable.

Include <pcap.h> before including "wiretap/wtap-capture.h", to declare
"struct pcap_pkthdr".

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

18 years agohmmm, the include sequence might be important too ...
ulfl [Wed, 14 Dec 2005 01:45:09 +0000 (01:45 +0000)]
hmmm, the include sequence might be important too ...

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

18 years agoadd missing include
ulfl [Wed, 14 Dec 2005 00:10:23 +0000 (00:10 +0000)]
add missing include

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

18 years agoadd a new directory 'test', currently containing an alpha test (using some simple...
ulfl [Tue, 13 Dec 2005 23:15:20 +0000 (23:15 +0000)]
add a new directory 'test', currently containing an alpha test (using some simple bash scripts) of the ethereal/tethereal command line parameters. See the file README.test for details.

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

18 years agoHUGE STEP (hopefully toward the right direction):
ulfl [Tue, 13 Dec 2005 22:48:58 +0000 (22:48 +0000)]
HUGE STEP (hopefully toward the right direction):
remove a lot of redundant code from tethereal and use (move) stuff from capture_loop.c instead.

concentrate common capture related code in capture_opts.c, e.g. trying to find the right interface to capture from (command line option, preference, first usable) instead of duplicating this code over several files.

remove redundant code from dumpcap.c

this also implements command line option -D (and indexed interfaces at -i) for Ethereal and Dumpcap (as we have it in Tethereal already for a while)

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

18 years agowe don't use the command line option -W any longer, remove it from a comment
ulfl [Tue, 13 Dec 2005 22:35:28 +0000 (22:35 +0000)]
we don't use the command line option -W any longer, remove it from a comment

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

18 years agomake get_if_name() parameter if_text const, it's not changed inside
ulfl [Tue, 13 Dec 2005 22:33:55 +0000 (22:33 +0000)]
make get_if_name() parameter if_text const, it's not changed inside

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

18 years agowe are opening the file for writing....
lego [Tue, 13 Dec 2005 22:08:37 +0000 (22:08 +0000)]
we are opening the file for writing....

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

18 years agohandle sccp connections.
lego [Tue, 13 Dec 2005 22:07:09 +0000 (22:07 +0000)]
handle sccp connections.
(first step towards RANAP analysis).

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

18 years agoAvoid the default sccp.ssn range to overwrite sccp.ssns of other dissectors.
lego [Tue, 13 Dec 2005 22:04:02 +0000 (22:04 +0000)]
Avoid the default sccp.ssn range to overwrite sccp.ssns of other dissectors.

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

18 years agoChange reassembly to include first empty segment, check if SLR exists.
etxrab [Tue, 13 Dec 2005 21:14:54 +0000 (21:14 +0000)]
Change reassembly to include first empty segment, check if SLR exists.
Change pinfo->src/dst to use SS7 address for reassembly to use the correct key.

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

18 years agoThrow an exception if we have an invalid offset. Fixes bug 585.
gerald [Tue, 13 Dec 2005 17:00:03 +0000 (17:00 +0000)]
Throw an exception if we have an invalid offset.  Fixes bug 585.

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

18 years agoFix some bit mask tests - & has lower priority than !=, so "a & b != c"
guy [Tue, 13 Dec 2005 10:59:33 +0000 (10:59 +0000)]
Fix some bit mask tests - & has lower priority than !=, so "a & b != c"
means "a & (b != c)", not "(a & b) != c".

Put in a comment noting a potential problem with defragmentation,
pointed out by a compiler warning that apm_Segmentation_local_ref might
not be set before it's used.

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

18 years agoEscape question marks when they could be interpreted as part of a
guy [Tue, 13 Dec 2005 10:54:11 +0000 (10:54 +0000)]
Escape question marks when they could be interpreted as part of a
trigraph.

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

18 years agoAdd tvb_fake_unicode().
guy [Tue, 13 Dec 2005 10:09:52 +0000 (10:09 +0000)]
Add tvb_fake_unicode().

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

18 years agoUpdate from samba tree revision 12185 to 12205
jmayer [Tue, 13 Dec 2005 09:30:09 +0000 (09:30 +0000)]
Update from samba tree revision 12185 to 12205
============================ Samba log start ============
------------------------------------------------------------------------
r12205 | jelmer | 2005-12-13 02:56:04 +0100 (Tue, 13 Dec 2005) | 2 lines

Support 'TFS' command in conformance files

------------------------------------------------------------------------
============================ Samba log end ==============

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

18 years agoupdate the work-in-progress pidl generated wkssvc dissector and add a conformance...
sahlberg [Tue, 13 Dec 2005 07:53:52 +0000 (07:53 +0000)]
update the work-in-progress pidl generated wkssvc dissector and add a conformance file using the new nice TFS conformance file directive

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

18 years agoswap Trip/Close as per bug 579
sahlberg [Tue, 13 Dec 2005 06:36:30 +0000 (06:36 +0000)]
swap Trip/Close as per bug 579

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

18 years agoasn2eth.py:
gerald [Tue, 13 Dec 2005 03:48:26 +0000 (03:48 +0000)]
asn2eth.py:

Catch a TypeError that gets thrown if we don't use any conversion
specifiers during string formatting.

H.248:

Don't dereference a null pointer.  Fixes bug 626.

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

18 years agoWe should really do quit Ethereal if user asked us to do so with the -Q option!
ulfl [Tue, 13 Dec 2005 02:09:14 +0000 (02:09 +0000)]
We should really do quit Ethereal if user asked us to do so with the -Q option!

Update the window title, right after the fixed capture finished. This might be required if the loading of the capture file afterwards just fails, leaving the title unchanged.

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

18 years agodon't try to close wtap, if we couldn't load the wiretap file
ulfl [Tue, 13 Dec 2005 01:17:36 +0000 (01:17 +0000)]
don't try to close wtap, if we couldn't load the wiretap file

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

18 years agoConvert to new style dissector (hopefully done right)
jmayer [Mon, 12 Dec 2005 23:38:04 +0000 (23:38 +0000)]
Convert to new style dissector (hopefully done right)

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

18 years ago- add Debug and Default declarations.
lego [Mon, 12 Dec 2005 23:23:32 +0000 (23:23 +0000)]
- add Debug and Default declarations.
- supress unwanted console printouts.

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

18 years agoDissect type 0x0c as 'remove tag' flag
jmayer [Mon, 12 Dec 2005 23:14:41 +0000 (23:14 +0000)]
Dissect type 0x0c as 'remove tag' flag

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

18 years agoAdd a note that the Win32 tool recommendations should be strictly followed.
ulfl [Mon, 12 Dec 2005 22:29:00 +0000 (22:29 +0000)]
Add a note that the Win32 tool recommendations should be strictly followed.

Change tool headers: "UNIX:" -> "UNIX or Win32 Cygwin:"

Update output of verify_tools target

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

18 years agoUse "guint" instead of "u_int".
gerald [Mon, 12 Dec 2005 16:49:49 +0000 (16:49 +0000)]
Use "guint" instead of "u_int".

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

18 years agoReassmble apm messages.
etxrab [Mon, 12 Dec 2005 15:17:53 +0000 (15:17 +0000)]
Reassmble apm messages.

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

18 years agoFrom Hannes Gredler
etxrab [Mon, 12 Dec 2005 10:28:57 +0000 (10:28 +0000)]
From Hannes Gredler

-add codepoint to name resolution for Juniper IFMT, IFLE extension TLVs
-bugfix: DLT_JUNIPER_PPP, correct the calculate offset for PPP payload
-bugfix: DLT_JUNIPER_CHDLC, add CHDLC handler
-bugfix: add a more flexible TLV value extraction function which
   does not bail if the assumed TLV length does not match

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

18 years agoOK, if we're not going to have our "idl_types.h" different from Samba's,
guy [Mon, 12 Dec 2005 10:15:56 +0000 (10:15 +0000)]
OK, if we're not going to have our "idl_types.h" different from Samba's,
we have to put the definition of "unistr" as "[string] wchar_t *" into
the IDL files that use "unistr".

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

18 years agoAvoid to crash if we are given an unexistent field.
lego [Mon, 12 Dec 2005 01:32:31 +0000 (01:32 +0000)]
Avoid to crash if we are given an unexistent field.

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

18 years agoDone is not needed anymore;
lego [Mon, 12 Dec 2005 01:27:51 +0000 (01:27 +0000)]
Done is not needed anymore;
in Pdus transforms go before Criteria (because they are evaluated before)

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

18 years agoDissect the management protocol between 3com Netjack200 devices and the
jmayer [Mon, 12 Dec 2005 00:07:54 +0000 (00:07 +0000)]
Dissect the management protocol between 3com Netjack200 devices and the
Windows managment application.

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

18 years agoCleanup the grammar.
lego [Sun, 11 Dec 2005 23:22:14 +0000 (23:22 +0000)]
Cleanup the grammar.

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

18 years agoUpdates from samba svn
jmayer [Sun, 11 Dec 2005 22:54:43 +0000 (22:54 +0000)]
Updates from samba svn

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

18 years agoStart the function name on a new line to make it easier to search
jmayer [Sun, 11 Dec 2005 22:53:25 +0000 (22:53 +0000)]
Start the function name on a new line to make it easier to search

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

18 years agoPort some information from yersinia
jmayer [Sun, 11 Dec 2005 22:52:20 +0000 (22:52 +0000)]
Port some information from yersinia
(http://yersinia.sourceforge.net/index.html)
by Alfredo Andres and David Barroso. There's more information to be put
into Ethereal but it's a start.

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

18 years agoimplement SMB_FILE_ALL_INFO properly once and for all
sahlberg [Sun, 11 Dec 2005 22:29:39 +0000 (22:29 +0000)]
implement SMB_FILE_ALL_INFO properly once and for all

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

18 years agoThe Bitmap routine in lib/Parse/Pidl/Ethereal/NDR.pm in Pidl generates
guy [Sat, 10 Dec 2005 22:42:19 +0000 (22:42 +0000)]
The Bitmap routine in lib/Parse/Pidl/Ethereal/NDR.pm in Pidl generates
fields as BASE_DEC; bitmaps are typically displayed in hex in Ethereal,
so it should generate BASE_HEX instead.  (Submitted to
bugzilla.samba.org as bug 3313.)

A couple of the IDL files use "unistr"; define it as "[string] uint16",
so that the resulting dissectors work correctly.

Regenerate dissectors.

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

18 years agothe verify_tool target should check for /usr/bin/find (I errorneously did changed...
ulfl [Sat, 10 Dec 2005 11:14:36 +0000 (11:14 +0000)]
the verify_tool target should check for /usr/bin/find (I errorneously did changed it a while ago)

add a comment why we should check for exactly that version

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

18 years agoif passed a NULL string, make se_strdup() return the static string
sahlberg [Fri, 9 Dec 2005 22:06:38 +0000 (22:06 +0000)]
if passed a NULL string, make se_strdup() return the static string
"<NULL>" instead of dumping.

This allows callers to not have to check if the string is NULL or not.

This fixes bugs 614 615 617 620 621 and 623

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

18 years agoAdd packet-nhrp.h
etxrab [Fri, 9 Dec 2005 18:02:18 +0000 (18:02 +0000)]
Add packet-nhrp.h

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

18 years agoFix ...$ to : $
jmayer [Fri, 9 Dec 2005 16:51:56 +0000 (16:51 +0000)]
Fix ...$ to : $

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