Commit Graph

7885 Commits

Author SHA1 Message Date
Anders Broman 94859ac29b Apply yet another set of the optimization patches:
if tree is not NULL then proto_xxx_add_yyy functions can't return NULL.
Remove always true tests.

svn path=/trunk/; revision=23404
2007-11-08 22:39:01 +00:00
Anders Broman 4d07f32a41 Apply yet another set of the optimization patches:
- Move proto_tree_add_xxxx calls inside 'if (tree) {}' block

svn path=/trunk/; revision=23403
2007-11-08 22:38:06 +00:00
Anders Broman 7b3debb40d Change dissecton of address type for AVP < 256 (RADIUS address).
svn path=/trunk/; revision=23402
2007-11-08 22:36:19 +00:00
Jeff Morriss 0d07277007 Don't cast pinfo->src.data to (const mtp3_addr_pc_t *) unless we *know* it's
an MTP3 PC in there (else we get a bus error on SPARC systems).
If we don't have MTP3 PC addresses hash on address_to_str(&pinfo->src).  This
makes TCAP statistics work over SUA.

svn path=/trunk/; revision=23401
2007-11-08 19:13:51 +00:00
Gerald Combs 4105173f0e Fix a couple of integer underflows.
svn path=/trunk/; revision=23398
2007-11-08 05:54:29 +00:00
Stephen Fisher ee3d03b7ae Fix Windows builds that cannot find gtk/gtk.h from epan/prefs.c. Write out
toolbar arrow preference even in GTK < 2.4 and just don't use it unless
running GTK 2.4+.


svn path=/trunk/; revision=23397
2007-11-08 02:29:18 +00:00
Gerald Combs 544ca516b5 Add more TCP analysis struct checks.
svn path=/trunk/; revision=23396
2007-11-08 00:58:38 +00:00
Stephen Fisher d7c1ba361f Add an arrow with drop-down menu including any toolbar buttons that do not
fit on the top of the screen.  This only works in GTK 2.4+ and there is
a layout preference setting to disable it.


svn path=/trunk/; revision=23395
2007-11-07 21:50:48 +00:00
Anders Broman 079e1446f9 Update to use the -X and -T asn2wrs flags.
svn path=/trunk/; revision=23394
2007-11-07 21:22:25 +00:00
Stig Bjørlykke 2e98c04584 Create a subset tvb for dissect_x411_ORName so it doesn't eat too much data.
Removed some unnecessary int casts.

svn path=/trunk/; revision=23392
2007-11-07 20:03:29 +00:00
Jörg Mayer e47e42e10e Add VID VID_draft_ietf_ipsec_nat_t_ike_01, move
VID_draft_ietf_ipsec_nat_t_ike_03 a bit down.

svn path=/trunk/; revision=23391
2007-11-07 18:35:00 +00:00
Anders Broman ce2a32dc6f Update to use the -X and -T asn2wrs flags.
svn path=/trunk/; revision=23390
2007-11-07 17:55:57 +00:00
Anders Broman c822748454 Delete obsolete dissectors.
svn path=/trunk/; revision=23389
2007-11-07 17:55:06 +00:00
Jörg Mayer 9491dc16f1 Print VendorID string in payload summary line
svn path=/trunk/; revision=23388
2007-11-07 17:23:28 +00:00
Anders Broman fb00aa074f as2wrs now handles EXTERNAL(direct-reference requires no special handling).
svn path=/trunk/; revision=23386
2007-11-06 21:52:26 +00:00
Anders Broman e0937a5992 as2wrs now handles EXTERNAL(direct-reference requires no special handling).
svn path=/trunk/; revision=23384
2007-11-06 20:26:13 +00:00
Anders Broman 998eabe31f as2wrs now handles EXTERNAL(direct-reference requires no special handling).
svn path=/trunk/; revision=23383
2007-11-06 20:21:09 +00:00
Anders Broman 2555a2f6fb as2wrs now handles EXTERNAL(direct-reference requires no special handling).
svn path=/trunk/; revision=23382
2007-11-06 20:16:59 +00:00
Anders Broman d3028865d3 From Keith Mercer:
CFM dissector bugfixes and code update for ITU inclusion

svn path=/trunk/; revision=23380
2007-11-06 19:47:38 +00:00
Anders Broman a1347fde05 Set up RTP conversation when PORT is known.
svn path=/trunk/; revision=23377
2007-11-06 18:11:20 +00:00
Guy Harris d913f45ef1 Fix bug 1956 - make the bitwise-AND routine treat its arguments as being
IPv4 addresses.  Also, rename that routine to cmp_bitwise_and(), as it's
not working on bit strings.

svn path=/trunk/; revision=23375
2007-11-06 09:19:59 +00:00
Guy Harris 69ba6c7762 The "bitwise AND" display filter operator is supposed to evaluate to
TRUE if the result of the operation has any bit set; that means that the
test should stop and return TRUE as soon as it finds two bytes that when
ANDed together are non-zero, and return FALSE if no such byte was found.

The other test functions don't have "_bytes" in the routine name; don't
put it into this one.

svn path=/trunk/; revision=23374
2007-11-06 08:46:57 +00:00
Ronnie Sahlberg 7885237398 add a g_byte_array_sized_new() helper if we compile for glib < 2
svn path=/trunk/; revision=23373
2007-11-06 05:51:49 +00:00
Ronnie Sahlberg 8da1f94cca use strcasecmp instead of g_ascii_strcasecmp
svn path=/trunk/; revision=23372
2007-11-06 05:39:28 +00:00
Stephen Fisher 6785ffd796 Wake on LAN (WOL): New dissector from Chris Maynard via -dev list and
enhancement bug #1968

Me: Added entries in epan/etypes.h and epan/dissectors/packet-ethertype.c
for WOL.


svn path=/trunk/; revision=23371
2007-11-06 05:30:04 +00:00
Stephen Fisher 46e6e9ea0f Change instance of 0xCAFE to ETHERTYPE_LLT for consistency. No functional
changes.


