Commit Graph

4833 Commits

Author SHA1 Message Date
Luis Ontanon 9709011a9b Implement a proposal from Elefterios Gabriel for SCCP:
Add a table of DPCs and SSNs that allow to override the protocol that would be choosen
so that the same SSN can use two different protocols in two different DPCs.

I did not believe it someone could have done it, then I saw the captures...


svn path=/trunk/; revision=21321
2007-04-03 19:08:00 +00:00
Jeff Morriss 755698ebcf Fix bug 1508:
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1508

Dissect ISUP CIC as 14 bits in ANSI (instead of 12 bits like in ITU)


svn path=/trunk/; revision=21310
2007-04-03 06:27:18 +00:00
Richard van der Hoff 2c14858aef From Mike Duigou:
The enclosed patch corrects a problem where jxta elements were being added to the protocol tree for segments that did not contain complete jxta frames. This patch ensures that the jxta proto elements are only added those the segments that end a complete, assembled jxta frame.

The patch has been fuzz tested with a broad selection of jxta captures and ran successfully overnight for over 4000 iterations.


svn path=/trunk/; revision=21305
2007-04-03 01:31:22 +00:00
Stephen Fisher 4d185950d7 From Donald White:
A partial RFC 2508 dissector for packet-ppp.c


svn path=/trunk/; revision=21304
2007-04-02 23:45:38 +00:00
Luis Ontanon b68f7da564 Add decoding of TFO Codec and Codec List
svn path=/trunk/; revision=21302
2007-04-02 21:47:54 +00:00
Jörg Mayer 92dcf79a78 - Use proto_tree_add_item instead of proto_tree_add_(u)int
in many places.
- Seperate decoding of magic and version.
- Explicitely display the padding bytes.

svn path=/trunk/; revision=21301
2007-04-02 16:39:54 +00:00
Jeff Morriss a5f4e7b85a Make RX a new style dissector: return 0 if there isn't at least 28 bytes of message or if it receives an unknown Type. Add a check of tvb length to README.developer's cut-n-paste dissector code.
svn path=/trunk/; revision=21300
2007-04-02 08:25:43 +00:00
Anders Broman 98cc46f2a4 Add comments
svn path=/trunk/; revision=21299
2007-04-02 06:49:28 +00:00
Sebastien Tandel 1382c71a43 First step of TCP dissector refactoring.
I have a dream today.
I have a dream that one day the TCP dissector shall become human-readable. :)

svn path=/trunk/; revision=21297
2007-04-01 16:04:04 +00:00
Sebastien Tandel 3af0bc1b22 From Sake Blok :
Fix for Bug 1136 (TCP Checksum Validation)

TCP cksum 0xffff should not appear in TCP headers. RFC 1624 explains that it
can be generated by a (not-so-good) algorithm for incremental updates to the
tcp-checksum.
New behavior of wireshark when having cksum == 0xffff :
  - use "Checksum: 0xffff [should be 0x0000 (See RFC 1624)]" in the
    packet-detail pane
  - set tcp.checksum_good to FALSE (just like checksum-offload packets)
  - set tcp.checksum_bad to FALSE (just like checksum-offload packets)
  - Generate an expert warning: "TCP Checksum 0xffff instead of 0x0000 (See RFC 1624)"
  - add "[TCP CHECKSUM 0xFFFF]" instead of "[TCP CHECKSUM BAD]" to COL_INFO

svn path=/trunk/; revision=21295
2007-04-01 15:42:08 +00:00
Anders Broman b1454b6fbc Common dissection of GOB.
svn path=/trunk/; revision=21292
2007-03-31 21:50:03 +00:00
Anders Broman bcd8023f28 Properly NULL terminate string (str[0]='\0';)
Let h263_proto_tree_add_bits return the value
Find more starcodes
Add picture type to Info col(P/I)

svn path=/trunk/; revision=21288
2007-03-31 11:47:14 +00:00
Stephen Fisher 763a80f5bb Fix more warnings
svn path=/trunk/; revision=21286
2007-03-30 21:20:57 +00:00
Sebastien Tandel 3db746a5c2 - use of proto_tree_add_item whenever possible
- follows the same rules as the one in ipv4 dissector for
ipv6_[src|dst|addr][_host] items.
- use proto_tree_add_item for displaying the name of the parsed options.
- added header type value_string
- add an expert info for invalid jumbo value and invalid router alert
length.
- correction of invalid jumbo payload length
- get rid of variable declaration after statement

svn path=/trunk/; revision=21283
2007-03-30 14:43:55 +00:00
Sebastien Tandel 3820cff29c ep_malloc -> ep_alloc !!
svn path=/trunk/; revision=21281
2007-03-30 08:27:20 +00:00
Sebastien Tandel 76a9512a73 remove some g_malloc/g_free
svn path=/trunk/; revision=21280
2007-03-30 08:22:08 +00:00
Sebastien Tandel 01faab8977 update of homeplug dissector with the use of ptvcursor subtree management
functions.


