Commit graph

17357 commits

Author SHA1 Message Date
Guy Harris
7658263b0e Note which *particular* IDL this is. (Actually, is that the OSF's DCE
RPC IDL, Microsoft's DCE RPC IDL, or Samba's DCE RPC IDL?)

Constify some stuff to squelch warnings.

svn path=/trunk/; revision=49672
2013-06-01 03:17:59 +00:00
Jörg Mayer
bbdb29725a Fix buildbot:
cc1: warnings being treated as errors
packet-wccp.c: In function 'wccp_fmt_ipadddress':
packet-wccp.c:555: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:125: warning: shadowed declaration is here
packet-wccp.c: In function 'dissect_wccp2_alternate_mask_value_set_element':
packet-wccp.c:2570: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:125: warning: shadowed declaration is here
make[5]: *** [libdissectors_la-packet-wccp.lo] Error 1
make[5]: *** Waiting for unfinished jobs....


svn path=/trunk/; revision=49667
2013-06-01 00:11:29 +00:00
Jörg Mayer
3d636a2777 Peter Van Eynde <pevaneyn@cisco.com>
via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8635

This is an enhanced WCCP decoder handling the new draft 2.01 standard from http://tools.ietf.org/html/draft-mclaggan-wccp-v2rev1


svn path=/trunk/; revision=49666
2013-05-31 23:17:10 +00:00
Jörg Mayer
65e74551b8 Try to port glbp dissector to new expert info infrastructure.
Compile tested only.

svn path=/trunk/; revision=49665
2013-05-31 23:11:43 +00:00
Michael Mann
81820b20ce Add UDT dissector. Bug 8741 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8741)
From Chas Williams

svn path=/trunk/; revision=49654
2013-05-31 20:37:46 +00:00
Guy Harris
7d17d600b5 Report the operation number in all places where we note that we don't
know about a given operation number.

svn path=/trunk/; revision=49653
2013-05-31 19:00:28 +00:00
Michael Mann
5d6a74fd68 Check USB CCID length to see if subdissectors should be called instead of doing it blindly (which could lead to malformed packets). Bug 8735 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8735)
Also minor cleanup of column info.

svn path=/trunk/; revision=49651
2013-05-31 12:54:35 +00:00
Jeff Morriss
813dcf79a1 Don't intentionally use -1 as an hfindex: while only naughty before, with the
changes from r49644 you'll get complaints about the hf being unregistered...

Note that this code also intentionally passes -1 as an ett_index.  It doesn't
currently complain so I'm leaving it alone for now...

svn path=/trunk/; revision=49648
2013-05-31 02:27:40 +00:00
Jeff Morriss
4361e2a4ed Get rid of most of the if(tree) checks: the proto_tree_add_*() functions
don't need them any more and, as shown in
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3290#c16
we really want to check if we're looking at something beyond the end of the TVB
(in order to break out of very long loops).

svn path=/trunk/; revision=49645
2013-05-31 01:46:40 +00:00
Pascal Quantin
55da3a2254 From Chris Bontje via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8644 :
SEL RTAC (Real Time Automation Controller) EIA-232 Serial-Line Dissection

svn path=/trunk/; revision=49635
2013-05-30 20:51:18 +00:00
Jeff Morriss
d4f44f4979 Get rid of C++/C99-style comments.
svn path=/trunk/; revision=49632
2013-05-30 12:54:24 +00:00
Sake Blok
dea156c3d5 Rename "http.response_ts" to "http.time" to be inline with other response time fiels (like dns.time and smb.time etc)
svn path=/trunk/; revision=49630
2013-05-30 07:16:04 +00:00
Anders Broman
af28c2b9eb From Chris Pane:
Updates to IEEE 1722.1 dissector for Draft 23R2.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8732

svn path=/trunk/; revision=49628
2013-05-30 05:24:37 +00:00
Jeff Morriss
34230e736d Fix the infinite recursion problem reported in
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8733 :

We can't solely rely on the port in the URI to determine whether we will be
recursively called by decode_tcp_ports().  Instead also check the conversation
entry too: if we find that we are the subdissector for this conversation
(which we might be--without the port being in our list of ports--if we
heuristically picked up the conversation or the user did Decode-As),
just bail out and dissect the payload as data.

svn path=/trunk/; revision=49623
2013-05-29 22:43:20 +00:00
Jeff Morriss
a9ce065e49 As described in the thread starting with:
https://www.wireshark.org/lists/wireshark-dev/201305/msg00207.html

The PC and SSN are mandatory for the SCCP "user table" to work.  Complain if
they are not given.

svn path=/trunk/; revision=49605
2013-05-28 22:33:33 +00:00
Martin Mathieson
3a80080fe9 Add some info to make it easier to see when SI config changes:
- show systemInfoModification in info column (and expert info), also
  show number of UEs paged
- add expert item when systemInfoValueTag changes
- for MIB, add SFN to info column

svn path=/trunk/; revision=49603
2013-05-28 22:11:56 +00:00
Michael Mann
553bec65ba Batch of filterable expert infos. This (mostly) completes the non-ASN.1 list of (built-in) dissectors that only had a small handful of add_expert_info_format calls.
svn path=/trunk/; revision=49602
2013-05-28 03:11:44 +00:00
Evan Huus
292e50ed1d Remove unused variable caught by recent GCC
svn path=/trunk/; revision=49601
2013-05-28 00:48:09 +00:00
Michael Mann
b0090fd046 Batch of filterable expert infos
svn path=/trunk/; revision=49600
2013-05-27 23:21:11 +00:00
Pascal Quantin
0ee4d0a00a Postfix FT_NONE fields with "_element" string to reduce number of incompatible filters in ASN.1 dissectors
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2402

svn path=/trunk/; revision=49599
2013-05-27 20:26:49 +00:00
Pascal Quantin
38d9a87a49 From Chris Hellberg via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8723 :
M3UA dissector RFC display update

svn path=/trunk/; revision=49598
2013-05-27 18:58:24 +00:00
Michael Mann
d0c8f60840 Fix compiler warning
svn path=/trunk/; revision=49597
2013-05-27 17:35:21 +00:00
Michael Mann
ea177a2575 Batch of filterable expert infos
svn path=/trunk/; revision=49596
2013-05-27 17:30:43 +00:00
Anders Broman
c6af00a977 From jamie Neufeld:
Add an option to selct if payload is to be dissected as SYNC.

svn path=/trunk/; revision=49595
2013-05-27 16:27:50 +00:00
Alexis La Goutte
8cd231162b From Jouni Malinen via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8711 Wi-Fi Display dissector
This matches the style used for Wi-Fi Display and gets rid of a minimal
header file for functionality that extends packet-ieee80211.c.

svn path=/trunk/; revision=49594
2013-05-27 16:20:57 +00:00
Alexis La Goutte
816ed3ce0d From Jouni Malinen via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8711 Wi-Fi Display dissector
The attached patch adds initial support for dissecting Wi-Fi Display information element