svn path=/trunk/; revision=23370
2007-11-06 05:06:31 +00:00
Sake Blok 3c9a7b9dcd Bug 1954 From Mikael Magnusson :
This patch updates the DTLS dissector to be compatible with OpenSSL 0.9.8f in
the following ways:
* Handle both SSL version number 0xfeff (RFC 4347 and OpenSSL 0.9.8f), and
0x100 (Used by OpenSSL 0.9.8e and earlier)
* Reassemble fragmented handshake messages.





svn path=/trunk/; revision=23369
2007-11-05 23:05:20 +00:00
Anders Broman 3b1f0881e2 Update to use the -X and -T asn2wrs flags.
svn path=/trunk/; revision=23366
2007-11-05 20:41:44 +00:00
Anders Broman 8676c5cd9f Update do use the -X and -T asn2wrs flags.
svn path=/trunk/; revision=23365
2007-11-04 22:18:59 +00:00
Anders Broman f6ba48b9fc Update do use the -X and -T asn2wrs flags.
svn path=/trunk/; revision=23364
2007-11-04 22:16:28 +00:00
Anders Broman 4184ef8b8d Update do use the -X and -T asn2wrs flags.
svn path=/trunk/; revision=23363
2007-11-04 22:14:35 +00:00
Anders Broman acb60ad0d8 Update do use the -X and -T asn2wrs flags.
svn path=/trunk/; revision=23362
2007-11-04 19:03:48 +00:00
Anders Broman 7594d473c3 Update do use the -X and -T asn2wrs flags.
svn path=/trunk/; revision=23361
2007-11-04 18:47:49 +00:00
Anders Broman 7fce345b31 Update do use the -X and -T asn2wrs flags.
svn path=/trunk/; revision=23360
2007-11-04 18:37:06 +00:00
Anders Broman 66bdd55654 Update do use the -X and -T asn2wrs flags.
svn path=/trunk/; revision=23359
2007-11-04 18:34:13 +00:00
Anders Broman 88c9802f25 Update do use the -X and -T asn2wrs flags.
svn path=/trunk/; revision=23358
2007-11-04 18:23:47 +00:00
Anders Broman c05f17b5fe Update do use the -X and -T asn2wrs flags.
svn path=/trunk/; revision=23357
2007-11-04 18:16:41 +00:00
Anders Broman f7804d9899 Update do use the -X and -T asn2wrs flags.
svn path=/trunk/; revision=23356
2007-11-04 17:57:31 +00:00
Stig Bjørlykke 46d0b5e076 Update do use the -X and -T asn2wrs flags.
svn path=/trunk/; revision=23354
2007-11-04 17:24:25 +00:00
Anders Broman bec8475743 LDAP with -T
svn path=/trunk/; revision=23353
2007-11-04 17:16:01 +00:00
Anders Broman 44470bc5f4 SNMP with option -X and -T
svn path=/trunk/; revision=23352
2007-11-04 16:47:30 +00:00
Anders Broman de19156225 follow_tcp_stats -> follow_stats
svn path=/trunk/; revision=23351
2007-11-04 08:11:24 +00:00
Stephen Fisher 700d8194b8 - Future improve/clean up the now generic follow stream code
- Add "Follow UDP Stream" feature


svn path=/trunk/; revision=23346
2007-11-03 04:45:35 +00:00
Stephen Fisher fafa0a1c06 Add partial support for TightVNC packet dissection (work in progress).
svn path=/trunk/; revision=23345
2007-11-03 03:03:02 +00:00
Martin Mathieson 2c68e2299a Improve some comments (and test committing from Windows
build). 

svn path=/trunk/; revision=23343
2007-11-02 22:34:18 +00:00
Jörg Mayer 2d3b9f1cd5 - Rename EAPSv2 to ESL (EAPS shared link).
- Some small improvements to ESL decoding.

svn path=/trunk/; revision=23342
2007-11-02 20:00:03 +00:00
Tomas Kukosa 686ea4b773 new H.282 (RDC) and H.283 (LCT) dissectors
svn path=/trunk/; revision=23339
2007-11-02 12:18:01 +00:00
Tomas Kukosa 475ec209ce display message type in the info column
svn path=/trunk/; revision=23338
2007-11-02 08:34:12 +00:00
Tomas Kukosa 9b3c5f9f03 display SRTP isntead of RTP if stream is established like a SRTP
svn path=/trunk/; revision=23337
2007-11-02 07:43:49 +00:00
Tomas Kukosa 1a83466890 setup SRTP stream for RTP/SAVP media protocol
svn path=/trunk/; revision=23336
2007-11-02 07:41:56 +00:00
Anders Broman 92ba89b5d1 LDAP wasn't 'fixed' to handle -T option...
svn path=/trunk/; revision=23335
2007-11-01 22:29:02 +00:00
Anders Broman da2e127ac8 Add a text media type.
svn path=/trunk/; revision=23334
2007-11-01 22:14:46 +00:00
Anders Broman dbcabb1938 Get rid of most of the legacy oid stuff.
svn path=/trunk/; revision=23333
2007-11-01 22:07:43 +00:00
Ronnie Sahlberg 24976b1d92 some updates to the frsrpc dissector
dissect parts of the TLV blob that is sent during file replication


svn path=/trunk/; revision=23332
2007-11-01 20:33:35 +00:00
Anders Broman 9492700608 Change:
get_oid_str_name() -> oid_resolved_from_string()
get_oid_name() -> oid_resolved_from_encoded()

svn path=/trunk/; revision=23331
2007-11-01 19:36:39 +00:00
Tomas Kukosa 0576c98edc set data for IV always
svn path=/trunk/; revision=23327
2007-11-01 10:50:01 +00:00
Anders Broman 6abf035bed Remove add_oid_str_name.
svn path=/trunk/; revision=23326
2007-11-01 07:37:24 +00:00
Anders Broman 7329ae8ac6 Use oid_add_from_string for adding names.
fix compil of gsmmap and inap.
Note xcopy of gsmmap does not work(rename packet-gsm_map -> packet-gsmmap ?)

svn path=/trunk/; revision=23325
2007-10-31 23:11:15 +00:00
Anders Broman 43700969a6 Use oid_add_from_string for adding names.
(gsmmap and inap does not compile at the moment).