svn path=/trunk/; revision=21278
2007-03-30 00:38:58 +00:00
Stephen Fisher 82b2c83149 Fix some more warnings
svn path=/trunk/; revision=21273
2007-03-29 18:09:13 +00:00
Luis Ontanon 8064e3cc64 When there are multiple mtp3 packets on a single sctp packet (m2ua) have each one has its own pcs and tap structure
svn path=/trunk/; revision=21271
2007-03-29 12:25:50 +00:00
Luis Ontanon 455bb07b1f remove debugging printf() calls left in the code.
svn path=/trunk/; revision=21270
2007-03-29 12:24:04 +00:00
Ronnie Sahlberg 35b1d57ea9 update WZCSVC idl and regenerate the dissector
svn path=/trunk/; revision=21266
2007-03-29 04:24:17 +00:00
Ronnie Sahlberg 78c12b2709 update INITSHUTDOWN and SRVSVC and regenerate with patched PIDL
svn path=/trunk/; revision=21265
2007-03-29 04:12:16 +00:00
Ronnie Sahlberg 74e19c696e regenerate the dissectors with an even newer patched version of pidl to add two more pragmas
you need this patch ontop of svn pidl to regenerate the files :

Index: lib/Parse/Pidl/Wireshark/NDR.pm
===================================================================
--- lib/Parse/Pidl/Wireshark/NDR.pm     (revision 22005)
+++ lib/Parse/Pidl/Wireshark/NDR.pm     (working copy)
@@ -916,6 +916,14 @@
        $res{headers} .= "#ifdef HAVE_CONFIG_H\n";
        $res{headers} .= "#include \"config.h\"\n";
        $res{headers} .= "#endif\n\n";
+
+       $res{headers} .= "#ifdef _MSC_VER\n";
+       $res{headers} .= "#pragma warning(disable:4005)\n";
+       $res{headers} .= "#pragma warning(disable:4013)\n";
+       $res{headers} .= "#pragma warning(disable:4018)\n";
+       $res{headers} .= "#pragma warning(disable:4101)\n";
+       $res{headers} .= "#endif\n\n";
+
        $res{headers} .= "#include <glib.h>\n";
        $res{headers} .= "#include <string.h>\n";
        $res{headers} .= "#include <epan/packet.h>\n\n";



svn path=/trunk/; revision=21262
2007-03-29 02:22:23 +00:00
Ronnie Sahlberg c46d3f3796 fixup the idl to always use pointer for out parameters
regenerate with patched pidl


svn path=/trunk/; revision=21261
2007-03-29 02:09:48 +00:00
Ronnie Sahlberg 96f0c77591 regenerate these dissectors using a patched pidl to add some extra pragmas to keep ms compilers happy
the pidl patch required :
Index: lib/Parse/Pidl/Wireshark/NDR.pm
===================================================================
--- lib/Parse/Pidl/Wireshark/NDR.pm     (revision 22005)
+++ lib/Parse/Pidl/Wireshark/NDR.pm     (working copy)
@@ -916,6 +916,14 @@
        $res{headers} .= "#ifdef HAVE_CONFIG_H\n";
        $res{headers} .= "#include \"config.h\"\n";
        $res{headers} .= "#endif\n\n";
+
+       $res{headers} .= "#ifdef _MSC_VER\n";
+       $res{headers} .= "#pragma warning(disable:4005)\n";
+       $res{headers} .= "#pragma warning(disable:4013)\n";
+       $res{headers} .= "#endif\n\n";
+
+
+
        $res{headers} .= "#include <glib.h>\n";
        $res{headers} .= "#include <string.h>\n";
        $res{headers} .= "#include <epan/packet.h>\n\n";



svn path=/trunk/; revision=21260
2007-03-29 01:38:59 +00:00
Ronnie Sahlberg 2c0449ad5e update efs and fix conformance file to eliminate some warnings
svn path=/trunk/; revision=21259
2007-03-29 01:06:51 +00:00
Ronnie Sahlberg 79ee9a4786 update dfs and regenerate
svn path=/trunk/; revision=21258
2007-03-29 00:58:35 +00:00
Ronnie Sahlberg e873c57309 update atsvc to latest idl
svn path=/trunk/; revision=21257
2007-03-29 00:47:41 +00:00
Ronnie Sahlberg f0756aee6e update winreg to the latest idl
svn path=/trunk/; revision=21256
2007-03-29 00:26:35 +00:00
Ronnie Sahlberg 0ee2141ab0 regenerate winreg using the latest pidl. almost all warnings are now gone
svn path=/trunk/; revision=21255
2007-03-29 00:15:41 +00:00
Ronnie Sahlberg 4fa079b941 From
Martin Sustrik 


here's a patch to AMQP dissector. The only change is that when there are
seceral AMQP frames in single TCP packet, all of them are referred in
the info column.