svn path=/trunk/; revision=49593
2013-05-27 16:20:29 +00:00
Ronnie Sahlberg
0e06d5ce58 SCSI Add decoding of Block Device Characteristics VPD page
svn path=/trunk/; revision=49592
2013-05-27 03:44:06 +00:00
Ronnie Sahlberg
c8a7157414 SCSI: Print the INQUIRY EVPD page name in the info column
svn path=/trunk/; revision=49591
2013-05-27 03:13:31 +00:00
Ronnie Sahlberg
78d98f852e SCSI: add dissection of Tiemout Descriptor for REPORT SUPPORTED OPCODES
svn path=/trunk/; revision=49590
2013-05-27 01:09:49 +00:00
Ronnie Sahlberg
edd38556aa SCSI: Add dissection of the data-out buffer for SANITIZE service action OVERWRITE
svn path=/trunk/; revision=49589
2013-05-26 18:38:56 +00:00
Gerald Combs
08b5086b0f [Automatic manuf, services and enterprise-numbers update for 2013-05-26]
svn path=/trunk/; revision=49585
2013-05-26 14:03:39 +00:00
Michael Mann
5bc22a25df Batch of filterable expert infos.
svn path=/trunk/; revision=49584
2013-05-26 03:29:07 +00:00
Ronnie Sahlberg
2ab2ad7a42 SCSI: Add basic decoding of SANITIZE opcode
svn path=/trunk/; revision=49582
2013-05-25 22:47:10 +00:00
Michael Mann
7e8e5b347e Batch of filterable expert_infos.
svn path=/trunk/; revision=49581
2013-05-25 17:06:40 +00:00
Evan Huus
f16996424a From Fabio Tarabelloni: more minor formatting and comment fixes.
svn path=/trunk/; revision=49576
2013-05-25 13:01:25 +00:00
Evan Huus
ea416f0377 From Fabio Tarabelloni: fix copy-pasted comment.
svn path=/trunk/; revision=49575
2013-05-25 12:25:51 +00:00
Michael Mann
b2027be0f8 Add filterable expert info.
svn path=/trunk/; revision=49573
2013-05-25 03:27:31 +00:00
Evan Huus
cf7ec9f1e9 From Fabio Tarabelloni via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8387
ZigBee ZCL OnOff cluster dissection.

Also, fix decryption of APS commands.

svn path=/trunk/; revision=49571
2013-05-25 01:45:16 +00:00
Anders Broman
9d5b23bc76 use key in all p_add_proto_data() p_get_proto_data()
svn path=/trunk/; revision=49568
2013-05-24 22:38:25 +00:00
Pascal Quantin
ec1ebf5dd8 From LI Hai via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8708 :
Add MAC-DATA support to TETRA dissector and other minor improvements

svn path=/trunk/; revision=49567
2013-05-24 20:55:42 +00:00
Michael Mann
a686f1713a Bluetooth: Highlight correct bytes in some SDP trees (Part 2). Bug 8700 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8700)
svn path=/trunk/; revision=49566
2013-05-24 19:40:09 +00:00
Michael Mann
5e86cb9bf4 Use new expert info API in idl dissectors. These generated about 50% of the add_expert_info_format() calls.
svn path=/trunk/; revision=49561
2013-05-24 18:09:57 +00:00
Michael Mann
45658e1cbd first batch of dissectors to use the new expert info API.
svn path=/trunk/; revision=49560
2013-05-24 18:02:54 +00:00
Pascal Quantin
ecd3073813 How to mess with a keyboard...
svn path=/trunk/; revision=49558
2013-05-24 17:43:36 +00:00
Pascal Quantin
01da09fcb5 One more compilation fix for gcc 4.3.2 ('toi' may be used uninitialized in this function)
svn path=/trunk/; revision=49557
2013-05-24 17:36:19 +00:00
Evan Huus
f953ba8346 Remove unused function parameter, rename variable to avoid shadowing.
svn path=/trunk/; revision=49556
2013-05-24 17:24:58 +00:00
Michael Mann
d12fc51afd Overhauled the RMT dissectors. Not sure each needs its own file, but since this involves multiple RFCs, they remain split out by that. More are now a "pure" dissector and not a "decoding function hook".
Some Notes:
1. Converted to "new style" dissectors with data being passed between dissectors
2. Combined header files into one since there wasn't much that should have really been in the header files.  Implemented functionality is in c module of respective dissector.

Not sure if LCT preferences should just be in the LCT dissector and not the RMT-ALC "parent", but kept for backwards compatibility.

svn path=/trunk/; revision=49555
2013-05-24 17:06:23 +00:00
Pascal Quantin
608fe54c05 Fix computation of TP-User-Data-Length when SMS is coded with GSM 7 bit default alphabet and TP-User-Data-Header field is present
svn path=/trunk/; revision=49546
2013-05-23 20:28:59 +00:00
Michael Mann
7f832c18c3 Support Raptor/Raptor-Q FEC in RMT dissector. Bug 8699 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8699)
From Igor Slepchin.

svn path=/trunk/; revision=49523
2013-05-22 20:30:30 +00:00
Pascal Quantin
491b512399 Do not stop dissection when there is no tree: otherwise it prevents successful reassembly of SMS fragments
svn path=/trunk/; revision=49516
2013-05-22 18:19:05 +00:00
Michael Mann
1bdf3446c5 From Michal Labedzki via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8700 :
Highlight correct bytes in some SDP trees.

svn path=/trunk/; revision=49481
2013-05-21 13:27:48 +00:00
Michael Mann
77b1d9b323 add a few filterable fields/expert info
svn path=/trunk/; revision=49479
2013-05-21 12:55:55 +00:00
Michael Mann
2369729832 use ep_ allocated memory instead of g_ allocated.
svn path=/trunk/; revision=49478
2013-05-21 12:54:08 +00:00
Anders Broman
51723864c1 - Move the export_pdu tap outside of if(tree)
- Have the diameter tap request a tree.

svn path=/trunk/; revision=49475
2013-05-21 05:47:20 +00:00
Anders Broman
b8618947bd Add missing element NSAP to IE Evolved Allocation/Retention Priority II.
svn path=/trunk/; revision=49474
2013-05-21 05:08:50 +00:00
Michael Mann
478ee0ae73 DHCPv6 option 56, RFC 5908
Bug 8421 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8421)

svn path=/trunk/; revision=49473
2013-05-21 03:24:55 +00:00
Michael Mann
24df2990e5 Use col_set_fence() functionality to remove an unnecessary global variable.
svn path=/trunk/; revision=49472
2013-05-21 02:08:40 +00:00
Michael Mann
f04a801716 Minor cleanup. Removal of unnecessary packet_info* global variable
svn path=/trunk/; revision=49471
2013-05-21 02:04:41 +00:00
Evan Huus
575aba0a05 Fix format string typo.
svn path=/trunk/; revision=49470
2013-05-21 00:11:10 +00:00
Michael Mann
e39b328f0d add a few more filterable items.
svn path=/trunk/; revision=49469
2013-05-20 23:56:47 +00:00
Jeff Morriss
8730b3e8c5 Fix:
Error: the blurb for hf_048_030_WE ("asterix.048_030_WE") matches the field name in epan/dissectors/packet-asterix.c

Also remove a few blurbs which aren't exact matches but are basically the same.

svn path=/trunk/; revision=49468
2013-05-20 23:23:34 +00:00
Evan Huus
5484210e11 More compiler warning fixes...
svn path=/trunk/; revision=49461
2013-05-20 20:45:52 +00:00
Evan Huus
0a0b6bf6c2 Third time lucky, hopefully fix the last of the compiler warnings...
svn path=/trunk/; revision=49460
2013-05-20 20:30:23 +00:00
Evan Huus
148d363586 Use doubles and FT_DOUBLE for better precision and to avoid a large
number of compiler warnings for systems where floats are 32 bits, but
floating-point literals default to 64-bit doubles.

svn path=/trunk/; revision=49459
2013-05-20 20:16:03 +00:00
Evan Huus
98d005506a Fix some compile warnings, and spread a struct definition over multiple
lines to make it obvious where the 32-bit cast is needed, since it's not
at all obvious to me...

svn path=/trunk/; revision=49458
2013-05-20 19:56:04 +00:00
Evan Huus
230205de79 From Marko Hrastovec via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8579
Dissector for ASTERIX (a radar data and air traffic controller protocol).

svn path=/trunk/; revision=49457
2013-05-20 19:23:41 +00:00
Anders Broman
9327da8ffa From Tom Bottom:
Addition of STREAM_VLAN_ID field to GET_STREAM_INFO and SET_STREAM_INFO pdu in packet-ieee17221.c

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8698

svn path=/trunk/; revision=49450
2013-05-20 18:41:46 +00:00
Anders Broman
631b77e47a Remove #if 0:ed code.
svn path=/trunk/; revision=49449
2013-05-20 18:38:34 +00:00
Anders Broman
e3f8090f76 Add export_pdu_tap to packet-diameter.c
svn path=/trunk/; revision=49448
2013-05-20 18:30:32 +00:00
Anders Broman
6a3a3c228c Make preparation to select which level tap is to be used.
svn path=/trunk/; revision=49446
2013-05-20 17:48:09 +00:00
Alexis La Goutte
771675cfa5 From me via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8631
Fix to honour the Response Bit/Opcode implementation,
as e.g. a map response opcode is not 129 as per 1000 0001 but should be
Response bit =1 / Opcode =1.