svn path=/trunk/; revision=23324
2007-10-31 21:24:16 +00:00
Anders Broman 528ac73cfd Use oid_add_from_string for adding names.
svn path=/trunk/; revision=23318
2007-10-31 08:26:52 +00:00
Anders Broman b3ec72530e Use oid_add_from_string for adding names, names changed to short form.
svn path=/trunk/; revision=23317
2007-10-31 07:50:59 +00:00
Anders Broman c41279b260 From Martin Peylo:
This uncomments the OID registration of pkixcmp and adds 2 Cryptlib OIDs
Changed to use oid_add_from_string for adding names.

svn path=/trunk/; revision=23316
2007-10-31 07:49:39 +00:00
Anders Broman b603b47759 From Stefano Picerno:
Makes more fields searchable
Also fixes some typos and indentation errors
Fixes bug http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1802 for edonkey
dissector: every field defined by the dissector is now contained under the
PROTOABBREV=edonkey "root" key

svn path=/trunk/; revision=23315
2007-10-31 07:47:47 +00:00
Gerald Combs 6327c19912 From Christopher McKenzie: Zero out our SAs before we use them.
Remove an unneeded for loop in AirPDcapCleanKeys(), and make it static.

svn path=/trunk/; revision=23314
2007-10-31 00:15:17 +00:00
Gerald Combs 5753ea42ce Fix some null dereferences.
svn path=/trunk/; revision=23313
2007-10-30 22:22:14 +00:00
Stephen Fisher de7bd77a1f Minor correction to protocol behavior handling when security type "none" is
selected by the client.


svn path=/trunk/; revision=23312
2007-10-30 16:32:26 +00:00
Stephen Fisher c5f2895907 Fix for issue #1 in bug #1947 by doing a major overhaul of how the first
nine or so packets are handled to accommodate authentication type none and
to allow cleaner future improvements.  Includes a few touch ups to the
rest of the dissector as well. 


svn path=/trunk/; revision=23310
2007-10-30 04:42:42 +00:00
Tomas Kukosa 84488ec016 asn2wrs
- parameterized object class assignment
 - octet string with extensible size constraint
 - RELATIVE-OID type (still not supported in packet-per/ber)
packet-per
 - octet string with extensible size constraint
more dissect_per_... functions exported from libwireshark.dll
PER dissectors regenerated
add forgotten packet-h323-template.h
fix svn properties for h323 files

svn path=/trunk/; revision=23309
2007-10-29 19:25:37 +00:00
Ronnie Sahlberg eca5a7d7d4 add a asn2wrs generated T.125 MCP dissector
This dissects the initial Connect-Initial and Connect-confirm pdus of 
setting up t.125


The dissector needs to be enhanced to also decode the data payload so 
that it can decode any furhter packets on the connection after these two 
initial handshake packets



svn path=/trunk/; revision=23307
2007-10-29 11:32:07 +00:00
Ronnie Sahlberg bf43e71521 register tpkt for port 3389 and use x224 as the subdissector for this
port