svn path=/trunk/; revision=21254
2007-03-28 22:16:43 +00:00
Stephen Fisher 8fd3ee0560 Remove almost all of the casts I committed recently and in place of
them, add -Wno-pointer-sign to CFLAGS when gcc will accept it.


svn path=/trunk/; revision=21253
2007-03-28 21:55:11 +00:00
Luis Ontanon 339f989724 USM can be any length not just 3
svn path=/trunk/; revision=21250
2007-03-28 19:30:24 +00:00
Stephen Fisher 424abc227b From Sebastien Tandel:
Remove svn:executable on packet-amqp.c


svn path=/trunk/; revision=21247
2007-03-28 16:21:48 +00:00
Graham Bloice 0c41c53935 Fixed warnings on MS VC 6.0
svn path=/trunk/; revision=21245
2007-03-28 09:03:14 +00:00
Stephen Fisher 85a464c980 Fix a bunch of warnings, add svn:keywords Id and svn:eol-style native
to packet-iuup.c.
 

svn path=/trunk/; revision=21244
2007-03-28 07:06:39 +00:00
Jörg Mayer 4b0b2c2894 Fix for http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1437
It is sufficient to make tapa discovery packets a new style dissector,
don't handle them via an additional heuristic dissector.

svn path=/trunk/; revision=21243
2007-03-28 07:03:26 +00:00
Ulf Lamping 9e78e405c0 from Gisle Vanem: some more #pragma's that MingW don't like
svn path=/trunk/; revision=21240
2007-03-28 03:56:24 +00:00
Jörg Mayer 9de252158e warning fixes
svn path=/trunk/; revision=21239
2007-03-28 03:55:27 +00:00
Stephen Fisher fa3af74ba7 Fix a warning in packet-bittorrent.c I didn't fix right the first time and try to get the Win32 buildbot going again in packet-ndmp.c.
svn path=/trunk/; revision=21238
2007-03-27 23:33:59 +00:00
Stephen Fisher 8dabc0ded1 Fix some more warnings under gcc 4.0
svn path=/trunk/; revision=21237
2007-03-27 23:14:13 +00:00
Luis Ontanon fc9e7b97ba remove debugging printouts.
svn path=/trunk/; revision=21236
2007-03-27 23:06:24 +00:00
Luis Ontanon 9dbe9adf50 Another iteration over sctp calls (RANAP/BSSAP) a step towards TCAP/(MAP/IMAP/CAMEL)
- Fix SUA calls (I would need some more traces to test this)


svn path=/trunk/; revision=21235
2007-03-27 23:00:55 +00:00
Luis Ontanon 8c6ad121d8 megaco
- replace #pragma for #include
- move register function and remove prototype

h248
- have dissector being called through megaco instead of registering to the same sctp.ppi


svn path=/trunk/; revision=21234
2007-03-27 22:56:07 +00:00
Stephen Fisher ab8f589336 Fix about 100 simple to fix warnings from gcc 4.0 in epan/dissectors
svn path=/trunk/; revision=21233
2007-03-27 22:50:11 +00:00
Luis Ontanon ddddf2d668 Have retransmissions added only once per retransmitted packet.
svn path=/trunk/; revision=21232
2007-03-27 22:41:28 +00:00
Ulf Lamping f1a58d41d4 from Peter Johansson:
compilation warnings fixed

svn path=/trunk/; revision=21230
2007-03-27 21:20:19 +00:00
Anders Broman 898b597dfb Common handling of picture layer.
svn path=/trunk/; revision=21229
2007-03-27 21:10:35 +00:00
Ulf Lamping a66bf7f559 as Gisle Vanem noted that MingW doesn't "like" the #pragmas:
change #ifdef _WIN32 -> #ifdef _MSC_VER around pragma warnings

svn path=/trunk/; revision=21228
2007-03-27 21:09:34 +00:00
Jeff Morriss f50a031bff Include ws_strsplit.h to override glib 1.2's (buggy) g_strsplit() as per rev 20804
svn path=/trunk/; revision=21226
2007-03-27 10:15:28 +00:00
Ulf Lamping c2408435bc fix the remaining MSVC warnings by setting individual #pragma(warning:disable) settings - this is very certainly not the way to go, but the way to prevent additional warnings rushing in ...
svn path=/trunk/; revision=21221
2007-03-27 02:14:56 +00:00
Stephen Fisher d565967b58 From Peter Johansson:
Fix warnings