* Rename opcode variable to ropcode (and pcp_ropcode_vals)
* Use pcp_opcode for hf_pcp_opcode
* Add hf for R item (and add tfs)
* Fix bitmask for opcode

Also fix warning found by encoding-args tool.

svn path=/trunk/; revision=49445
2013-05-20 17:33:44 +00:00
Evan Huus
4444bdca61 Fix typo s/ENCNA/ENC_NA/
svn path=/trunk/; revision=49442
2013-05-20 17:06:07 +00:00
Alexis La Goutte
694c6c2e3a Add Modelines Info and fix warning from fix-encoding-args tools
svn path=/trunk/; revision=49438
2013-05-20 16:31:54 +00:00
Alexis La Goutte
d86a5a8013 From david19801118 via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8680 Add decryption for WPA eapol 4-way handshake
Wireshark can't decode eapol packet which using WPA properly.
(decode eapol packaet which using WPA2 is work well.)

svn path=/trunk/; revision=49437
2013-05-20 16:31:44 +00:00
Anders Broman
a68080a1c6 Don't access nbap_dch_chnl_info if the index is > maxNrOfDCHs
svn path=/trunk/; revision=49418
2013-05-19 15:21:33 +00:00
Ronnie Sahlberg
44e9de065d SCSI: Add support for report-one-command structure for REPORT SUPPORTED OPCODES
svn path=/trunk/; revision=49415
2013-05-19 14:45:12 +00:00
Ronnie Sahlberg
a9b5d79a41 SCSI: REPORT SUPPORTED OPCODES print the reporing options in human readable
text.

svn path=/trunk/; revision=49414
2013-05-19 14:24:31 +00:00
Pascal Quantin
d560c14cae Regenerate t124 dissector
svn path=/trunk/; revision=49411
2013-05-18 17:50:10 +00:00
Martin Kaiser
2592079230 distinguish between length and reported length when dissecting a packet
with DLT_USERxy

with this fix, the user-encap dissector hands over truncated packets to
the defined sub-dissector

(the previous version would assume length==reported length and throw an
execption for truncated packets)

svn path=/trunk/; revision=49409
2013-05-18 17:08:46 +00:00
Ronnie Sahlberg
783cf2eff2 SCSI: Add dissection of REPORT SUPPORTED OPCODES
svn path=/trunk/; revision=49408
2013-05-18 16:26:26 +00:00
Pascal Quantin
a9ced211ac Do not display payload twice when using uncompressed profile
svn path=/trunk/; revision=49407
2013-05-18 11:41:44 +00:00
Guy Harris
ba8ead5e61 Add some casts for C++ compatibility.
Make conv_get_fid() return a "const char *", as it can return a string
constant, and they are usually *not* writable.

svn path=/trunk/; revision=49400
2013-05-18 01:42:20 +00:00
Guy Harris
a274d9de4a A "pointer to something" is a "void *", not a "char *". Using "void *"
avoids some alignment warnings from clang.

svn path=/trunk/; revision=49399
2013-05-18 00:45:20 +00:00
Pascal Quantin
0091c984df From Chris Bontje via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8695 :
packet-synphasor.c: use 'new_' versions of dissector registration and initialization

svn path=/trunk/; revision=49386
2013-05-17 21:24:20 +00:00
Anders Broman
6cfe8894b3 set col fence, in case there are more Diameter PDU:s in a transport message.
svn path=/trunk/; revision=49381
2013-05-17 16:24:46 +00:00
Guy Harris
d4ad2e087c Fix some more warnings that show up on platforms with 32-bit time_t.
Get rid of double semicolons.

svn path=/trunk/; revision=49371
2013-05-17 08:09:39 +00:00
Anders Broman
4b85b45281 Squelch more warnings about empty structures.
svn path=/trunk/; revision=49366
2013-05-17 05:33:53 +00:00
Guy Harris
f296630024 Squelch warnings about empty structures and chopping off 64-bit values
at 32 bits.

svn path=/trunk/; revision=49364
2013-05-17 05:25:11 +00:00
Jeff Morriss
504d830981 From Dominique Martinet via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8589 :
Theses patches add alot of new message types for the 9P protocol and its
extensions (most specifically 9P2000.L), while staying compatible with the
legacy protocol (hence the hashtable with conversation information, since
version is only known at handshake)

It is still missing alot of 9P2000.u specifics, but I don't have any server
to test it with. I'm also missing some dump to test legacy, but I'm pretty
confident I didn't break much there as it is mostly compatible, most
differences are handled using different messages, the only one that was
changed would be RERROR.


second diff also adds deeper interpretation of the protocol, by following
the conversation stream and keeping a bigger hashtable associating fid (file
handles) and file names, for easier debugging.


From me: roll the contents of the (new) packet-9p.h back into the C file.

svn path=/trunk/; revision=49363
2013-05-17 02:00:05 +00:00
Evan Huus
5dc6e4598e Use proto_tree_add_int64 for 64-bit values.
svn path=/trunk/; revision=49362
2013-05-17 00:56:54 +00:00
Evan Huus
0c2e3fb3a7 From Florian Forster via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8472
Starting with collectd 5.0, the representation of time has changed. The new
fields "TIME_HR" and "INTERVAL_HR" contain the seconds since the epoch in steps
of 2^{-30} seconds (roughly nanosecond precision). This patch adds support for
both time formats.

From me:
Permit using 64-bit integers with value-strings, as this protocol actually 
seems to needs it. We'll misbehave for named values > 2^32 but there aren't any
of those despite the field being 64 bits.


svn path=/trunk/; revision=49357
2013-05-17 00:06:26 +00:00
Anders Broman
b17cefcd66 From Cal Turney:
Missed p_get_proto_data() signature update in #if 0:ed code.

svn path=/trunk/; revision=49342
2013-05-16 21:00:36 +00:00
Chris Maynard
408539dfa0 Treat invalid checksum of 0x0000 no different than any other invalid checksum.
Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8629
#BACKPORT (1.10, 1.8, 1.6)

svn path=/trunk/; revision=49332
2013-05-16 15:21:42 +00:00
Pascal Quantin
a20d3ddf8b Add partial dissection of IR packet with IP profile
svn path=/trunk/; revision=49331
2013-05-16 15:02:55 +00:00
Anders Broman
c1f144e9aa From Dirk:
improve PKCS12 SSL certificate load.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8641

svn path=/trunk/; revision=49327
2013-05-16 05:36:13 +00:00
Anders Broman
ae74ef756b From Neil Piercy:
AMR Frame Type uses wrong Value String.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8681
Applied by hand, patch not against trunk?

svn path=/trunk/; revision=49326
2013-05-16 05:08:16 +00:00
Evan Huus
0919116ccd Make the rtmpt max packet size that Jeff just halved a preference, so that
people who really want it can set it higher again.

svn path=/trunk/; revision=49322
2013-05-16 01:56:48 +00:00
Jeff Morriss
80cab0bdbb Temporarily lower the max packet size for this dissector in order to silence
the fuzz bot (see https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6898 and
all of its duplicates--and the bugs marked as duplicates of those duplicates).

Halving the packet size seems to work for most of the captures I've tried;
we'll see if the buildbot agrees.

If someone can figure out a good way to control the memory usage of this
dissector then the limit could be increased again.

svn path=/trunk/; revision=49321
2013-05-16 01:48:44 +00:00
Gerald Combs
6b0c550696 Un-shadow a couple of variables.
svn path=/trunk/; revision=49317
2013-05-15 17:49:45 +00:00
Anders Broman
653006b4b8 - packet-sip.c adds per-packet data twice only add new packet data if no previous data exists.
- Use the key as SIP can occure more than once in a frame.