svn path=/trunk/; revision=23306
2007-10-29 07:16:49 +00:00
Ronnie Sahlberg 5437b24716 add x224 to the makefile
svn path=/trunk/; revision=23305
2007-10-29 07:15:29 +00:00
Ronnie Sahlberg 4b1615c700 add an initial x.224 dissector it is very incomplete
svn path=/trunk/; revision=23304
2007-10-29 07:14:50 +00:00
Sake Blok 3cdaed35ea When there are multiple conversations with the same key, conversation_lookup_hashtable() did not return the correct conversation for the first packet of a conversation (ie when frame_num == conversation->setup_frame).
svn path=/trunk/; revision=23303
2007-10-29 06:54:25 +00:00
Bill Meier b337d20d4c Include winposixtypes.h only if building with GNUTLS; Bug 1942: part 2 of 2 of fix.
asn1 template file plus generated .[hc] files;
Note that the generated files include changes which are a result of previous
changes to snmp.cnf (SVN #23252) and of other changes (eg: svn 21145).

svn path=/trunk/; revision=23302
2007-10-29 01:14:51 +00:00
Bill Meier 7e4a5b0194 Include winposixtype.h only if building with GNUTLS; Bug #1949: Part 1 of fix
[asn1 template plu generated .c file]

svn path=/trunk/; revision=23301
2007-10-29 00:58:06 +00:00
Sake Blok 81b41ba967 This patch is a remake of SVN 22762:
When doing TCP_SEQ analysis, if the packet is a SYN, then it's 
not a lost packet but the tcp ports are being reused. This is often 
seen in load-balanced environments where client ports are preserved 
on the server-side.

This time it is fixed by creating a new conversation whenever a
new SYN is received for an existing conversation. This fixes the
following:

- bug 1680: Error in TCP Sequence number analysis
- TCP-conversation timestamps for new TCP-sessions with the addresses 
  and ports as a previous TCP-conversation in the trace-file.


svn path=/trunk/; revision=23299
2007-10-28 23:38:43 +00:00
Jaap Keuter 64cc7052f9 from Gisele Vanem:
This needs file_util.h if HAVE_LIBNETTLE is defined.

svn path=/trunk/; revision=23294
2007-10-28 11:25:34 +00:00
Anders Broman f4b9f9c3bd From Stefan Puiu:
According to http://www.iana.org/assignments/bootp-dhcp-parameters, suboptions
from 1 to 10 have been defined. 3 is reserved, and most of the others have
their own RFC. For a start I've attached a patch that decodes suboption 6 just
as 1 and 2, and also suboption 3. This might not be entirely correct, since
suboptions 1 and 2 are opaque values (RFC3046), while 6 is an ASCII text
string.

I added something for the other values as well...

svn path=/trunk/; revision=23293
2007-10-27 16:49:13 +00:00
Anders Broman ce25ea6f22 From Stephane Chazelas:
The description of the most significant bit of the "Device Revision" byte of
the response to a "Get Device ID" is the wrong way round. 1 means "device
provides Device SDRs" and not the contrary according to IPMI specs 1.5 and 2.0.

Also, I noticed in that file that "Chassis" is spelled "Chasis".

svn path=/trunk/; revision=23292
2007-10-27 15:53:29 +00:00
Anders Broman 05d258e71b From Martin Peylo:
Enhancement:
- TIPC is available in a new version (1.7), adding/removing fields while
keeping the same version number (2).

Minor bugs:
- In NAME_DISTRIBUTOR messages the origianting and destination node are
switched.
- The used size of BUNDLER messages payload is not calculated correctly when
size%4=0, this leads to the wrong assumption that the message would be
malformed.

svn path=/trunk/; revision=23291
2007-10-27 15:48:47 +00:00
Anders Broman e6fc9efb62 From Mark C. Brown:
Add support for the new NS_LS_SCTP tracing subsystem.

svn path=/trunk/; revision=23290
2007-10-27 15:44:12 +00:00
Anders Broman a07530ab2b From Steve Osselton:
The GIOP Fragment message type was added as of GIOP 1.1. However the Fragment
message header (containing a request id) was only added as of GIOP 1.2. The
GIOP Fragment dissector incorrectly attempts to process the request id for a
version 1.1 request.

To fix add a version check to the dissect_giop_fragment function in
packet-giop.c:

svn path=/trunk/; revision=23289
2007-10-27 15:38:22 +00:00
Anders Broman 135ba5aeff From Stefano Picerno:
I made some updates to the edonkey dissector.
Most kademlia1 and some kademlia2 messages are now completely decoded.

svn path=/trunk/; revision=23288
2007-10-27 15:28:35 +00:00
Anders Broman f209667d93 From Andrew Feren:
return FALSE if dissector_try_string(...) is passed a NULL string pointer
arguably this should assert instead.

svn path=/trunk/; revision=23287
2007-10-27 15:02:07 +00:00
Anders Broman 2ea44c466a From Andrew Feren:
patch to test for NULL media_type_str_lower_case.

svn path=/trunk/; revision=23286
2007-10-27 14:57:46 +00:00
Anders Broman 1143ab41b1 Apply yet another set of the optimization patches:
- Use a fast path for the most common use of tvb_get_xxx functions:
offset is >= 0 and tvb->real_data is set (this one is always true).
- match_strval() is a linear search, put the most common protocols
TCP/UDP/RDP first.
- fix gtk1 g_strlcat declaration Use g_strlcat

svn path=/trunk/; revision=23285
2007-10-27 14:44:29 +00:00
Jaap Keuter 79e035e3f3 Fix for bug 1935.
RFC3315 says that the vendor-specific information option must encapsulate each
option in the format code/length/value.  The current dhcpv6 dissector does not
differentiate these fields, it just puts it all together as one option-data
field. Attached is a patch that addresses this issue.

svn path=/trunk/; revision=23284
2007-10-27 09:24:31 +00:00
Jeff Morriss 53085e0828 Minor indentation changes
svn path=/trunk/; revision=23282
2007-10-26 22:17:45 +00:00
Martin Mathieson 0e90d5ecf4 Stop including xmlstab.h
svn path=/trunk/; revision=23281
2007-10-26 16:57:54 +00:00
Martin Mathieson 58c63a41d1 Remove some unnecessary includes.
svn path=/trunk/; revision=23280
2007-10-26 16:53:08 +00:00
Jeff Morriss 381c1f1c9e Show the acronyms for LSSU types in the Info column rather than the long description (and don't tell the user it's an LSSU, they already know that). Also, there is no such thing as a SIBO, it's a SIB.
svn path=/trunk/; revision=23278
2007-10-26 16:19:18 +00:00
Tomas Kukosa c08b07005f H.501 Mobility protocol implemented
svn path=/trunk/; revision=23275
2007-10-26 07:42:29 +00:00
Anders Broman 3a16fb20a3 Apply yet another set of the optimization patches:
Replace strncpy with g_strlcpy.
Add g_strlcat for GTK1 and don't use g_snprintf in GTK1 g_strlcpy
printf family is very slow.

svn path=/trunk/; revision=23273
2007-10-26 05:42:12 +00:00
Tomas Kukosa 136de3920c new codec table for registering codecs by name
new codec plugin type
search registered codecs in rtp player
fix memory leak in rtp player

svn path=/trunk/; revision=23270
2007-10-25 09:38:15 +00:00
Anders Broman 821106256b Remove unused variable.
svn path=/trunk/; revision=23269
2007-10-24 21:52:44 +00:00
Anders Broman e2111375a0 Use the media_type_dissector_table for the content type.
Add a few media types.

svn path=/trunk/; revision=23268
2007-10-24 21:47:13 +00:00
Gerald Combs abfa8887ad Remove a couple of unused variables.
svn path=/trunk/; revision=23266
2007-10-24 16:32:51 +00:00
Anders Broman 3ddd51de7f Add port ranges.
svn path=/trunk/; revision=23265
2007-10-24 15:04:01 +00:00
Tomas Kukosa 28cb460c25 add common VoIP TAP listener "voip" which can be used in arbitrary experimental/proprietary protocol (implemented e.g. in plugin) and allows it to make graphs and replay streams
svn path=/trunk/; revision=23262
2007-10-24 08:30:46 +00:00
Guy Harris fdf4de405f Squelch warnings about uninitialized structure members.
svn path=/trunk/; revision=23261
2007-10-24 07:14:34 +00:00
Guy Harris 13c0f43ee5 "time_t" might be an "int" or might be a "long"; cast it to "long" and
print it with "%ld".  (It's typically signed.)

svn path=/trunk/; revision=23258
2007-10-24 06:21:05 +00:00
Guy Harris 1b69944c45 packet-diameter.c should now compile without warnings. Mark it as a
clean dissector (so that the buildbots compile it with -Werror, in the
hopes of keeping it clean).

svn path=/trunk/; revision=23255
2007-10-24 02:28:03 +00:00
Guy Harris 10276efd48 Make sure characters aren't sign-extended before being handed to
isalnum().

svn path=/trunk/; revision=23254
2007-10-24 02:12:46 +00:00
Martin Mathieson b40d397b16 Make groups of PDUs filterable as large FT_BYTES items
(where the initial length isn't readily available when item is first added)

Note that this still won't work where an initial length of 0 is given for
the item that will later be extended using proto_item_set_len(), as the
pointer value part of the zero-length array will reamin NULL...

svn path=/trunk/; revision=23253
2007-10-23 11:02:08 +00:00
Anders Broman 1950ffc214 Apply the small performance enhancment patches for:
- if offset is 0, tvb_length is the same as tvb_length_remaining, just faster.
Replace 
- col_append_fstr() with faster  col_append_str() 
- col_add_str() with col_set_str()
when it's safe

svn path=/trunk/; revision=23252
2007-10-23 05:50:00 +00:00
Jaap Keuter e78cce5fbd Fix for bug 1931 and bug 1932:
A never ending while loop and a value to string mapping error.

svn path=/trunk/; revision=23251
2007-10-23 05:37:42 +00:00
Graeme Lunt fd9ad8c191 Update to use the -X and -T asn2wrs flags.
Straightforward.


svn path=/trunk/; revision=23249
2007-10-22 17:21:11 +00:00
Graeme Lunt 768db641b9 Update to use the -X and -T asn2wrs flags.
Straightforward.

svn path=/trunk/; revision=23248
2007-10-22 17:20:04 +00:00
Graeme Lunt 57ee7ab119 Update to use the -X and -T asn2wrs flags.
Straightforward.

svn path=/trunk/; revision=23247
2007-10-22 17:18:42 +00:00
Graeme Lunt 14b56c88dd Update to use the -X and -T asn2wrs flags.
Straightforward.

svn path=/trunk/; revision=23246
2007-10-22 17:17:15 +00:00
Graeme Lunt 16142d1d26 Update to use the -X and -T asn2wrs flags.
Straightfoward.

svn path=/trunk/; revision=23245
2007-10-22 17:16:15 +00:00
Graeme Lunt 811df7527a Update to use the -X and -T asn2wrs flags.
Straightforward.


svn path=/trunk/; revision=23244
2007-10-22 17:14:42 +00:00
Graeme Lunt b03164ec5d Update to use the -X and -T asn2wrs flags.
Removed the workaround code from the .cnf file.


svn path=/trunk/; revision=23243
2007-10-22 17:13:08 +00:00
Graeme Lunt b94d26f294 Update to use the -X and -T flags.
Removed some workaround code in the .cnf file.
There is still some code for handling an EXTERNAL (EXTERNALt) as the RTSE dissector has its own set of callbacks and consequently can't (currently) use the packet-ber.c functions. 


svn path=/trunk/; revision=23242
2007-10-22 17:08:03 +00:00
Graeme Lunt 138c85cf25 Update to use the -X and -T flags to asn2wrs.
svn path=/trunk/; revision=23241
2007-10-22 17:03:09 +00:00
Martin Mathieson 6ba32fd89f Show multi-byte variable length fields using FT_BYTES|BASE_HEX.
Note that there is still a problem with 'Apply as filter' filters.  They seem to remember the initial length of the item, and not the final length set using proto_item_set_len() (this is the case for groups of TBs/PDUs).  Will investigate when time allows...

svn path=/trunk/; revision=23239
2007-10-22 13:31:51 +00:00
Tomas Kukosa 10a6ffc497 add flags for optional fields of EXTERNAL type into asn1_ctx_t struct
svn path=/trunk/; revision=23238
2007-10-22 12:25:56 +00:00
Martin Mathieson 07faab5ec2 Remove the no-longer-used packet-diameter-defs.h
svn path=/trunk/; revision=23237
2007-10-22 12:16:53 +00:00
Martin Mathieson d7f8394c7b Make some capitalisation more consistent.
svn path=/trunk/; revision=23236
2007-10-22 10:47:23 +00:00
Guy Harris c21209b031 In relinquish_special_privs_perm(), only relinquish special privileges
if we were given them; doing so when we weren't seems to change the
apparent group set in OS X 10.5 (and possibly 10.4 - the group set
manipulated by getgroups()/setgroups() isn't the full group set, and
changing your UID might cause the credential identity resolver daemon
not to give you your full group set).

svn path=/trunk/; revision=23234
2007-10-20 03:45:47 +00:00
Sake Blok fcdbdcdacb From Andrew Feren:
sFlow datagrams can contain sampled headers from conversations on the network.

Often it is convenient to have wireshark dissect these payload headers, but
doing so can also have undesirable side effects.  Dissected payload headers may
match filters looking for header fields that also happen to occur in the
payload.  This can cause surprising results.

Also TCP analysis will almost always flag errors on sampled headers.  They are,
after all, just a sample and many sequence numbers are sure to be missing.

There is probably a more general way to resolve these issues, but adding
preferences to enable/disable tcp analysis and dissection of sampled headers
will be a good start.  This will make it possible to examine the details of
sampled headers if desired or to disable dissection if the side effects of
dissecting sampled headers cause issues.

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

svn path=/trunk/; revision=23226
2007-10-18 13:35:57 +00:00
Graham Bloice 74b161b108 Fixed sort order, used case-insensitive ascending
svn path=/trunk/; revision=23223
2007-10-18 11:42:59 +00:00
Stig Bjørlykke d6d6502bb7 Add eth_stdio_open to libwireshark.def
svn path=/trunk/; revision=23222
2007-10-18 11:29:32 +00:00
Jaap Keuter 7d2c0c1b61 Logic error
svn path=/trunk/; revision=23220
2007-10-17 18:25:49 +00:00
Jaap Keuter 565fe87ad1 Mask error
svn path=/trunk/; revision=23219
2007-10-17 18:25:29 +00:00
Jaap Keuter 4c22ba92f9 Flag error
svn path=/trunk/; revision=23218
2007-10-17 18:25:01 +00:00
Tomas Kukosa a23916f4d5 add forgotten packet-h323.h
svn path=/trunk/; revision=23217
2007-10-17 11:06:14 +00:00
Tomas Kukosa 286f231eb9 new H.323 dissector
- Generic Extensible Framework helper
  - Annex M1 (QSIG over H.323)
  - Annex M4
  - Annex R
H.225/H.245 support for Generic Extensible Framework (GEF)
H.235 register MIKEY into new H.225/H.245 GEF tables
regenerate H.225,H.245,H.235,H.450,H.450-ROS,T.35 from new makefiles

svn path=/trunk/; revision=23216
2007-10-17 10:25:21 +00:00
Tomas Kukosa 5fa636334b - register QSIG over SIP
- regenerate Q932, Q932-ROS, QSIG from new makefiles

svn path=/trunk/; revision=23215
2007-10-17 09:55:08 +00:00
Tomas Kukosa 7cca38408f make dissect_per_length_determinant() private
svn path=/trunk/; revision=23214
2007-10-17 09:51:27 +00:00
Sake Blok 7b5113c2a4 Fix for bug 1542:
When a SYN/ACK is missing in the capture, the base_seq used in 
relative sequence numbers was not set correctly. I made the
setting of fwd->base_seq and rev->base_seq a little more solid.


svn path=/trunk/; revision=23213
2007-10-17 07:14:56 +00:00
Jaap Keuter 74825dbc9b Properly decode "South Africa"
svn path=/trunk/; revision=23212
2007-10-17 06:24:43 +00:00
Sake Blok 6bec9d3d9e From tmiller@hcjbtech.org : Spelling error on GDS DB protocol dissector: "Buffer lenght:"
(recursively grepped through the source and corrected all occurences, even 
the ones just in comments)



svn path=/trunk/; revision=23211
2007-10-16 23:42:33 +00:00
Jeff Morriss 0f82a3e7e8 From Paolo Abeni via bug 1751:
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1751

The patch adds support to wiretap for a new libpcap DLT for bluetooth captures.
This DLT carries the direction information, which now can be displayed
correctly.
The hci H4 dissector is updated to handle also the newly introduced wtap encap.

svn path=/trunk/; revision=23208
2007-10-16 17:19:16 +00:00
Jeff Morriss 53489c8f5d A few more s/fopen/eth_fopen/
svn path=/trunk/; revision=23207
2007-10-16 15:58:25 +00:00
Jeff Morriss 853e791444 Change more fopen() to eth_fopen() to finish fixing bug 1827:
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1827

Update README.developer to tell developers not to use fopen() and friends
directly.

svn path=/trunk/; revision=23206
2007-10-16 15:43:18 +00:00
Jaap Keuter 254a5ad705 Make MGCP a builtin dissector to reduce the number of plugins.
(Leave the MGCP plugin dir for now).

svn path=/trunk/; revision=23201
2007-10-16 05:49:55 +00:00
Jaap Keuter 2154235cb4 Don't just copy a file and check that in. Use svn copy to retain the history.
svn path=/trunk/; revision=23200
2007-10-16 05:47:55 +00:00
Bill Meier 101d2e55f9 Fix col_add_str args; (I think this is correct)
svn path=/trunk/; revision=23194
2007-10-15 20:44:03 +00:00
Anders Broman 840a048b7f Implement some of the minor possible speed improvment patches.
svn path=/trunk/; revision=23192
2007-10-15 20:11:25 +00:00
Anders Broman 3c419f798c Make MGCP a builtin dissector to reduce the number of plugins.
(Leave the MGCP plugin dir for now).

svn path=/trunk/; revision=23190
2007-10-15 18:57:10 +00:00
Bill Meier 4644ce7263 Fix Windows maintainer-clean/distclean/clean to recurse thru subdirs only once (instead of worst-case 1+2+3 times)
svn path=/trunk/; revision=23187
2007-10-15 16:44:31 +00:00
Anders Broman c644b82279 Ethercat plugin
Author :
Richard Kuemmel <r.kuemmel[AT]beckhoff.de>

Updates and bugfixes:
Peter Johansson <peterjohansson73[AT]gmail.com>

svn path=/trunk/; revision=23174
2007-10-14 15:45:24 +00:00
Jaap Keuter 341798f3ac From Keith Mercer :
I would like to submit the dissector that will add support for dissecting CFM
packets with the ethertype 0x8902 defined by the IEEE proposal for 802.1ag
Draft 8.1.  This code has been tested using the CFM feature implemented on a
pre-GA build of the Spirent TestCenter, and the Alcatel-Lucent 7330 ISAM
product.  Code has been reviewed and tested by the design team at
Alcatel-Lucent in the Access Network Department (AND).

I have also added some elements for the ITU proposal Y.1731, where it will
recognize all additional opcodes for that proposal, and it will fully dissect
the AIS PDU.

Fuzztest has been performed and has passed.

svn path=/trunk/; revision=23170
2007-10-13 17:18:16 +00:00
Jeff Morriss ff89b6d313 s/fopen()/eth_fopen()/ in an attempt to fix bug 1827: eth_fopen() deals with wide chars for us on Windows while fopen() does not.
svn path=/trunk/; revision=23168
2007-10-12 22:55:17 +00:00
Jeff Morriss eb9620376a Fix bug 1908: strengthen the PANA new-style-dissector heuristics by checking that the length of the first AVP is less than the length of the message.
svn path=/trunk/; revision=23167
2007-10-12 21:31:58 +00:00
Stig Bjørlykke 5a58a1435c From Andrew Feren:
Fix an assortment of typos and other minor errors in various README files

svn path=/trunk/; revision=23166
2007-10-12 19:13:31 +00:00
Jeff Morriss 1fb716d4ff Display TCAP parameter lengths in decimal (like packet-ber does). Fix hex-pane byte highlighting for primitive parameters with tags or lengths longer than 1 octet (contructed ones are OK). Finally, fix up the indenting in this function.
svn path=/trunk/; revision=23154
2007-10-11 22:49:52 +00:00
Stig Bjørlykke 5456642ae5 From Andrew Feren:
Add preference to allow user to configure the port(s) to use when identifying
sFlow.

svn path=/trunk/; revision=23153
2007-10-11 22:19:38 +00:00
Stig Bjørlykke 4024a6e592 Swapped block-size and block-offset in BGP VPLS NLRI - fixes bug 1907.
svn path=/trunk/; revision=23151
2007-10-11 22:04:32 +00:00
Anders Broman 0b4529008d Implement some of the minor possible speed improvment patches.
svn path=/trunk/; revision=23150
2007-10-11 21:23:14 +00:00
Jaap Keuter c1484a08df Allow for dynamic value string array selection.
svn path=/trunk/; revision=23149
2007-10-11 19:40:58 +00:00
Bill Meier e4d58aa9f0 From Andrew feren; Fix typos in two comments ....
svn path=/trunk/; revision=23147
2007-10-11 16:40:12 +00:00
Jeff Morriss aaec1d956f Replace a (small) for loop with a memset(). Don't memset() the entire sctp_info.tvb array--it contains 2k pointers (8k or 16k of memory)--each time we start dissecting a frame. This speeds up loading a capture file full of SCTP packets by 6-8%.
svn path=/trunk/; revision=23118
2007-10-09 18:58:34 +00:00
Gerald Combs d32b29abd9 Add support for RFC 4243. Tested using a malformed packet, but it should be
correct.

svn path=/trunk/; revision=23117
2007-10-09 18:48:46 +00:00
Stig Bjørlykke 93144c23b7 Added some forgotten return types.
svn path=/trunk/; revision=23100
2007-10-08 20:10:44 +00:00
Anders Broman 5be0a8cb98 All IE:s handled.
svn path=/trunk/; revision=23098
2007-10-08 19:58:35 +00:00
Anders Broman 639b046897 Register to TCP port 0 to be able to do "decode as".
svn path=/trunk/; revision=23094
2007-10-08 15:58:22 +00:00
Greg Morris aa42e59aae Add 0x7d00 Connection Not Logged In return value to NCP 87/34.
svn path=/trunk/; revision=23093
2007-10-08 11:50:53 +00:00
Anders Broman b9f9b33e0e From Florent DROUIN:
This is a replacement of the existing decoding of ERF files (Extensible Record
Format from Endace). 
For the decoding of the ERF files, according to the "type of record" given in
the ERF header, several decoders can be used. Up to now, the decoder is
determined according to an environment variable, or with a kind of heuristic.
And, all the treatment is done during the file extraction.

The new architecture, will separate the ERF file decoding, and the ERF record
decoding. The ERF records will be decoded with a specific dissector. This
dissector can be configured with options, to replace the environment variable.

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

svn path=/trunk/; revision=23092
2007-10-08 11:41:21 +00:00
Richard van der Hoff e704e4c8c4 From Chris Maynard <christopher.maynard@gtech.com> / Bug 1798: packet-d*.c display filter fields incorrectly named.
svn path=/trunk/; revision=23090
2007-10-08 00:32:03 +00:00
Richard van der Hoff cf9760900c From Chris Maynard <christopher.maynard@gtech.com>: Incorrect display filter field naming convention.
svn path=/trunk/; revision=23087
2007-10-07 23:30:14 +00:00
Richard van der Hoff c32305f542 From Chris Maynard <christopher.maynard@gtech.com>: Incorrect display filter field naming convention.
svn path=/trunk/; revision=23086
2007-10-07 23:23:23 +00:00
Anders Broman 0de04bfc24 From Martin Peylo:
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1888

There are new versions of CMP (v2) in RFC4210 and CRMF (v2) in RFC4211. The
right to exist of CRMF is bound to CMP so I don't split that into two bug
reports. 

I'll upload the new (slightly handmassaged) ASN.1 files for both protocols,
along with patches for the respective cnf files, where I also added new
#.REGISTER statements.

Additionally I had to export some definitions from pkix1explicit (Attribute,
Time, UniqueIdentifier and Version) and from pkix1implicit (KeyIdentifier).
I'll also upload a patch for that.

I uploaded a CMPv2 sample (with errors in the protocol!) to the wiki.

svn path=/trunk/; revision=23082
2007-10-07 16:02:04 +00:00
Anders Broman dd12268277 Add ethertype for IEEE 802.1ag Connectivity Fault Management (CFM) protocol
svn path=/trunk/; revision=23081
2007-10-07 15:14:27 +00:00
Stig Bjørlykke feced5f683 - Initialize address_item in MessageIdentifier to avoid a crash in handling
LocalIdentifier when problems with the GlobalDomainIdentifier.  
- Initialize global pointers to avoid potential crashes.

svn path=/trunk/; revision=23080
2007-10-06 20:37:52 +00:00
Stig Bjørlykke af2d10d5bf - Added option to use relative message id (MSID)
- Added generated entry for total missing sequence numbers
- Added expert info on invalid ack info length
- Added count of ack in info column

svn path=/trunk/; revision=23079
2007-10-06 11:28:09 +00:00
Stig Bjørlykke e63da0188c From Andrei Rubaniuk:
This patch adds support for IMPS 1.3 protocol dissection and also 
updates IMPS 1.2 protocol to approved release version.

From me:
- Updated vals_wbxml_public_ids table.
- Reindented file.

svn path=/trunk/; revision=23078
2007-10-05 23:47:37 +00:00
Jeff Morriss d3600969fb From Andrew Feren via http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1606 :
1) IPFIX port (4739) should be configurable without recompiling
2) It should be possible to specify more than one port to be dissected as
   Netflow and/or IPFIX
3) Netflow should recognize UDP ports 2055 and 9996 (Both are common)