svn path=/trunk/; revision=21214
2007-03-26 21:16:21 +00:00
Luis Ontanon 395f48b869 add context tracing and tap to packet-megaco.c
(have to fix the matching of wildcarded terminations as it doesn't work as it should)

svn path=/trunk/; revision=21212
2007-03-26 21:10:58 +00:00
Ronnie Sahlberg d5d5159b6d From Sebastien Tandel
fixes for various compiler warnings

svn path=/trunk/; revision=21210
2007-03-26 11:06:26 +00:00
Ronnie Sahlberg 29440eb4a9 from Jon Smirl
add defines for data direction (which direction in/out is data being transferred for this particylar request/response pair)
and a mask for which bits of the byte contains the type.



svn path=/trunk/; revision=21207
2007-03-26 07:58:17 +00:00
Ronnie Sahlberg 80fe723473 From Jon Smirl
add a whole bunch of new descriptor types


svn path=/trunk/; revision=21199
2007-03-26 01:59:02 +00:00
Ronnie Sahlberg f88aa196a0 From
Charles Lepple


This patch enables packet-usb.c to display all descriptors in the GET
CONFIGURATION request, regardless of whether we know how to decode
them. (All descriptors in that request share the same first two
bytes.)

It also adds the HID descriptor type (not the report descriptor,
though - that is buried in a class request, not a device request). I
am still working on actually decoding this descriptor.



svn path=/trunk/; revision=21197
2007-03-26 01:41:50 +00:00
Ronnie Sahlberg d3283d23ea From
Martin Sustrik

additions to AMQP dissector and prettifications to the information column



svn path=/trunk/; revision=21196
2007-03-26 01:34:06 +00:00
Ronnie Sahlberg 09814fac51 From a Jon Smirl patch
rename the conversation field "class" to "interfaceClass"


svn path=/trunk/; revision=21194
2007-03-25 23:51:40 +00:00
Ronnie Sahlberg 747b009566 From Jon Smirl
change the private data pointer name from  masstorage to class_data
since there will be future class specific dissectors that will also want to hang
some extra data off these structures



svn path=/trunk/; revision=21193
2007-03-25 22:53:35 +00:00
Luis Ontanon 296a77efdc migrate packet-megaco.c from plugins/megaco to epan/dissectors
svn path=/trunk/; revision=21191
2007-03-25 21:59:16 +00:00
Luis Ontanon 0b3d2a90ff Migrate context tracing code from packet-h248.[ch] to gcp.[ch], so that the same code can be used by megaco (upcoming).
svn path=/trunk/; revision=21189
2007-03-25 21:42:26 +00:00
Guy Harris fecd335762 Before accepting a packet in a heuristic dissector, don't fetch any data
without first checking to make sure it's available.

Clear the Info column as soon as we've accepted a packet.

In the "MPEG" dissector, if no subdissector accepts the packet, dissect
it as just "MPEG" data.

svn path=/trunk/; revision=21187
2007-03-25 21:10:10 +00:00
Guy Harris 79561053bb Before we've decided to dissect a frame, don't fetch any data before
checking to make sure it's available.

Don't dissect an audio frame if it doesn't have a valid version or layer
value.

Don't do anything with the columns until we've decided to accept a
frame.

The register routines are only called once; we don't have to check
whether they've already been called.

svn path=/trunk/; revision=21186
2007-03-25 21:07:24 +00:00
Ronnie Sahlberg 58b174de83 take the address to the structure and not the address to the first element of the structure when doing a SET_ADDRESS
svn path=/trunk/; revision=21178
2007-03-25 11:20:09 +00:00
Ronnie Sahlberg ab407b08cf Change USB address structure back to 8 bytes in length.
It is suboptimal to have the endpoint both being the "port" and also 4 bytes out of the address.
But it looks better to have addresses as <device>.<endpoint> .


svn path=/trunk/; revision=21177
2007-03-25 11:15:09 +00:00
Ronnie Sahlberg 1053745b1c create a tap for usb so that we can do conversation/host lists
svn path=/trunk/; revision=21176
2007-03-25 09:55:49 +00:00
Ronnie Sahlberg ab2e40bcb5 Add a small example on how to prettify the AMQP dissector
svn path=/trunk/; revision=21175
2007-03-25 08:49:47 +00:00
Ronnie Sahlberg 0e6e4b0795 From Martin Sustrik
New protocol: AMQP


svn path=/trunk/; revision=21174
2007-03-25 08:26:44 +00:00
Ronnie Sahlberg 3689e6f460 unbreaking the usb dissector
since dlt189 was introduced   the dissector has been suboptimal


assuming the capture   usb_memory_stick.pcap on the wiki shows what this linktype
should look like, this patch
- adds request in/response in/time  generated fields to the dissect pane
- fixes the tracking of what is a request and what is a response (the old code just can not have worked!)
- fixes conversation tracking to work (dont add the port/endpoint into the length of the address)
- handles some mysterious extra 8 bytes prepended to a lot of different packets.



svn path=/trunk/; revision=21173
2007-03-25 05:20:56 +00:00
Ronnie Sahlberg 8d8f94f1ae fix a bug (found by compiler warning) where we initialize the wrong variable.
svn path=/trunk/; revision=21169
2007-03-24 21:56:14 +00:00
Jeff Morriss 109388d263 Clean up some more warnings: unused variables, unitialized variables, wrong format (%ld instead of %d) in packet-sccp.c
svn path=/trunk/; revision=21167
2007-03-24 13:46:41 +00:00
Jeff Morriss 10e8a95401 Add brackets to extern of ssl_version_short_names[] to fix compiler warnings.
svn path=/trunk/; revision=21166
2007-03-24 13:21:08 +00:00
Jeff Morriss 59159fe03e Fix bug 1452: Don't pass a null pointer to g_strsplit().
svn path=/trunk/; revision=21165
2007-03-24 10:07:20 +00:00
Stephen Fisher aa4d4f727c From Sebastien Tandel:
Fixes for warnings


svn path=/trunk/; revision=21164
2007-03-24 07:33:25 +00:00
Stephen Fisher dfc2b16e29 Fix mess with ssl_version_short_names[] being defined multiple places
now that it is no longer a static variable in packet-ssl-utils.h.
Leaving it as static caused a warning turned error that it was unused
in the current file (packet-ssl-utils.h).  Resolution: Move the variable
to packet-ssl.c and declare as extern in packet-dtls.c - the only other
place that needs it.


svn path=/trunk/; revision=21161
2007-03-24 01:38:58 +00:00
Stephen Fisher 1909b97d4d Remove all warnings under Unix for the gtk/ directory.
svn path=/trunk/; revision=21160
2007-03-24 00:45:11 +00:00
Stephen Fisher 2896811274 Fix about 150 warnings new to gcc 4.0 in the error on warning directories.
Comment out -Werror in plugins/asn1/ until warnings can be fixed.


svn path=/trunk/; revision=21158
2007-03-23 22:49:23 +00:00
Stephen Fisher 64cc1b407c From Sebastien Tandel:
(Fixing warnings)

stripped away some unused variables/parameters
+ in prefs.c
    suggestion of parentheses makes gcc happy


svn path=/trunk/; revision=21156
2007-03-23 18:45:21 +00:00
Stephen Fisher 6d8d2854c8 From Sake Blok:
Fix for bug #491: Unexpected frame.time_delta behavior

This patch ... fixes bug 491. It does this by changing the
behaviour of the frame.time_delta field so it reflects the delta
time between captured packets (tshark already did this).  To keep
the delta time between displayed packets, the field 
frame.time_delta_displayed is created.


svn path=/trunk/; revision=21154
2007-03-23 18:08:17 +00:00
Graeme Lunt 1f9eafa4fb Support for Microsoft-defined enhancedKeyUsage OIDs.
svn path=/trunk/; revision=21152
2007-03-23 16:52:22 +00:00
Graeme Lunt 4829b901de Support for recognising RC4 algorithm.
svn path=/trunk/; revision=21151
2007-03-23 16:45:49 +00:00
Graeme Lunt e9aa0abd32 Support for:
RFC2247 objectclasses and attributes (specifically "dc")
Microsoft-defined User Principal Name subjectAltName extension (used in certificates)


svn path=/trunk/; revision=21150
2007-03-23 16:44:08 +00:00
Graeme Lunt aa2b2c82ab Support for the Microsoft-specific certificate-template and application-certificate-policies certificate extensions.
svn path=/trunk/; revision=21149
2007-03-23 16:41:26 +00:00
Graeme Lunt 53eff34d66 Support for X.411 "additional information" field.
svn path=/trunk/; revision=21148
2007-03-23 16:38:52 +00:00
Ulf Lamping c436a70b49 /* prevent redefinition warnings in kfw-2.5\inc\win_mac.h */
#undef HAVE_STDARG_H
#undef HAVE_SYS_TYPES_H

svn path=/trunk/; revision=21144
2007-03-23 01:56:09 +00:00
Ulf Lamping db963eeb59 fix some more warnings
svn path=/trunk/; revision=21143
2007-03-23 01:55:29 +00:00
Ulf Lamping 7994794ad9 fix a lot more warnings
svn path=/trunk/; revision=21142
2007-03-23 01:29:52 +00:00
Ulf Lamping 411249419d fix some more warnings (type casts)
svn path=/trunk/; revision=21141
2007-03-23 00:51:21 +00:00
Ulf Lamping 81297cee31 fix various const warnings
svn path=/trunk/; revision=21139
2007-03-23 00:20:59 +00:00
Luis Ontanon 7f3e4fea48 Mine:
* add SUA to the "VoIP Calls" tap.
* propagate changes to packet-sccp.h to other dissectors

From Neil Piercy:
* add SLR, DLR and CAUSE to COL_INFO

svn path=/trunk/; revision=21126
2007-03-22 22:59:20 +00:00
Ulf Lamping 0f8dbb8dc2 correct multidimensional SAFEARRAYs
svn path=/trunk/; revision=21123
2007-03-22 22:41:16 +00:00
Luis Ontanon e9bb1d5670 Avoid calling ep_alloc for 0 bytes.
svn path=/trunk/; revision=21121
2007-03-22 21:51:56 +00:00
Jörg Mayer a8f4da5ead Sebastien Tandel:
some warning fixes

packet-http.c
    set headers.content_length = 0 before the first potential use of it.
packet-kink.c
    "ifdef kerberos" around one function declaration
packet-nbns.c
    set headers.{dgm_length|pkt_offset|error_code} = 0
packet-pflog.c
    delete capture_pflog and
capture_old_pflog which aren't used anymore in the code.

svn path=/trunk/; revision=21120
2007-03-22 15:19:49 +00:00
Jörg Mayer 2202f3fb0c Add a comment about CCX
svn path=/trunk/; revision=21119
2007-03-22 15:12:14 +00:00
Ronnie Sahlberg d824fb2979 From Shaun J
Dissectors for MPEG streams


svn path=/trunk/; revision=21114
2007-03-22 11:43:07 +00:00
Martin Mathieson 291f4da85a Try to squelch another couple of MSVC warnings.
svn path=/trunk/; revision=21111
2007-03-22 10:32:42 +00:00
Ronnie Sahlberg 1af9fbb14f Using a patched version of pidl that decorates all parameters with _U_
and updates to the conformance file,
regenerate the eventlog dissector to remove a lot of compiler warnings


svn path=/trunk/; revision=21110
2007-03-22 08:45:01 +00:00
Jeff Morriss 42fbb5c031 From Abhik Sarkar: call add_new_data_source() on generated (MTP3) tvb so that users can see the bytes in a (new) byte pane.
svn path=/trunk/; revision=21109
2007-03-22 08:11:16 +00:00
Ronnie Sahlberg 0294198960 Remove a compiler warning by #if 0 out a function that is not called.
The function is referenced from a comment which is why it was #ifed out instead of just deleted.


svn path=/trunk/; revision=21108
2007-03-22 08:03:44 +00:00
Martin Mathieson 7025597eae Try to squash a warning seen on win32 buildbot.
svn path=/trunk/; revision=21092
2007-03-21 17:14:33 +00:00
Jaap Keuter 1f5f997b3c Add ether type for Link Layer Topology Discovery (LLTD)
svn path=/trunk/; revision=21091
2007-03-21 16:14:23 +00:00
Martin Mathieson e418d916ad Squash a couple of warnings.
svn path=/trunk/; revision=21090
2007-03-21 14:00:23 +00:00
Ronnie Sahlberg 8920a7e7f2 change the signature that asn2wrs generates for functions to marm all parameters as _U_
to reduce the number of compiler warnings.

update some template and cnf files to use _U_ as well 


svn path=/trunk/; revision=21088
2007-03-21 10:22:22 +00:00
Ronnie Sahlberg 09efa21b94 remove some compiler warnings
svn path=/trunk/; revision=21087
2007-03-21 08:32:15 +00:00
Ronnie Sahlberg f07bddb94d remove some compiler warnings
svn path=/trunk/; revision=21086
2007-03-21 08:11:37 +00:00
Jörg Mayer 636e20e431 Fixes for: warning: comma at end of enumerator list
svn path=/trunk/; revision=21084
2007-03-21 04:59:53 +00:00
Jörg Mayer 3cb0b3bfc7 Small spelling fixes
svn path=/trunk/; revision=21083
2007-03-21 04:58:38 +00:00
Jörg Mayer d987ac4127 Fixes for: warning: function declaration isn't a prototype
svn path=/trunk/; revision=21082
2007-03-21 04:54:20 +00:00
Jeff Morriss 62c61a071c Add tracking of retransmitted TSNs. That is, for a TSN that we found was
retransmitted, add items to its tree describing those retransmissions (frame
where the retransmission is and RTO).  Limit this to 100 retransmissions to
avoid running out of memory in pathological cases.

This adds the filters "sctp.retransmitted" (TSNs that were retransmitted)
and "sctp.retransmitted_count" (count of number of times the TSN was
retransmitted).

The RTO is intentionally not added to the retransmitted TSN tree as it is
already added to the retransmission(s).  The RTO is displayed, however.

svn path=/trunk/; revision=21081
2007-03-21 04:48:32 +00:00
Luis Ontanon 5fa8e75149 packet_info.c and packet.c
add sccp_info to struct _packet_info (Sorry but the way private_data works and the fact that TCAP uses it and BSSAP/RANAP can be tunnelled on GSMMAP over TCAP makes it impossible to avoid)

SCCP
- Have SCCP to have a TAP,
- Fix associations so that every message belongs to the association.
- Export message type values so that they can be used by a tap listener

RANAP
 - Have RANAP information attached to the sccp_info 

BSSAP + GSM_A
- Have DTAP, BSSMAP and BSSAP info attached to the sccp_info

svn path=/trunk/; revision=21076
2007-03-21 00:48:46 +00:00
Martin Mathieson 09f3f70a7a Try to squash a warning seen by win32 buildbot
svn path=/trunk/; revision=21074
2007-03-20 17:20:36 +00:00
Ronnie Sahlberg 5fb41ba524 remove some unused variables
svn path=/trunk/; revision=21073
2007-03-20 15:07:28 +00:00
Ronnie Sahlberg d3192b2095 remove some compiler warnings about unused variables
svn path=/trunk/; revision=21072
2007-03-20 15:05:04 +00:00
Ronnie Sahlberg 97ee85b682 remove some compiler warnings
svn path=/trunk/; revision=21071
2007-03-20 14:58:55 +00:00
Ronnie Sahlberg 9cd50d5064 remove some compiler warnings about unused parameters
svn path=/trunk/; revision=21070
2007-03-20 14:50:15 +00:00
Ronnie Sahlberg f40aef922b remove some compiler warnings for unused parameters
svn path=/trunk/; revision=21069
2007-03-20 14:42:49 +00:00
Ronnie Sahlberg d8087438e9 ifdef out a function that is not yet used to get rid of a compiler warning
packet-bacapp.c:4269: warning: `fDeviceObjectPropertyReference' defined but not
used


svn path=/trunk/; revision=21068
2007-03-20 14:27:13 +00:00
Gerald Combs 54df000b3a Extend the bad checksum description to include '(maybe caused by "UDP
checksum offload"?)', similar to the TCP dissector.

Minor whitespace fixups.

svn path=/trunk/; revision=21067
2007-03-19 20:13:01 +00:00
Jeff Morriss 93af79c80d - Set hf_sctp_acked and hf_sctp_rtt as generated.
- Change "sctp.retransmitted" to "sctp.retransmission" since that field
  is set on messages that are retransmissions, not messages that were
  retransmitted.
- Change some formatting to make it more consistent.

svn path=/trunk/; revision=21065
2007-03-19 10:34:26 +00:00
Guy Harris 70e3ec388f Get rid of unused variable.
svn path=/trunk/; revision=21064
2007-03-19 02:36:30 +00:00
Luis Ontanon d3120ba507 bzero the tap data.
svn path=/trunk/; revision=21062
2007-03-19 00:32:33 +00:00
Guy Harris 7c7ccebace From Charles Lepple: in a Get Descriptor message, the descriptor index
comes before the descriptor type.

svn path=/trunk/; revision=21061
2007-03-19 00:03:17 +00:00
Luis Ontanon c12852a0e1 add an mtp3 tap to m3ua to allow VoIP Calls to see ISUP/BICC calls over M3UA
svn path=/trunk/; revision=21058
2007-03-18 23:14:06 +00:00
Luis Ontanon 151b327368 add a tap to h248
svn path=/trunk/; revision=21055
2007-03-18 21:55:00 +00:00
Luis Ontanon 001350a7fb protect from multiple inclussion
svn path=/trunk/; revision=21053
2007-03-18 18:55:52 +00:00
Bill Meier 04d29de81d Fix Windows Makefiles so clean removes all pdb files (PDB_FILE no longer defined)
svn path=/trunk/; revision=21052
2007-03-18 15:36:22 +00:00
Luis Ontanon 9812caa079 make sure curr_info.sig is not-NULL before derreferencing it.
similar to  Bug 1451

svn path=/trunk/; revision=21051
2007-03-18 14:57:26 +00:00
Luis Ontanon c6244e9671 make sure curr_info.evt is not-NULL before derreferencing it.
fixes Bug 1451

svn path=/trunk/; revision=21049
2007-03-18 13:53:28 +00:00
Luis Ontanon cd9c4643d4 dissect H.248 over TPKT over TCP
svn path=/trunk/; revision=21047
2007-03-17 21:44:22 +00:00
Jeff Morriss c833b61b6b Strengthen TAPA's heuristics some:
- check if the tunnel type is known
	- if it's a discover_request, check that the (first) request type
	  is known

svn path=/trunk/; revision=21041
2007-03-17 08:28:20 +00:00
Martin Mathieson 7114ed8349 Turn an error that I've encountered into an easily findable expert item.
svn path=/trunk/; revision=21036
2007-03-16 14:09:12 +00:00
Graham Bloice 0e59733dac Corrected dissection when reading binary inputs that have per point indexes, found by Steven J. Schaeffer
svn path=/trunk/; revision=21035
2007-03-16 11:39:19 +00:00
Stephen Fisher 4eeb29a8a7 Fix bug #1394: Runtime error crash after clicking on HTTP packet
The capture file the user supplied had a HTTP chunked response
in it with no actual chunks other than the zero length chunk
indicating the end of the chunks.  The fix is to only create
a new_tvb and copy it over the tvb going into the
chunked_encoding_dissector() function if the chunk size is > 0.
 

svn path=/trunk/; revision=21034
2007-03-16 00:47:26 +00:00
Jörg Mayer a00dc2564e strncmp(NULL, ...) isn't such a good idea.
svn path=/trunk/; revision=21033
2007-03-14 22:58:09 +00:00
Guy Harris a0fecf54bd Correctly return the item value through the pointer.
svn path=/trunk/; revision=21030
2007-03-14 18:25:19 +00:00
Guy Harris 78b8245bcc "dissect_tapa_static()" is a new-style dissector; register it as such.
svn path=/trunk/; revision=21029
2007-03-14 18:23:19 +00:00
Graeme Lunt c05709dc70 "When X.264/ISO 11570 default identification is being used, there is no user data field in the
CALL REQUEST packet.  This is for X.225/ISO 8073 COTP."

Added this default handling.


svn path=/trunk/; revision=21026
2007-03-14 17:28:55 +00:00
Jörg Mayer e2c6534c5e Improve the heuristic for the tapa discovery classification.
This should fix bug 1437.

svn path=/trunk/; revision=21025
2007-03-14 15:40:44 +00:00
Stephen Fisher eeea95ccbe HTTP Export Object updates:
- Split the HTTP tap into two taps: one for the HTTP statistics
   and the other for the export object function.  This allows the
   HTTP statistics to work again (they seem to have been
   partially broken since SVN rev 18901).
 - Pass the conversation data (conv_data) between functions now
   instead of using the global variable stat_info (now only used
   for the HTTP stats)
 - Pass only pointers from the HTTP dissector to the Export Object
   tap, where we'll then copy the values and insert into the slist.
 - Make sure we free all memory allocated by this feature when
   we're done with it.
 - Various other minor improvements


svn path=/trunk/; revision=21021
2007-03-13 20:42:04 +00:00
Martin Mathieson e14e7fe455 Make m2pa dissector findable by name.
svn path=/trunk/; revision=21020
2007-03-12 11:21:02 +00:00
Jeff Morriss 62596bffb3 Fix bug 552:
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=552

by enforcing that header fields have names of length > 0.  This should fix
the display of those fields and also make them filterable (which was the
subject of the bug).  Abbreviations are (still) optional: if they are empty
then the field is not filterable.

Update README.developer with this information.

Add header field names in several dissectors where they were missing.

In packet-arp.c give "packet-storm-detected" a name (as above) but also set it
as _GENERATED.

Also remove trailing white space from all the files checked in.

svn path=/trunk/; revision=21018
2007-03-11 06:16:00 +00:00
Jeff Morriss 44328ec205 From David Buechi:
- don't show EPL src- and dst-address of SoC frame (same as SoA)
- show SoA requested service only if it's not "NO_SERVICE"
- NMT state in StatusResponse in words, not numbers
- don't show MC and PS flags in SoC (it's now configurable via "Preferences")

Furthermore I extended the value_string struct for the NMT-Command-IDs
(asnd_cid_vals). This change is used to fully decode the NMTRequest frames.

svn path=/trunk/; revision=21017
2007-03-10 15:06:11 +00:00
Jeff Morriss e9ca912aab From Joost Yervante Damad via bug 1383: support for Erlang Port Mapper Daemon
message dissection.

http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1383

svn path=/trunk/; revision=21016
2007-03-10 08:36:24 +00:00
Luis Ontanon 0c8d5247b6 Make sure ENDTRY is evaluated.
On windows if ENDTRY is not evaluated after a exception is being thrown wireshark will crash in dissect_packet() while attempting to pop the last frame of the exception stack.

svn path=/trunk/; revision=21015
2007-03-10 02:13:00 +00:00
Luis Ontanon 403fa20bf1 Make sure ENDTRY is evaluated.
On windows if ENDTRY is not evaluated after a exception is being thrown wireshark will crash in dissect_packet() while attempting to pop the last frame of the exception stack.

svn path=/trunk/; revision=21014
2007-03-10 02:11:51 +00:00
Ronnie Sahlberg 10588355f9 move some variable declarations to the start of the block.
many compilers do not support the nonstandard feature to declare variables in the middle of a block.



svn path=/trunk/; revision=21012
2007-03-09 20:02:25 +00:00
Jörg Mayer fb820f0a07 GCC warning fixes
epan/dissectors/
packet-bctp.c:
	no newline at end of file
packet-epl.c:
	C++ style comments are not allowed in ISO C90
packet-sccp.c:
	missing initializer
packet-sccp.h:
	comma at end of enumerator list
packet-sctp.c:
	suggest parentheses around assignment used as truth value
packet-vnc.c:
	control reaches end of non-void function
	pointer targets in passing argument 1 of 'g_strtod' differ in
		signedness
	pointer targets in passing argument 3 of 'vnc_client_to_server'
		differ in signedness
gtk/
main.c:
	C++ style comments are not allowed in ISO C90
u3.h:
	function declaration isn't a prototype

Other (trivial) stuff
packet-sccp.h:
	Add svn properties


svn path=/trunk/; revision=21011
2007-03-09 13:14:09 +00:00
Jörg Mayer f9560b982a Regenerated with current pidl compiler
svn path=/trunk/; revision=21009
2007-03-09 13:11:33 +00:00
Michael Tüxen da56836f74 Add HMAC Algo constants.
svn path=/trunk/; revision=21008
2007-03-09 10:49:23 +00:00