svn path=/trunk/; revision=49315
2013-05-15 16:53:19 +00:00
Anders Broman
aefb9200d1 SDP adds per-packet-data twice, refactor to not use per-packet data.
svn path=/trunk/; revision=49314
2013-05-15 16:51:43 +00:00
Anders Broman
85ff18cf16 - Use the key for comparison of per_proto_data.
- Show the number of per-packet-data entries and which protocol has made entries in the frame.

svn path=/trunk/; revision=49313
2013-05-15 16:50:37 +00:00
Anders Broman
5b279569d2 Export CellGlobalIdOrServiceAreaIdOrLAI.
svn path=/trunk/; revision=49312
2013-05-15 16:48:49 +00:00
Pascal Quantin
099c4eee37 Display Command Qualifier in case of Open Channel (broken in r48862)
svn path=/trunk/; revision=49301
2013-05-14 20:40:34 +00:00
Anders Broman
8e509279b8 Add a tag for original frame number.
svn path=/trunk/; revision=49298
2013-05-14 19:57:19 +00:00
Jeff Morriss
a53776288f Don't try to decode an IPv6 address if it looks like we've been handed the
(obsolete) Server-Assignment-Type AVP (which conflicts with the newer
3GPP-SGSN-IPv6-Address AVP).

This allows users to not see malformed packets (which look completely correct)
if they choose to use the AVP values from imscxdx.xml instead of those from
TGPPGmb.xml.

svn path=/trunk/; revision=49296
2013-05-14 19:26:33 +00:00
Anders Broman
be8dbe75c5 Upate to spec. 11.0.0
- fix problem with extension dissection.

svn path=/trunk/; revision=49294
2013-05-14 19:00:53 +00:00
Pascal Quantin
d8e31edd88 Fix compilation
svn path=/trunk/; revision=49261
2013-05-12 19:18:35 +00:00
Pascal Quantin
ff5712fd15 Fix the RTP-MIDI Controller filter name
svn path=/trunk/; revision=49260
2013-05-12 19:06:40 +00:00
Anders Broman
85a8e304dd Add the posibillity to use a key for per-packet-data.
svn path=/trunk/; revision=49259
2013-05-12 18:11:02 +00:00
Evan Huus
f2ccdd6dbf From Dirk Jagdmann via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8640
Fix dissection of the NTLMSSP v2 Challenge Response. The old code would loop
over the Attributes until the end of the Response, however in reality the last
values of a Response are four 0 bytes and maybe padding. Also change the names
of the values to match those from the Microsoft specification. Also change the
name of one flags bit from unknown to "Anonymous", again according to the
Microsoft spec.

svn path=/trunk/; revision=49258
2013-05-12 14:26:37 +00:00
Evan Huus
930d0c1ed6 From Ravi Kondamuru via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8637
Add support for version 2.6 of netscaler capture format.

svn path=/trunk/; revision=49250
2013-05-11 18:43:53 +00:00
Martin Kaiser
3a4fc8e1dc convert to new-style dissector
svn path=/trunk/; revision=49249
2013-05-11 15:34:55 +00:00
Martin Kaiser
d216276709 remove return;
svn path=/trunk/; revision=49248
2013-05-11 15:33:27 +00:00
Martin Kaiser
1e815cb2ca no need for if(tree)
svn path=/trunk/; revision=49247
2013-05-11 15:32:07 +00:00
Martin Kaiser
f4791151a7 col_add_fstr() does not need check_col()
svn path=/trunk/; revision=49246
2013-05-11 15:30:21 +00:00
Martin Kaiser
33aebb4756 tabs -> spaces
add editor modelines

svn path=/trunk/; revision=49245
2013-05-11 15:29:20 +00:00
Jörg Mayer
21f1d0e46b Peter Van Eynde
via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8635
"enhanced WCCP decoder"

GRE part of the patch.

Me:
Reorder values
Manually apply the rejected parts of the patch (incompatible whitespace)
Fix whitespace inconsistencies of the patch.

svn path=/trunk/; revision=49240
2013-05-11 10:46:36 +00:00
Evan Huus
1164990ffb Initialize a proto_tree variable which is now used for expert info but is
only being set if tree.

svn path=/trunk/; revision=49239
2013-05-11 02:02:31 +00:00
Guy Harris
7a6235666d Add expert info for radiotap header errors.
Add the "unknown fields" expert info to the bitmap, just as we do the
other expert info.

svn path=/trunk/; revision=49238
2013-05-10 23:21:42 +00:00
Guy Harris
85525d4d59 Update a comment.
svn path=/trunk/; revision=49235
2013-05-10 19:40:23 +00:00
Pascal Quantin
914099a5a9 Fix a few bugs related to PDU export feature:
- tag length is wrong if proto name was a multiple of 4 bytes
- tag length is wrong in case no IP address is available in packet_info structwhile tag is requested
- endianness issue when dumping the port number
- overlapping tag IPv4 Dst address and IPv6 Src address
- do not call dissector when it is not found
- typo errors
Enhancements:
- add a subtree for tag content
- display IPv6 Src/Dst address

svn path=/trunk/; revision=49232
2013-05-10 13:13:50 +00:00
Guy Harris
660bda53cd OK, what's the deal with TZSP_CONFIG packets?
svn path=/trunk/; revision=49229
2013-05-10 07:32:18 +00:00
Guy Harris
34a7231d22 Add some tag values from the TZSP spec.
Change white space.

svn path=/trunk/; revision=49228
2013-05-10 07:30:32 +00:00
Guy Harris
66f0e7fdd8 Use #defines for protocol types, and make the description of type 0
match the TZSP spec.

svn path=/trunk/; revision=49226
2013-05-10 07:03:25 +00:00
Guy Harris
ac654293c3 Add (Wayback Machine) URL for an (incomplete) specification of TZSP
(what are the contents of a CONFIG packet?).

svn path=/trunk/; revision=49225
2013-05-10 06:46:42 +00:00
Guy Harris
518faee2e7 Wrap 64-bit constants in G_GUINT64_CONSTANT().
svn path=/trunk/; revision=49222
2013-05-10 02:18:15 +00:00
Evan Huus
c900d0ea7e From "0xBismarck" via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8573
Dissector for PTP-over-IP (picture transfer protocol). PTP-over-USB also exists
but is not identical, so some parts of the dissector are shared for future use.

svn path=/trunk/; revision=49221
2013-05-10 01:37:14 +00:00
Michael Mann
94add739e8 NULL terminate bit field list. Bug 8638 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8638)
svn path=/trunk/; revision=49214
2013-05-09 12:49:31 +00:00
Martin Kaiser
54a34fdb30 Coverity 1011110: Unused pointer value
remove the whole unused subtree


svn path=/trunk/; revision=49213
2013-05-09 11:40:14 +00:00
Martin Kaiser
e1ba9948fd From Christian Svensson
use correct Fibre Channel EOFs according to the FC-FS-3 specification
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8636

svn path=/trunk/; revision=49210
2013-05-08 20:27:31 +00:00
Martin Kaiser
92398bab6a add IDs for host license, play count
svn path=/trunk/; revision=49206
2013-05-07 19:36:46 +00:00
Alexis La Goutte
b53ac56b03 From Christian Koenning via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8631 RFC 6887 Port Control Protocol Response 96 bit reserved not 64 bit
As per RFC 6887 the response header has 96bit reserved bit, not 64.
Without the attached patch, the PCP Responses are parsed incorrectly

svn path=/trunk/; revision=49202
2013-05-07 13:41:52 +00:00
Jörg Mayer
fe2f036bd9 Fix a c++ compat warning in the template and copy the resulting
file to packet-dcerpc-drsuapi.c
This seems to undo some (warning fix) changes made to the dissector
directly instead of fixing the template (or generator).

svn path=/trunk/; revision=49192
2013-05-07 01:52:33 +00:00
Martin Mathieson
2771af9851 Don't throw away UM re-assembly state when see MAC retx frame.
svn path=/trunk/; revision=49188
2013-05-06 21:52:49 +00:00
Martin Kaiser
754d4ac902 From Andreas Schultz
use correct PRF for DTLS 1.2

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8608