Also (from me):
- make Netflow a "new style" dissector: return 0 if it doesn't appear to be a
  valid netflow packet
- register the old preference (cflow.udp.port) as obsolete so users don't see
  warnings about it not being valid

svn path=/trunk/; revision=23075
2007-10-05 21:25:35 +00:00
Tomas Kukosa e461d0d0e8 export more types from H.225.0 and H.245 which will be necessary for H.460.x, H.323 (Annex M,R), H.501
svn path=/trunk/; revision=23069
2007-10-05 07:44:03 +00:00
Stig Bjørlykke feb0330f2d Mask out correct bits in EBIT.
svn path=/trunk/; revision=23067
2007-10-04 13:22:40 +00:00
Martin Mathieson 5382f41680 Make selected length of first line include \r\n (as header lines do).
Make 'Message Body' a proper filterable field.

svn path=/trunk/; revision=23066
2007-10-04 10:24:59 +00:00
Sake Blok a4decea55b Fixes reassembly of chunked http-responses spanning multiple tcp segments
(bugs 1581,1851 and 1868)


svn path=/trunk/; revision=23061
2007-10-03 17:07:19 +00:00
Stig Bjørlykke f95de28c72 Updated scsi_verdesc_val from appendix D in spc-3.
Dump Inquiry Vendor Specific and Reserved fields as bytes.
(still missing dumping of Clocking/QAS/IUS bits)