svn path=/trunk/; revision=49187
2013-05-06 20:00:59 +00:00
Anders Broman
1ab65e7146 Add a helper function to load tags, handle IP and port tags and
copy packet comments.

svn path=/trunk/; revision=49184
2013-05-06 15:59:16 +00:00
Michael Mann
880fc1ba7f Allow fix dissector to be found by name, which SSL needs for decryption. Bug 8625 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8625)
svn path=/trunk/; revision=49183
2013-05-06 13:58:36 +00:00
Evan Huus
55570724c3 #if 0 out some unused code that was causing latest GCC to complain.
Also fix indentation.

svn path=/trunk/; revision=49182
2013-05-05 22:56:52 +00:00
Anders Broman
f26b36f2aa C++ comments.
svn path=/trunk/; revision=49181
2013-05-05 20:52:42 +00:00
Anders Broman
ea7a1ff3b7 84: warning: 'proto_name' may be used uninitialized in this function
svn path=/trunk/; revision=49179
2013-05-05 20:03:00 +00:00
Anders Broman
a268bb6b94 Add the abillity to export PDU:s to file using a USER_DLT adding meta data before the actual protocol PDU. Some meta tags makes it possible for the dissector of the user DLT to call the correct PDU dissector.
This is prof-of-concept needs a bit of cleanup.

svn path=/trunk/; revision=49177
2013-05-05 19:37:51 +00:00
Anders Broman
44f48d0464 Add the abillity to export PDU:s to file using a USER_DLT adding meta data before the actual protocol PDU. Some meta tags makes it possible for the dissector of the user DLT to call the correct PDU dissector.
This is prof-of-concept needs a bit of cleanup.

svn path=/trunk/; revision=49176
2013-05-05 19:36:53 +00:00
Evan Huus
81ecf094f6 From Hauke Mehrtens via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8567
[PATCH 7/8]
Dissect DTLS server key exchange

[PATCH 8/8]
Dissect DTLS client key exchange

[From me]
Clean up some field display names


svn path=/trunk/; revision=49175
2013-05-05 14:19:59 +00:00
Evan Huus
ad3c91fb81 From Hauke Mehrtens via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8567
[PATCH 5/8]
Dissect client key exchange for PSK

[PATCH 6/8]
Dissect client key exchange for RSA-PSK


svn path=/trunk/; revision=49174
2013-05-05 14:10:09 +00:00
Evan Huus
39abf7ca0a From Hauke Mehrtens via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8567
[PATCH 3/8]
Detect PSK and RSA_PSK key exchange

[PATCH 4/8]
Dissect the identity hint for PSK and RSA_PSK key exchanges

[From me]
Using proto_tree_add_item instead of proto_tree_add_uint in one place

svn path=/trunk/; revision=49173
2013-05-05 14:01:11 +00:00
Evan Huus
79b3d4e32f From Hauke Mehrtens via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8567
[PATCH 1/8]
Add a subtree for the random DTLS elements. This is what TLS already does, and
it makes more sense than prefixing their display names.

[PATCH 2/8]
Show the actual hex content of the cookie by just using proto_tree_add_item.
The cookie length has its own field, so there's no need to display it twice.

[From me]
Fix an @ in the AUTHORS file


svn path=/trunk/; revision=49172
2013-05-05 13:49:49 +00:00
Martin Mathieson
9d6d7f78c3 Remove an unnecessary header include.
svn path=/trunk/; revision=49171
2013-05-05 11:32:00 +00:00
Michael Mann
2a9201a34f Remove if (tree) so expert_info will always be called.
svn path=/trunk/; revision=49170
2013-05-05 11:02:42 +00:00
Jörg Mayer
e70f754cff Yet another protocol update via
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8616

svn path=/trunk/; revision=49165
2013-05-04 23:37:02 +00:00
Evan Huus
23f134d48e From Joe McEachern via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8614
Add tcp.analysis.spurious_retransmission. Although RFC 793 does not define
spurious TCP retransmissions, TCP spurious retransmissions are referenced in
other RFCs and research.

svn path=/trunk/; revision=49160
2013-05-04 12:37:01 +00:00
Alexis La Goutte
648ac74b5e Fix errors found by fix-encoding-args tools
svn path=/trunk/; revision=49158
2013-05-04 08:12:50 +00:00
Alexis La Goutte
f6fd237a35 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=49157
2013-05-04 08:12:36 +00:00
Alexis La Goutte
71f1f8b9d3 Fix indents (Use Spaces) Add Modelines
svn path=/trunk/; revision=49156
2013-05-04 08:12:25 +00:00
Michael Mann
e5fe6b1dca LISP control packet incorrectly identified as LISP data based when UDP source port is 4341. Bug 8627 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8627)
Also did some minor cleanup/improvements while I was there.

svn path=/trunk/; revision=49154
2013-05-04 02:20:59 +00:00
Michael Mann
d9077264d6 missed adding packet-ssl.h.
svn path=/trunk/; revision=49153
2013-05-04 01:37:55 +00:00
Michael Mann
377470abe3 Decrypt Fix protocol over SSL. Bug 8625 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8625)
svn path=/trunk/; revision=49152
2013-05-04 01:27:33 +00:00
Martin Mathieson
33e738bf97 Remove unnecessary lines from handoff function.
svn path=/trunk/; revision=49149
2013-05-03 18:28:58 +00:00
Martin Mathieson
9032963cf7 Add a dissector for the Ixia Anue encoding of timestamps in the ethernet
trailer.

svn path=/trunk/; revision=49148
2013-05-03 17:52:31 +00:00
Anders Broman
ed0861abaa Add 3gpp2_type16.
svn path=/trunk/; revision=49147
2013-05-03 17:34:49 +00:00
Michael Mann
ce537f6b94 Remove static packet_info *gpinfo and just use the packet_info provided by the function.
svn path=/trunk/; revision=49145
2013-05-03 14:54:39 +00:00
Michael Mann
b542526248 Remove global packet_info* current_pinfo
svn path=/trunk/; revision=49143
2013-05-03 02:43:43 +00:00
Evan Huus
f25ebae549 Add some casts to hush the buildbots, and fix what I assume was a copy-pasto
to ensure that the return value of strlen is actually used as the length of the
string.

svn path=/trunk/; revision=49142
2013-05-03 01:37:27 +00:00
Michael Mann
c83619a25a Remove unnecessary global variables
svn path=/trunk/; revision=49141
2013-05-03 00:39:14 +00:00
Michael Mann
cd2d46ab21 Finish improving NTLM and PLAIN authentication. Bug 8600 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8600)
From Uli Heilmeier 

svn path=/trunk/; revision=49140
2013-05-03 00:04:36 +00:00
Michael Mann
31320e7271 Dissect SSID List element.
From Jouni Malinen, bug 8613 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8613)

svn path=/trunk/; revision=49137
2013-05-02 13:08:31 +00:00
Michael Mann
ccf8013f95 Remove useless global variables
svn path=/trunk/; revision=49136
2013-05-02 13:03:45 +00:00
Michael Mann
f52ecf47c8 Remove global variable g_pinfo.
svn path=/trunk/; revision=49135
2013-05-02 12:59:07 +00:00
Anders Broman
cacddebdb7 From Sandeep Dahiya:
Extend the value_string that show the platform from where the packet was captured.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8624

svn path=/trunk/; revision=49133
2013-05-02 05:16:09 +00:00
Michael Mann
25e62daeb9 Add a subtree for P2P Client Info Descriptor. Part of bug 8613 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8613)
From Jouni Malinen

svn path=/trunk/; revision=49132
2013-05-02 02:09:08 +00:00
Michael Mann
5b416c8479 IEEE802.11 improvements:
1. ANQP Venue Name is a UTF-8 string
2. Dissect Hotspot 2.0 indication and ANQP elements
3. Dissect TFS Request/Response
4. Dissect WNM-Notification Request frames

svn path=/trunk/; revision=49131
2013-05-02 01:59:34 +00:00
Michael Mann
f1d06a226b Fix P2P Group Info validation code for Device Name length field. Bug 8613 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8613)
From Jouni Malinen 

svn path=/trunk/; revision=49130
2013-05-02 01:51:02 +00:00
Michael Mann
f1918b01e1 Add BSS Max Idle Period, WNM-Sleep Mode.
Fix and enhance TCLAS dissection.

From Jouni Malinen, bug 8613 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8613)

svn path=/trunk/; revision=49129
2013-05-02 01:15:25 +00:00
Michael Mann
195e87f3ea Protect a "divide by zero" operation. Bug 7359 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7359). This seems to have been generated through a corrupted UAT file switching between 1.8 and 1.10, but it's a good check to have regardless.
svn path=/trunk/; revision=49128
2013-05-01 23:59:16 +00:00
Guy Harris
1fe16c1d6a Fix warning.
svn path=/trunk/; revision=49118
2013-05-01 21:15:47 +00:00
Michael Mann
b787f03df3 Remove some global variables in favor of private_data member of asn1_ctx_t. Bug 7060 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7060). This should (mostly) passify the bug, but it appears like this could be done with a lot more ASN.1 dissectors.
svn path=/trunk/; revision=49117
2013-05-01 20:54:31 +00:00
Jörg Mayer
dbd718c606 Whitespace fixes: Indented lines should not start with
spaces followed by tabs.

svn path=/trunk/; revision=49115
2013-05-01 19:51:46 +00:00
Jeff Morriss
695d3fde1c Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8622 :
hsrp2.md5_auth_data is added to the tree with a length of 16 so declare it as
FT_BYTES instead of FT_UINT32 (using the latter causes an assertion in
trunk-1.8 and an expert info in trunk and trunk-1.10).

svn path=/trunk/; revision=49114
2013-05-01 19:42:28 +00:00
Jörg Mayer
acc90e3d59 Diederik de Groot <dkgroot@talon.nl>
via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8616

Further enhancements to packet-skinny.c, change cast. filters
to skinny. filters.
While I'm not sure whether that this is really correct, we don't
have any sample capture to verify whether the old solution really
worked. At least that way checkfiltername.pl doesn't complain
any more ;-)

Me: Tiny whitespace fixes.

svn path=/trunk/; revision=49113
2013-05-01 19:16:02 +00:00
Jeff Morriss
56552cb0fa Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8618 :
Allow port 0 in RSA Key List.

(This has been broken since r36875.)

svn path=/trunk/; revision=49111
2013-05-01 14:19:10 +00:00
Anders Broman
e9f90d8c42 Make C12.22 work over UDP.
svn path=/trunk/; revision=49104
2013-05-01 08:34:40 +00:00
Evan Huus
0844929247 Follow-up to r49055 as noted on
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7359

The BER integer dissection routines take an hf_id, but that can be -1.
Only fetch the type (to check signedness) if hf_id >= 0, as otherwise this
causes a dissector bug. Default to signed if given no hf_id - I don't know
whether this should be unsigned or not, but the old behaviour was that
everything was signed so it's not a regression at least.

svn path=/trunk/; revision=49101
2013-04-30 23:19:47 +00:00
Jörg Mayer
e4f71b08a0 Diederik de Groot <dkgroot@talon.nl>
via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8616

Update Skinny Dissection Code (CM7.1 + / SPCP Message)

Me:
- Remove some trailing whitespace
- Numerically sort deviceTypes and replace older values with new ones
- Reenable the return FALSE statement in the heuristics - it works for me.

svn path=/trunk/; revision=49099
2013-04-30 21:53:39 +00:00
Michael Mann
78ebc850ba Convert 'Old GFID' and 'New GFID' to FT_GUID type.
From Niels de Vos, Bug 8612 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8612)

svn path=/trunk/; revision=49093
2013-04-30 00:55:18 +00:00
Evan Huus
c0c0b10f96 A few more doxygen fix-ups.
svn path=/trunk/; revision=49092
2013-04-30 00:55:03 +00:00
Evan Huus
c17893650c Silence a false-positive warning from older GCCs:
'acetype4' may be used uninitialized in this function

svn path=/trunk/; revision=49076
2013-04-27 15:00:52 +00:00
Evan Huus
132ee18259 From Cal Turney via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8605
Numerous improvements to NFS ACL/ACE dissection. For a complete list see
comment #11 of the bug.

From me:
- fix an infinite loop caught by fuzzing
- fix an out-of-bounds memory access caught by valgrind
- add missing {0,NULL} terminator to value_string array

svn path=/trunk/; revision=49074
2013-04-27 13:59:46 +00:00
Martin Kaiser
600e5ac301 remove unnecessary if (tree) checks
I hope this prevents bugs like the one fixed in r48917

svn path=/trunk/; revision=49073
2013-04-27 13:06:28 +00:00
Evan Huus
5b8a3df249 From me: only sign-extend BER integers if the field is actually signed
From Guy: override two fields in the GOOSE ASN.1 dissector to be unsigned

Together these fix
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8250


svn path=/trunk/; revision=49055
2013-04-26 19:23:36 +00:00
Martin Mathieson
74e15c70cc Flag as malformed expert info if we see padding subheaders at start and
end of subheader list.

svn path=/trunk/; revision=49035
2013-04-25 21:07:32 +00:00
Martin Kaiser
9264cc1137 From Mathias Guettler
correct value for "ATN Systems Management No Preference"

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8562

svn path=/trunk/; revision=49034
2013-04-25 20:54:56 +00:00
Pascal Quantin
b3da159427 Enhance dissection of feedback
svn path=/trunk/; revision=49032
2013-04-25 15:21:48 +00:00
Evan Huus
df0bbb4ffc Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8611
svn path=/trunk/; revision=49030
2013-04-25 13:57:02 +00:00
Pascal Quantin
35d3fa75be Try to please the OSX buildbots
svn path=/trunk/; revision=49024
2013-04-25 05:24:07 +00:00
Michael Mann
eba34e00e7 Convert a few proto_tree_add_text to proto_tree_add_items. The dissector was originally under the 50% mark that checkAPIs.pl like, but subsequent patches pushed it over the limit, so I thought I'd knock it back down.
svn path=/trunk/; revision=49023
2013-04-24 23:20:24 +00:00
Michael Mann
a18e128b44 convert some proto_tree_add_texts into expert_add_info_format. Didn't quite make checkAPIs.pl happy, but given the nature of the dissector (mostly raw text), I'm not sure it can hit the 50% ratio.
svn path=/trunk/; revision=49022
2013-04-24 23:17:44 +00:00
Michael Mann
2d9a44e0fa Add a few IP filterable fields to make checkAPIs.pl happy. It appears that "enumerated filter fields" are necessary, but that allows them to shirk the check* tools to possibly find unused hfs.
svn path=/trunk/; revision=49021
2013-04-24 23:15:38 +00:00
Pascal Quantin
2dc27b8b85 Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8610 :
Ensure that tap is called after full dissection, even in case of exception

svn path=/trunk/; revision=49019
2013-04-24 21:25:30 +00:00
Evan Huus
e9f9ca4298 Fix format string typo causing
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8607

svn path=/trunk/; revision=49015
2013-04-24 14:05:30 +00:00
Evan Huus
1b13606b6f Now that the test suite is done and most of the common functions are
implemented, start replacing emem with wmem in dissectors.

Also remove emem.h include from a few files that didn't actually need it.

More to come once in hopefully large batches once I figure out the
appropriate regexes.

svn path=/trunk/; revision=49009
2013-04-24 00:01:45 +00:00
Martin Mathieson
4ef8ba6324 Add a quick check for a first printable character to avoid a more expensive
check of the whole first line. This gets called a lot as a heuristic
dissector.