svn path=/trunk/; revision=23060
2007-10-03 16:22:50 +00:00
Stig Bjørlykke 05043ca65d Use correct offset for sccs, bque and reladdr flags.
svn path=/trunk/; revision=23059
2007-10-03 15:00:58 +00:00
Sake Blok a592e6412c This patch adds two new column types:
- COL_REL_CONV_TIME which is used to display the time relative to the first frame that was seen in the conversation
- COL_DELTA_CONV_TIME which is used to display the delta time from the previous frame of the conversation

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

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


svn path=/trunk/; revision=23058
2007-10-03 14:02:08 +00:00
Ronnie Sahlberg 170e4f4945 bug 1872
from chris maynard  fix some filter names for ansi_a


svn path=/trunk/; revision=23056
2007-10-02 21:26:22 +00:00
Ronnie Sahlberg 6ae363197c ifdef out a function that is not yet used
svn path=/trunk/; revision=23055
2007-10-02 21:21:55 +00:00
Anders Broman 3b092feb84 Fix comments
svn path=/trunk/; revision=23054
2007-10-02 20:28:11 +00:00
Anders Broman 9c15d7eca9 Dissect more IE's
svn path=/trunk/; revision=23053
2007-10-02 20:09:15 +00:00
Stig Bjørlykke 253eb0efb3 Check return value from ptvcursor_add in an attempt to fix bug 1886.
svn path=/trunk/; revision=23052
2007-10-02 19:02:58 +00:00
Stig Bjørlykke 37dc09ec79 Use given length when decoding fhandles as unknown.
svn path=/trunk/; revision=23051
2007-10-02 16:46:49 +00:00
Stig Bjørlykke 675b312626 Added a missing break - fixing bug 1890.
svn path=/trunk/; revision=23050
2007-10-02 16:27:52 +00:00
Stig Bjørlykke 727d42fa9b Do not indicate bogus length if inside an icmp.
svn path=/trunk/; revision=23049
2007-10-02 15:46:17 +00:00
Jeff Morriss 46d3565179 Make the CPFI dissector new style: return 0 in several cases (including if we don't have MAC addresses for the packet) to give other dissectors a chance to dissect the packet. I rearranged the code quite a bit here and don't have a sample capture to test against: hopefully I didn't break anything.
svn path=/trunk/; revision=23048
2007-10-02 14:45:20 +00:00
Tomas Kukosa bf538397a9 review and update list of TLS cipher suites
svn path=/trunk/; revision=23047
2007-10-02 09:26:28 +00:00
Ronnie Sahlberg 3c17f41224 coverity 263 check if variable is null before dereferencing it
svn path=/trunk/; revision=23046
2007-10-02 08:33:38 +00:00
Ronnie Sahlberg 880bab108c remove a test for null that we dont need since the variable can not be
null at this point


svn path=/trunk/; revision=23045
2007-10-02 08:27:39 +00:00
Ronnie Sahlberg cca87411fa get rid of a check for null we dont need
coverity 257


svn path=/trunk/; revision=23044
2007-10-02 08:21:25 +00:00
Ulf Lamping a8b2f589e9 be a bit more verbose, if the name given to register_dissector_table() is not unique (e.g. because of a buggy/duplicated plugin)
svn path=/trunk/; revision=23042
2007-10-02 05:07:13 +00:00
Ronnie Sahlberg b8d35143d8 change dissect_radius() to become a new-style dissector that can reject
packets that doesnt look like valid radius.

verify that a packet is radius by checking that the command code is 
known and also that the length is between 20 and 4096 bytes

move the tap data to be ep_allocated instead of a static global variable

dont use tvb_memcpy() to read a structure off the wiredata
use tvb_get_...    to unmarshall the fields explicitely



this fixes bug 1634

svn path=/trunk/; revision=23039
2007-09-30 23:14:18 +00:00
Ronnie Sahlberg 927bf43d09 update filter fields for bug 1803
svn path=/trunk/; revision=23038
2007-09-30 22:34:19 +00:00
Guy Harris 8e87bd423f "pinfo->match_string" is a "const char *"; save it into a variable of
the same type - that makes compilers much happier.

svn path=/trunk/; revision=23029
2007-09-29 02:20:17 +00:00
Mike Duigou fc975182fe Improves dissection of JXTA traffic from http connections.
Improved address display in packet summary panes.

more options for jxta pdu filtering by addresses.

svn path=/trunk/; revision=23019
2007-09-28 20:53:56 +00:00
Jaap Keuter f2bc8dd002 Why do I have to enable the Bytes View to see the (start of) data of the Data dissector?
Adding the data as a subtree to the Data dissector.

svn path=/trunk/; revision=23018
2007-09-28 19:16:05 +00:00
Mike Duigou 2697adeda4 Special casing is no longer necessary for formatting of AT_STRINGZ in col_set_addr() as
address_to_str_buf() does now take COL_MAX_LEN as a parameter.

Add support for AT_URI to col_expr for addresses in col_set_addr(). The field names are "uri.src" and "uri.dst".


svn path=/trunk/; revision=23017
2007-09-28 19:00:45 +00:00
Mike Duigou 6aeb75c3f0 Changes get_addr_name_buf() to use the more common convention where the provided buffer size is the entire size of the buffer including the space for the terminating \0
svn path=/trunk/; revision=23016
2007-09-28 18:23:59 +00:00
Martin Mathieson ba1f5676e0 Handle IPv6 addresses in ipprim headers.
svn path=/trunk/; revision=23013
2007-09-28 16:17:22 +00:00
Ronnie Sahlberg 93c5c7a70c this silly protocol uses the same port as ndmp and worse, there is
nothing really in the header to identify it reliably as silly 
vendor specific encapsulation 

10000 is actually registered by iana for ndmp   so it makes no sense for 
a lazy vendor to use it by default.

make it check if the packet is ndmp first before assuming that anything 
that goes to port 10000 must be some lazy vendor specific protocol

grrr


svn path=/trunk/; revision=23009
2007-09-28 07:34:42 +00:00