svn path=/trunk/; revision=49006
2013-04-23 22:44:23 +00:00
Martin Mathieson
94d2036ad0 Turn some preferences on by default. Won't affect info column.
svn path=/trunk/; revision=49005
2013-04-23 22:33:53 +00:00
Martin Kaiser
b9ec495a10 oops, missed a linebreak
svn path=/trunk/; revision=49003
2013-04-23 18:53:07 +00:00
Martin Kaiser
4324eeb254 From Mathias Guettler
dissector for ISO 10747 Inter Domain Routing Protocol
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8562

from me:
check for negative return value of tvb_reported_length_remaining()
remove unused hf entries
add modelines
don't initialise variables unless it's necessary
make idrp a new-style dissector


svn path=/trunk/; revision=49002
2013-04-23 18:46:08 +00:00
Martin Kaiser
23856212d5 reformat, add editor modelines
svn path=/trunk/; revision=48998
2013-04-23 17:19:51 +00:00
Anders Broman
319bf24566 Add curr_layer_num which can be used to keep track of multiple occurances of the same protocol in a frame.
svn path=/trunk/; revision=48997
2013-04-23 17:17:56 +00:00
Anders Broman
5d52a9c80f Restore a lost hf def.
svn path=/trunk/; revision=48995
2013-04-23 16:59:07 +00:00
Martin Mathieson
f78d7ed4d7 When calling IP and Ipv6 dissectors, they may reduce the new tvb we pass in.
MPLS needs to similarly shrink its own tvb so its caller can tell that
there were bytes left over (e.g. ethernet trailer).

svn path=/trunk/; revision=48994
2013-04-23 02:55:44 +00:00
Alexis La Goutte
3f5c5aad62 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=48988
2013-04-22 21:26:09 +00:00
Alexis La Goutte
76ef1e0acc Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=48987
2013-04-22 21:25:59 +00:00
Alexis La Goutte
13d677e8be Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=48986
2013-04-22 21:25:50 +00:00
Alexis La Goutte
9d6a6d7bbd Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=48985
2013-04-22 21:25:39 +00:00
Alexis La Goutte
9b4a914c8f Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=48984
2013-04-22 21:25:23 +00:00
Alexis La Goutte
3797ae72c5 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=48982
2013-04-22 21:24:57 +00:00
Anders Broman
fdf00ccc4e Dissect new element in GTPv2 MM Context.
svn path=/trunk/; revision=48977
2013-04-22 19:03:12 +00:00
Alexis La Goutte
679decdac6 Fix warning: 'attr_mask_offset' may be used uninitialized in this function in Mac OS X
svn path=/trunk/; revision=48975
2013-04-22 18:29:34 +00:00
Alexis La Goutte
8a12090715 From Cal Turney via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8601 NFSv4 attribute and READDIR modifications
*  "dissect_nfs4_attribute()" was eliminated because the values dissection
   portion of that routine was identical to the "dissect_nfs_attributes()"
   routine.  The code in "dissect_nfs4_bitmap4()" and
   "dissect_nfs4_attrlist4()" was also similar so those routines
   were also eliminated and their code incorporated in dissect_nfs_fattr4s().
   These measures have reduced the size of 'packet-nfs.c' by almost 400 lines.

*  Attributes were relabeled according to RFC 5661 (NFS4v1).
    o “mand_attr” (REQUIRED attribute) header was changed to "reqd_attr”.
    o “recc_attr” (RECOMMENDED attributes) header was changed to “reco_attr”
      because "recommended" only has one ‘c’. =)

*  In order to be able to list the attribute names horizontally in the
   "Attr mask[x]" header (e.g., "Attr mask[0]: 0x0010111a (TYPE, CHANGE, SIZE,
   FSID, ACL, FILEID)", “FATTR4_” was removed from the attribute names
   (e.g., “FATTR4_TYPE (1)” is now “TYPE (1)”.  Note that RFC 5661 does not
   define them with a “FATTR4” prefix.

*  In GETATTR responses, the “resok4” and “obj_attributes” subtrees were
   eliminated because they are neither actual fields nor serve any practical
   purpose.

*  The READDIR "Directory Listing" subtree was reformatted. "Filename" was
   changed to "Entry" because entries can also be directories.
   "Value Follows", "cookie", and "Attr mask[n]" were moved within each entry.
   If an Entry header is left-clicked all the fields of that entry are
   highlighted in the Hex pane. If it is right-clicked the 'nfs.name'
   field (filter) can be obtained. Finally, the "attr_vals:<DATA>" (text)
   subtree was eliminated because it appears to serve no useful purpose and
   clutters the tree.

svn path=/trunk/; revision=48966
2013-04-22 17:31:15 +00:00
Alexis La Goutte
12517d1309 Fix encoding args (via fix-encodings-args tools) Add Modelines info
svn path=/trunk/; revision=48965
2013-04-22 17:28:16 +00:00
Alexis La Goutte
049399b2fa Add dissection of Aruba Networks Vendor Specific stuff. With ArubaOS 6.2, there is a option to add AP Name in Beacon frame.
svn path=/trunk/; revision=48963
2013-04-22 12:31:04 +00:00
Martin Mathieson
b18ab24f49 Don't report duplicate use of IP address twice when dissecting a
gratuitous ARP request.

svn path=/trunk/; revision=48962
2013-04-22 12:08:42 +00:00
Michael Mann
f3689204a9 Improve AUTH handling (NTLM and elementary PLAIN mechanism)
from Uli Heilmeier, bug 8600 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8600)

svn path=/trunk/; revision=48961
2013-04-22 02:43:52 +00:00
Michael Mann
8591b0b374 General cleanup.
Converted to proto_tree_add_text to proto_tree_add_item/expert_info

Allow columns/tree/(sub)dissectors/expert_info to be called at all of the proper times.  COL_INFO data still seems a bit verbose when errors occur, but I left it alone, just cleaning up the sequence of events.

Removed some structure definitions where the variables that used them were effectively "useless" once proto_tree_add_item was added (although they weren't that useful before that)

svn path=/trunk/; revision=48958
2013-04-21 23:20:10 +00:00
Pascal Quantin
ca72de3ffe Dissect more TLV objects
svn path=/trunk/; revision=48956
2013-04-21 21:12:24 +00:00
Guy Harris
b391fb9c7f In tcp_dissect_pdus(), don't put the PDU length into the protocol tree
unless we're going to hand a packet to the PDU subdissector.

svn path=/trunk/; revision=48955
2013-04-21 19:47:45 +00:00
Guy Harris
cdd75ed113 Update a comment.
svn path=/trunk/; revision=48954
2013-04-21 19:43:36 +00:00
Jörg Mayer
087d1f02f6 Fix new gcc 4.8 warning:
[  6%] Building C object epan/CMakeFiles/epan.dir/dissectors/packet-pw-fr.c.o
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-pw-fr.c: In function ‘dissect_pw_fr’:
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-pw-fr.c:81:4: error: typedef ‘packet_quality_e’ locally defined but not used [-Werror=unused-local-typedefs]
  } packet_quality_e;
    ^


svn path=/trunk/; revision=48948
2013-04-21 08:11:28 +00:00
Jörg Mayer
567570868c Fix new warning in gcc 4.8:
[  5%] Building C object epan/CMakeFiles/epan.dir/dissectors/packet-dcerpc-rs_pgo.c.o
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-dcerpc-rs_pgo.c: In function ‘dissect_rs_pgo_query_t’:
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-dcerpc-rs_pgo.c:631:5: error: typedef ‘rs_pgo_query_t’ locally defined but not used [-Werror=unused-local-typedefs]
   } rs_pgo_query_t;
     ^
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-dcerpc-rs_pgo.c: In function ‘dissect_rs_pgo_query_key_t’:
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-dcerpc-rs_pgo.c:845:5: error: typedef ‘rs_pgo_query_t’ locally defined but not used [-Werror=unused-local-typedefs]
   } rs_pgo_query_t;
     ^
cc1: all warnings being treated as errors
make[2]: *** [epan/CMakeFiles/epan.dir/dissectors/packet-dcerpc-rs_pgo.c.o] Error 1
[  5%] Building C object epan/CMakeFiles/epan.dir/dissectors/packet-pw-fr.c.o
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-pw-fr.c: In function ‘dissect_pw_fr’:
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-pw-fr.c:81:4: error: typedef ‘packet_quality_e’ locally defined but not used [-Werror=unused-local-typedefs]
  } packet_quality_e;
    ^


svn path=/trunk/; revision=48947
2013-04-21 08:09:12 +00:00
Evan Huus
cb387ad2de Initialize branch_taken right at the top of dissect_ber_choice so that the
caller can depend on it being initialized even in peculiar error conditions.

Fixes the other half of https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8599

svn path=/trunk/; revision=48944
2013-04-20 21:20:00 +00:00
Alexis La Goutte
cf0a2c952e Remove expert info for bit AD in DNS query
See Section 5.7 (Setting the AD Bit on Queries) of RFC 6840 (Clarifications and Implementation Notes for DNS Security (DNSSEC))

The semantics of the Authentic Data (AD) bit in the query were
previously undefined.  Section 4.6 of [RFC4035] instructed resolvers
to always clear the AD bit when composing queries.

This document defines setting the AD bit in a query as a signal
indicating that the requester understands and is interested in the
value of the AD bit in the response. This allows a requester to
indicate that it understands the AD bit without also requesting
DNSSEC data via the DO bit.

svn path=/trunk/; revision=48942
2013-04-20 09:49:12 +00:00
Alexis La Goutte
579deaa7b9 Enhance BT-DHT Dissector * Use proto_tree_add_item * Enhance display list (nodes, peers...) * Remove ununeed space * ...
svn path=/trunk/; revision=48941
2013-04-20 09:49:00 +00:00
Guy Harris
0efcd0632b When we're dissecting the beginning of a fragmented packet that we
haven't reassembled, we're probably moving sequentially through the
packet, which means that we'll run past the end of the fragment rather
than past the end of what would have been the reassembled packet had we
reassembled it.

I.e., there's little reason to care whether we're past the end of the
fragment but not past the end of the packet, or whether we're past the
end of the packet; in either case, we're past the end of the fragment,
and if somebody wants to know whether the packet is malformed by
stopping short of certain fields, they should enable reassembly.

So we get rid of the explicit fragment length in tvbuffs and, instead,
have a "this is a fragment" flag; if that flag is set, we throw
FragmentBoundsError rather than ReportedBoundsError if we run past the
end of the reported data.

(This also means we could flag the tvbuff even if we don't know how
large the reassembled packet will be, e.g. when doing IP reassembly.)

Replace tvb_new_subset_length_fragment() with tvb_new_subset_length()
and a new "set the "this is a fragment flag"" routine.

svn path=/trunk/; revision=48940
2013-04-20 02:53:57 +00:00
Evan Huus
c7e09b6ca7 Remove duplicate hf array entry.
svn path=/trunk/; revision=48936
2013-04-19 18:20:19 +00:00
Evan Huus
c2c68fc2b9 s/mfs/nfs/
svn path=/trunk/; revision=48935
2013-04-19 18:19:05 +00:00
Evan Huus
7a173f9b0d From Cal Turney via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8581
Major NFS dissector cleanup. Consistent naming, spacing, line wrapping,
variable initialization, ...

For full details see comment #18 of the bug.

svn path=/trunk/; revision=48934
2013-04-19 18:16:50 +00:00
Jörg Mayer
3978d46572 Slightly improve heuristics to not interpret a zero-filled trailer
as vss data.

svn path=/trunk/; revision=48933
2013-04-19 16:40:06 +00:00
Evan Huus
ca6a24df42 Fix apparent copy-paste error leading to a 'used-uninitialized' warning.
svn path=/trunk/; revision=48929
2013-04-19 16:16:22 +00:00
Anders Broman
29734bf7b3 Fix GTPv2 MM Context (UMTS Key, Quad, and Quint Decoded) incorrectly
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8596

svn path=/trunk/; revision=48928
2013-04-19 16:06:55 +00:00
Anders Broman
b339913fc1 Add dissection of QoS blob.
svn path=/trunk/; revision=48927
2013-04-19 16:06:01 +00:00
Guy Harris
72c5985ec6 Don't use ENC_NA for integer fields longer than 1 byte; use
ENC_BIG_ENDIAN or ENC_LITTLE_ENDIAN.

Treat the AP PS Buffer State subfield of the QoS field the same way we
treat other subfields in the second byte of the QoS field - show it as
the upper 8 bits of the (shown as big-endian) QoS field.  Fix a bitmap
while we're at it.

Show the channel map as an FT_NONE - it's a structure with two bytes.

svn path=/trunk/; revision=48924
2013-04-19 08:59:45 +00:00
Jörg Mayer
171fe6de6c Small cosmetic fixes to CCX decoding
svn path=/trunk/; revision=48923
2013-04-19 05:44:41 +00:00
Guy Harris
ec3d987eb9 Note that Query Server was reserved.
svn path=/trunk/; revision=48922
2013-04-19 01:37:48 +00:00
Guy Harris
eb0bd03939 Add some names for reserved-but-never-implemented operations, with
references for them.

svn path=/trunk/; revision=48921
2013-04-19 01:37:24 +00:00
Michael Mann
faa146f5f0 convert proto_tree_add_text "items" to proto_tree_add_item.
svn path=/trunk/; revision=48920
2013-04-19 00:09:18 +00:00
Evan Huus
ca781caf07 Add overflow check to fix
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8464

Also add modelines.

svn path=/trunk/; revision=48919
2013-04-18 19:45:22 +00:00
Evan Huus
e1f903a2b2 Fix apparent copy-paste-o that was leading to an 'unused variable' warning on
bleeding-edge GCC.

svn path=/trunk/; revision=48918
2013-04-18 19:31:24 +00:00
Guy Harris
c0c15029ed Add to tvbuffs a "fragment length" field; if the tvbuff represents the
first fragment of a non-reassembled packet, and we know the length the
packet would have if it were reassembled, this field holds the length of
the fragment, and the "reported length" field shows the length the
packet would have if it were reassembled, so going past the end of the
fragment but staying within the length of the reassembled packet can be
reported as "dissection would have worked if the packet had been
reassembled" rather than "the packet is too short, so it was probably
malformed".

Add a FragmentBoundsError exception, thrown in the "dissection would
have worked if the packet had been reassembled" case.

Add a new tvb_new_subset_length_fragment() routine to create a new
subset tvb with specified fragment and reported lengths.  Use it in the
CLNP dissector.

Add some more sanity checks in the CLNP dissector.

svn path=/trunk/; revision=48917
2013-04-18 19:22:24 +00:00
Guy Harris
d89d6c8314 Report bogus handshake length values with expert info. This includes
trying to handle reassembly of packets with *differing* handshake length
values a bit better.

Make coding style a little more consistent.

svn path=/trunk/; revision=48916
2013-04-18 19:19:38 +00:00
Guy Harris
c35b6c5f6d Catch retransmission of FINs, so if we're doing "reassemble until end of
data stream", only the first FIN segment is reported with the
reassembled packet.

Show the TCP fragment tree *before* processing the payload, so it's
shown even if processing the payload throws an exception.

svn path=/trunk/; revision=48915
2013-04-18 19:11:05 +00:00
Guy Harris
e300ddb0df Catch retransmission of FINs, so if we're doing "reassemble until end of
data stream", only the first FIN segment is reported with the
reassembled packet.

Show the TCP fragment tree *before* processing the payload, so it's
shown even if processing the payload throws an exception.

svn path=/trunk/; revision=48914
2013-04-18 19:10:23 +00:00
Guy Harris
bb61c171a9 Let proto_tree_add_item() do the length checking for string lengths, so
we thrown an exception if the lengths are too long.

For UCS-2/UTF-16 strings, do an extra length check to avoid overflows,
but throw ReportedBoundsError if the check fails, so we report them the
same way we report other too-large length errors.

Just use proto_tree_add_item() to put UCS-2/UTF-16 strings (assumed to
be UTF-16, not UCS-2; is that correct?) into the protocol tree.

svn path=/trunk/; revision=48913
2013-04-18 19:07:44 +00:00