Commit Graph

18601 Commits

Author SHA1 Message Date
Michael Mann 856668d739 Fix the bitcoin dissector to be able to dissect recent version of the protocol. Bug 8844 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8844)
Changes:
  - All messages now have a checksum (and not only version and verack).
  - In the version message: user agent added as a string preceded by a varint length.
  - Port in an address is in little endian and not big endian.
  - In the version message the receiving and emitting address where inverted.

From Eric Masson

svn path=/trunk/; revision=52609
2013-10-15 00:05:45 +00:00
Anders Broman 21e17b82d2 Reverting as requested by Jakub, eventhoug I don't think this prticular entry is useful as it's duplicated in the tree and almost certanly never vissible.
svn path=/trunk/; revision=52608
2013-10-14 21:50:37 +00:00
Anders Broman ecb5860b78 Adding to col info is probably useless as next dissector will overwrite it.
svn path=/trunk/; revision=52604
2013-10-14 18:18:16 +00:00
Anders Broman 7541b47020 Try to pptimize heuristics slightly.
svn path=/trunk/; revision=52603
2013-10-14 18:16:11 +00:00
Pascal Quantin c94403e9ba Add dissection of NCM/MBIM data traffic based on data interface class protocol code
svn path=/trunk/; revision=52602
2013-10-14 17:55:43 +00:00
Pascal Quantin debe9b6591 As reported by Didier Gautheron on -dev (http://www.wireshark.org/lists/wireshark-dev/201310/msg00159.html) :
Since r49923, TCP flags are no more displayed in info column when tree is NULL

svn path=/trunk/; revision=52597
2013-10-14 08:36:38 +00:00
Michael Mann 7be4187b39 TLS server key exchange misses sig and hash algorithm for TLS 1.2. Bug 9208 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9208).
1. Fix ECDH server key exchange for TLS 1.2
2. Fix RSA server key exchange for TLS 1.2

From Hauke Mehrtens

svn path=/trunk/; revision=52596
2013-10-14 03:07:32 +00:00
Michael Mann 20c163d070 DTLS server key exchange misses sig and hash algorithm for TLS 1.2. Bug 9208 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9208)
1. Fix ECDH server key exchange for DTLS 1.2
2. Fix RSA server key exchange for DTLS 1.2

From Hauke Mehrtens

svn path=/trunk/; revision=52595
2013-10-14 02:34:06 +00:00
Martin Mathieson 5320a5eddd DRX: start to show state prior to and after current PDU.
svn path=/trunk/; revision=52594
2013-10-13 22:00:09 +00:00
Anders Broman a361571bce As requested by Zoltán Lajos Kis, split the openflow dissector int one file per protocol version.
svn path=/trunk/; revision=52593
2013-10-13 21:25:19 +00:00
Bill Meier 2ac134b3c5 whitespace fixes; mostly: remove trailing blanks
svn path=/trunk/; revision=52591
2013-10-13 19:56:52 +00:00
Bill Meier 59277781ff Minor whitespace changes
svn path=/trunk/; revision=52590
2013-10-13 19:14:33 +00:00
Bill Meier 76d4b43a29 Minor whitespace, formatting & etc changes.
svn path=/trunk/; revision=52588
2013-10-13 18:14:59 +00:00
Michael Mann 14d9d10373 openSAFETY: Dissection for second crc as well as plausability check. Bug 9261 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9261).
From Roland Knall

svn path=/trunk/; revision=52582
2013-10-13 12:25:01 +00:00
Pascal Quantin f5decf57f1 Fix dissection of Home Provider CID and fix a typo error
svn path=/trunk/; revision=52579
2013-10-13 08:47:05 +00:00
Chris Maynard 65accd3c18 Don't assume that tvb_length_remaining() or tvb_reported_length_remaining() always return a value >= 0. Part of fix for https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9263
#BACKPORT(1.10,1.8)

svn path=/trunk/; revision=52570
2013-10-12 18:03:34 +00:00
Pascal Quantin 214a2d7f55 From Todd Newton via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9262 :
Fix dissection of PTP Management messages

svn path=/trunk/; revision=52566
2013-10-12 14:05:32 +00:00
Evan Huus 137be14b3d We can't use proto_tree_add_uint_* for FT_TIME fields, use proto_tree_add_time_*
instead. Fixes another one of the issues that shows up in
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9263

svn path=/trunk/; revision=52565
2013-10-12 13:14:30 +00:00
Evan Huus b581aff2c3 Based on help and suggestions from Johannes Berg, fix Radiotap Header decode the
right way.

Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9256 without
reintroducing https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9212

svn path=/trunk/; revision=52564
2013-10-12 12:53:35 +00:00
Pascal Quantin a37a217653 Fix another fuzz failure
svn path=/trunk/; revision=52537
2013-10-11 10:32:05 +00:00
Jeff Morriss 545455db1c Fix compilation when we don't HAVE_LIBGCRYPT
svn path=/trunk/; revision=52527
2013-10-11 00:42:02 +00:00
Evan Huus 2ed259ccbc When TCP options are truncated, we only add the truncated length to the tree,
not the whole length. Fixes an invalid access with the capture from
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9263

svn path=/trunk/; revision=52523
2013-10-10 23:59:57 +00:00
Pascal Quantin dea61da3f6 Fix an infinite loop detected during fuzz testing
svn path=/trunk/; revision=52510
2013-10-10 20:19:27 +00:00
Evan Huus f29544f9df Add a call to tvb_ensure_bytes_exist before we allocate memory based on our
offset+size, prevents attempts to allocate outrageous memory, fixing
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9260

svn path=/trunk/; revision=52503
2013-10-10 17:44:55 +00:00
Evan Huus a50dee3286 From Ed Beroset via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9246
Fix memory leaks and bad memory accesses in c1222 dissector.

From me: use realloc in a handoff function since it may get called multiple
times, and we only need the latest.

svn path=/trunk/; revision=52497
2013-10-10 16:18:49 +00:00
Evan Huus 1370003bee From Marko Hrastovec via
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9239

Add dissection of Asterix category 008.

svn path=/trunk/; revision=52496
2013-10-10 16:07:20 +00:00
Chris Maynard 59c91b3c52 Safer to compare return value of tvb_reported_length_remaining() > 0 than != 0.
Convert tabs to spaces.

svn path=/trunk/; revision=52495
2013-10-10 16:04:41 +00:00
Cal Turney 943356c9f4 "Expert Info (Error/Malformed) trying to fetch an unsigned integer with length 0" errors when an attempt is made to display the File Attributes within the FID subtree of SMB requests and responses. In addition, not all the options and masks were marked with PROTO_ITEM_SET_GENERATED(item) when appropriate to do so;
Fix1: The proto_tree_add_item() was changed to proto_tree_add_uint.
Fix2: "If (len==0) PROTO_ITEM_SET_GENERATED(item);" was added to dissect_nt_create_options_bits(), dissect_nt_share_access_bits(), dissect_smb_access_mask_bits(), dissect_nt_create_bits(), and dissect_file_ext_attr_bits().

svn path=/trunk/; revision=52494
2013-10-10 15:53:45 +00:00
Pascal Quantin a77e3754c9 Slightly change heuristics
svn path=/trunk/; revision=52487
2013-10-10 08:15:55 +00:00
Pascal Quantin ee0fc35c09 Add fragmentation support
svn path=/trunk/; revision=52486
2013-10-10 07:30:57 +00:00
Guy Harris aa57e00210 Fix signed vs. unsigned comparison warnings.
svn path=/trunk/; revision=52483
2013-10-09 22:30:59 +00:00
Martin Mathieson 60d0a97524 Don't update DRX state when preference is turned off
svn path=/trunk/; revision=52482
2013-10-09 22:10:15 +00:00
Anders Broman 61d0ac9dcf Change the default UDP port to 0.
svn path=/trunk/; revision=52480
2013-10-09 21:36:03 +00:00
Anders Broman 51d6f57fd7 Check if first char is printable.
svn path=/trunk/; revision=52478
2013-10-09 20:31:23 +00:00
Anders Broman f678c0fd49 Try to fix
packet-rtpproxy.c:217: warning: comparison between signed and unsigned

svn path=/trunk/; revision=52477
2013-10-09 20:30:18 +00:00
Anders Broman 6ca246c95d Make RTPProxy a newstyle dissector.
svn path=/trunk/; revision=52476
2013-10-09 20:14:12 +00:00
Guy Harris de733af331 0xffffffffffff doesn't necessarily fit in an int, so use
G_GINT64_CONSTANT().  Make it unsigned while we're at it.

Clean up indentation.

svn path=/trunk/; revision=52472
2013-10-09 17:34:49 +00:00
Anders Broman 32bc65aa8c Try to make more efficient heuristick checks.
svn path=/trunk/; revision=52468
2013-10-09 16:20:54 +00:00
Cal Turney 16085e8616 If the capture is frame sliced at or beyond the TCP 20-byte fixed length portion of the TCP header and tcp_analyze_seq is enabled, TCP analysis is not conducted: As much of the options field as possible should be dissected and TCP analysis should be performed.
Patch was tested with snaplens of: 
49 and 52:  (TCP fixed header incomplete) TCP analysis NOT performed.
54:  (Fixed header complete but entire options wfield was sliced off) TCP analysis ran and was OK.
64:  (Fixed header complete but a portion of the options field was missing) Options were dissected to the extent possible.  TCP analysis ran and was OK.
66:  (Fixed header and options complete) TCP analysis ran and was OK.
70:  (Fixed header and options complete plus  4 bytes) TCP analysis ran and was OK.

svn path=/trunk/; revision=52467
2013-10-09 16:13:18 +00:00
Pascal Quantin 6a67588654 From Peter Van Eynde via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9252 :
Fix WCCP fix hash buckets assignment info decoding

svn path=/trunk/; revision=52464
2013-10-09 16:07:24 +00:00
Michael Mann 65a8127832 Improve on r52458 and bugfix a few places where offset wasn't incrementing. Helps fix bug 9248 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9248) and should be good enough to backport.
svn path=/trunk/; revision=52463
2013-10-09 15:19:04 +00:00
Pascal Quantin a56818ad87 Add an option (off by default) to force decoding of unknown USB control data as MBIM
svn path=/trunk/; revision=52461
2013-10-09 09:53:48 +00:00
Evan Huus 74501b2874 Hacky fix for https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9248
Just break out of the loop if offset doesn't go up.

There's almost certainly a better fix - the dissector is weird, and I'm not sure
if all the _length_remaining() checks are important or legacy, and what affect
they have on this issue.

At the very least this will pacify the fuzzbots until somebody has time to
figure it out properly.

svn path=/trunk/; revision=52458
2013-10-08 23:16:53 +00:00
Evan Huus d95d8d7851 Replace a strbuf with a much simpler strdup_printf since it was in fact only
modified in one place. Much reduces memory usage, and makes it clear that
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9248 is an infinite loop not
a memory problem.

svn path=/trunk/; revision=52457
2013-10-08 23:05:29 +00:00
Martin Mathieson 795dbb7032 Separate state struct into separate config and running_state structs. Also, mod startOffset when working out if short cycle onDuration should be started
svn path=/trunk/; revision=52450
2013-10-08 17:13:34 +00:00
Martin Kaiser 8a9e9de7bf mpeg pes private data is 16 bytes long, see iso 13818-1
svn path=/trunk/; revision=52447
2013-10-08 11:23:22 +00:00
Anders Broman c75a0a639b Add information about the IANA assigned UDP port.
svn path=/trunk/; revision=52446
2013-10-08 06:10:26 +00:00
Evan Huus 56d8797c9e Don't try and fetch the repeat value of slot 0, since it makes us underflow the
array we're accessing.

Fixes the uninitialized value errors in
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9243

svn path=/trunk/; revision=52445
2013-10-08 01:09:51 +00:00
Martin Mathieson 7c507318b8 Starting to debug DRX support
svn path=/trunk/; revision=52443
2013-10-07 21:57:07 +00:00
Anders Broman 67e98ca737 From Erik Hugne:
tYN flag in named messages

Named messages are both used for connectionless
messaging and connection setup requests. A SYN
flag is now represented by the previously reserved
bit 18 in word 0 to differentiate named messages from
connection requests.

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

svn path=/trunk/; revision=52440
2013-10-07 18:32:48 +00:00
Anders Broman 88130d4828 From Erik Hugne:
tipc: update discovery protocol header according to spec

Dissection of word 1 in the TIPC ndisc protocol header
is wrong. The field called "Broadcast ack no" should
be "Node Signature" (16 bits wide).
"Requested Links" is also wrong. This should actually be
5 bits reserved, followed by a 8 bit "Minor protocol version"
field

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

svn path=/trunk/; revision=52439
2013-10-07 18:29:57 +00:00
Evan Huus ced66131ab From Michal Labedzki via
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9232

Use wmem_strbuf instead of manual string management in btsdp. Fixes fuzz
failure.

From me: minor tweak to make the patch apply to current trunk.

svn path=/trunk/; revision=52438
2013-10-07 16:34:00 +00:00
Martin Kaiser daba11a478 dissect mpeg registration descriptor
svn path=/trunk/; revision=52437
2013-10-07 15:22:08 +00:00
Pascal Quantin f9da278d6c MBIM data is transferred over CDC-Data interface class. Remove useless code.
svn path=/trunk/; revision=52436
2013-10-07 12:16:30 +00:00
Pascal Quantin 65f5c9a609 Dissect MBIM traffic over USB bulk
svn path=/trunk/; revision=52435
2013-10-07 10:15:04 +00:00
Pascal Quantin f02d2f8705 Update function name in debug info
svn path=/trunk/; revision=52434
2013-10-07 08:14:15 +00:00
Pascal Quantin e5d29e2bd4 Add support for relative OID to PER dissector
svn path=/trunk/; revision=52423
2013-10-06 21:23:39 +00:00
Pascal Quantin 16333c062d From Ed Beroset via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9192 :
Cleanup of relative and absolute OID decoding in packet-ber.c

svn path=/trunk/; revision=52420
2013-10-06 20:59:05 +00:00
Evan Huus 004c706715 Remove packet-vj.c as it does not appear to be under a license we can use.
svn path=/trunk/; revision=52413
2013-10-06 19:04:10 +00:00
Michael Mann 07f25c7f3c WebSphere MQ V7 Bug Fix 8322 TSHM_EBCDIC. Bug 9198 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9198)
From Ed Beroset.

svn path=/trunk/; revision=52404
2013-10-06 15:51:31 +00:00
Michael Mann eda89e591f Improve "eHRPD Indicator" NVSE dissection in 3GPP2 A11 Registration Request. Bug 9206 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9206)
From Masayuki Takemura

svn path=/trunk/; revision=52403
2013-10-06 15:38:32 +00:00
Jörg Mayer 5cd147cf22 The recent update to asn2wrs affected one additional dissector.
svn path=/trunk/; revision=52395
2013-10-06 10:40:46 +00:00
Michael Mann 94f0e1fe21 Fully support relative AP-titles in C12.22. Bug 9196 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9196)
From Ed Beroset

svn path=/trunk/; revision=52394
2013-10-06 02:42:14 +00:00
Michael Mann ee208c8dcc Add support for RELATIVE-OID ASN.1 type. Bug 9192 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9192)
From Ed Beroset.

svn path=/trunk/; revision=52393
2013-10-06 02:31:10 +00:00
Michael Mann 7f36cf3092 Add IEEE802.11ac VHT NDP announcement dissection. Bug 9224 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9224)
From Luca Coelho

From me: make sure return value of tvb_length_remaining is positive.

svn path=/trunk/; revision=52391
2013-10-06 01:53:26 +00:00
Michael Mann 5d7b8db4bb Improved zebra dissector. Bug 9219 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9219)
From Hannes Hofer

From me: some cleanup noticed during review.

svn path=/trunk/; revision=52390
2013-10-06 01:14:46 +00:00
Evan Huus 5c1eafd595 From Peter A. Bigot via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9225
Fix CoAP option decoding. It's perfectly acceptable for the Payload Marker to
appear with no preceding options. Without this check such a situation produces
an invalid diagnostic: end-of-options marker found, but option length isn't 15

svn path=/trunk/; revision=52383
2013-10-05 21:00:25 +00:00
Martin Kaiser 8b4c5a53e0 remove some more if (tree) checks
svn path=/trunk/; revision=52381
2013-10-05 18:57:15 +00:00
Martin Kaiser 21b5802fc8 add editor modelines
svn path=/trunk/; revision=52380
2013-10-05 18:42:54 +00:00
Martin Kaiser 71a4ec8801 remove some unnecessary if (tree) checks
svn path=/trunk/; revision=52379
2013-10-05 18:38:25 +00:00
Martin Kaiser a15760bd63 From Jacob Erlbeck
Fix GPRS-NS protocol dissector for STATUS PDU
    
When a NS-STATUS message contains a PDU, the packet description
refers to the contained PDU and the offset is wrong, thus finding
information elements that are not present.
    
This fixes the implementation by checking, whether the PDU dissector
has been called recursively and by updating the offset correctly.

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

(from me: use gboolean, separate variable declaration and initialization)

svn path=/trunk/; revision=52378
2013-10-05 18:29:17 +00:00
Graham Bloice 1f278f036a Updated email address for Chris Bontje and myself.
svn path=/trunk/; revision=52369
2013-10-04 17:32:04 +00:00
Martin Kaiser 8fcf96c8ff header length includes the adaptation header
svn path=/trunk/; revision=52366
2013-10-04 16:07:26 +00:00
Martin Mathieson e6080d0bfb More DRX changes
svn path=/trunk/; revision=52365
2013-10-04 16:05:18 +00:00
Martin Kaiser 8f46fd5443 TABs -> spaces
svn path=/trunk/; revision=52362
2013-10-04 15:40:24 +00:00
Martin Kaiser a1c82a00a5 dissect the remaining components of the smart card descriptor
(without going into too much detail)

svn path=/trunk/; revision=52355
2013-10-04 12:21:17 +00:00
Pascal Quantin cf3ac5e781 Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9228 :
Ensure that decompressed tvb exists before trying to add it to the tree

svn path=/trunk/; revision=52354
2013-10-04 10:29:57 +00:00
Graham Bloice 2ab20bf491 From Chris Bontje via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9195:
Added object decoding for Device Attributes
Added object decoding for IIN read
Improved decoding of Counter Freeze objects

svn path=/trunk/; revision=52353
2013-10-04 10:12:13 +00:00
Evan Huus 76c769e50b Initialize the SegmentType to the appropriate "Unknown" value so that if the
subdissector bails early we don't use uninitialized memory. Also add modelines.

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

svn path=/trunk/; revision=52349
2013-10-04 02:21:39 +00:00
Guy Harris 58e2773f1d Rename epan/dissectors/packet-s5066.c to
epan/dissectors/packet-s5066sis.c, to clarify that it's not for STANAG
5066 as a whole, but just for the Subnetwork Interface Sublayer. 
There's currently an enhancement to support the Data Transport Sublayer,
which adds a epan/dissectors/packet-s5066dts.c file.

svn path=/trunk/; revision=52348
2013-10-04 01:55:16 +00:00
Evan Huus e0cb13c13c From RobiOneKenobi via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9215
better handling of CAUT Structure in mq dissector

svn path=/trunk/; revision=52347
2013-10-04 00:33:58 +00:00
Evan Huus 1805a79a4d Mark unused parameter.
svn path=/trunk/; revision=52346
2013-10-04 00:30:57 +00:00
Pascal Quantin 3dc5f049cf Add dissection of MBIM (extended) functional descriptor
svn path=/trunk/; revision=52345
2013-10-03 22:09:28 +00:00
Pascal Quantin a2f8b3db01 Try to please Linux and OSX buildbots
svn path=/trunk/; revision=52344
2013-10-03 21:46:20 +00:00
Pascal Quantin 246077ecf1 Fix dissection of MBIM_PIN_LIST_INFO
svn path=/trunk/; revision=52343
2013-10-03 18:20:09 +00:00
Martin Mathieson a0201b0c0b More DRX changes - getting closer (still mostly untested)
svn path=/trunk/; revision=52342
2013-10-03 15:04:39 +00:00
Michael Mann a891f3e70b Make expert items used in "low level" proto functions filterable (and ensure they are called even with a NULL tree). I don't really like the Type Length Mismatch "protocol", but it doesn't seem that much different than the exception "protocols".
svn path=/trunk/; revision=52341
2013-10-03 01:54:02 +00:00
Pascal Quantin 85779fafde Remove C++ comments
svn path=/trunk/; revision=52339
2013-10-02 20:17:29 +00:00
Pascal Quantin 539b24f223 From Audric Schiltknecht via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9218 :
Fix typo in MODCOD list of DVB-S2 dissector

svn path=/trunk/; revision=52338
2013-10-02 19:59:35 +00:00
Pascal Quantin 99422f370c Add dissection of GSM/CDMA SMS in PDU mode
svn path=/trunk/; revision=52337
2013-10-02 19:52:42 +00:00
Pascal Quantin 76e8ff1d8d Replace the 3 dissector tables (with a single entry in each) by a direct call to the GSM SMS dissector
svn path=/trunk/; revision=52336
2013-10-02 18:04:06 +00:00
Alexis La Goutte f7c8ee465e From Peter Wu via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9216 ssl: Support PSK larger than 16 octets
PSK allows up to 2^16-1 octets as key according to RFC 4279 (PSK for
TLS). Therefore remove the restriction of 16 octets. While at it, skip
testing for negative size as this is unnecessary.

Reported at:
http://ask.wireshark.org/questions/25157/can-not-decrypt-ssl-psk-traffic

svn path=/trunk/; revision=52335
2013-10-02 17:56:27 +00:00
Pascal Quantin 5685440a64 Let's please fix-encoding-args.pl
svn path=/trunk/; revision=52334
2013-10-02 17:33:19 +00:00
Martin Mathieson 4b182514c4 More progress on DRX checking
svn path=/trunk/; revision=52333
2013-10-02 16:51:10 +00:00
Pascal Quantin 07fb69f57e Revert files committed by mistake in r52331
svn path=/trunk/; revision=52332
2013-10-02 16:40:06 +00:00
Pascal Quantin 5d183ee5a2 From Peter Lemenkov via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9211 :
Add basic conversation support for rtpproxy dissector

svn path=/trunk/; revision=52331
2013-10-02 16:37:10 +00:00
Pascal Quantin 1d4b8d6a9f From Pavel via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9204 :
Fix parsing of padding in RTP header extension

svn path=/trunk/; revision=52330
2013-10-02 15:33:00 +00:00
Michael Mann 1e14c2dc79 Textual corrections to EtherNet/IP dissector. Bug 9213 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9213)
From Joakim Wiberg

From me: Change blurbs to NULL since they are duplicates of field name.

svn path=/trunk/; revision=52329
2013-10-02 01:43:39 +00:00
Evan Huus e2351b686b Convert an _add_bytes to an _add_item (it used to be an _add_bytes_format prior
to r52272; that treats NULL as get-from-the-tvb, whereas _add_bytes treats NULL
as an error).

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

svn path=/trunk/; revision=52328
2013-10-01 22:57:35 +00:00
Alexis La Goutte 4e6f6a52d9 Enable RC2 support with libgcrypt
The name "RC2" is not used by libgcrypt, instead it uses
"RFC2268_<keysize>". RFC2268_40 and RFC2268_128 are both documented,
though only RFC2268_40 is implemented right now.

As documented in RFC2246 (TLS 1.0), section 6.3.1 Export key generation
example, exportable ciphers (in this case, the
TLS_RSA_EXPORT_WITH_RC2_CBC_40_MD5 cipher) only use 40 bits of the
key_block, but the real key (final_{client,server}_write_key) used for
the actual algorithm (RC2) is still 16 bytes (128 bits). Therefore
RFC2268_128 is the correct name to use.

As libgcrypt 1.5.3 does not support the 128-bit keys, I have submitted a
patch for libgcrypt to support the larger 128-bit rc2 keys has been
submitted to gcrypt-devel@gnupg.org (it sits in their mail queue as I am
not subscribed).

svn path=/trunk/; revision=52320
2013-10-01 19:35:34 +00:00
Martin Mathieson b3c3bd6e93 Call mac_lte_drx_control_element_received and make it static again
svn path=/trunk/; revision=52318
2013-10-01 16:19:42 +00:00
Pascal Quantin df5848517f From Didier Gautheron via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9210 :
Add 'deflate' to SIP Content-Encoding

svn path=/trunk/; revision=52315
2013-10-01 14:49:01 +00:00
Pascal Quantin 8e2c3bad06 Add MPS extensions as found on http://compliance.usb.org/mbim/
svn path=/trunk/; revision=52314
2013-10-01 14:47:03 +00:00
Michael Mann 0334c5b425 Remove check_col from generated DCE/RPC dissectors. Bug 8804 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8804).
I still couldn't figure out how to generate the source, so I made the modifications to the generated dissectors "manually" (search/replace tool in VS) that would match the "PIDL source" included here.

I will be sending the "PIDL source" (non dissector files) to the samba team.

svn path=/trunk/; revision=52313
2013-10-01 14:45:03 +00:00
Evan Huus c6371f0f6d Add cast.
svn path=/trunk/; revision=52312
2013-10-01 13:09:51 +00:00
Evan Huus 3955de8abf Add some additional checks around the radiotap iterator initialization, to fix
the invalid access errors in
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9212

(also add modelines)

svn path=/trunk/; revision=52311
2013-10-01 13:07:25 +00:00
Michael Mann 55371ca87d Remove check_col for all non-generated DCE/RPC dissectors.
svn path=/trunk/; revision=52310
2013-10-01 13:02:12 +00:00
Pascal Quantin 233a6cd8b7 Sort alphabetically the list
svn path=/trunk/; revision=52309
2013-10-01 07:41:30 +00:00
Pascal Quantin 3c10ffd3d5 Plug MBIM dissector to USB one
With this change and the use of USBPcap, it becomes possible to dissect MBIM messages on Windows 8.1

svn path=/trunk/; revision=52308
2013-09-30 20:38:23 +00:00
Pascal Quantin d837d9f82c Fix compilation warnings
svn path=/trunk/; revision=52307
2013-09-30 20:36:38 +00:00
Pascal Quantin 5cb299d39d Add basic request / response tracking
svn path=/trunk/; revision=52306
2013-09-30 20:16:58 +00:00
Michael Mann 1e5ff9125a Add some expert info. The main reason for doing this was there were a bunch of proto_tree_add_bytes_format calls that were passing hf_ variables that weren't of type FT_BYTES, and I assume that should lead to a dissector assert/fuzzbot failure.
For consistency all places that "didn't have enough bytes", got an expert message, regardless of whether the upcoming field itself was a FT_BYTES type.

svn path=/trunk/; revision=52304
2013-09-30 18:02:32 +00:00
Michael Mann c70b1a548b Convert proto_tree_add_int_format calls to proto_tree_add_int_format_value where appropriate.
svn path=/trunk/; revision=52301
2013-09-30 16:10:40 +00:00
Michael Mann 50fd09f99e Convert proto_tree_add_int64_format calls to proto_tree_add_int64_format_value where appropriate.
svn path=/trunk/; revision=52300
2013-09-30 15:59:27 +00:00
Michael Mann ffaeb8a433 Convert proto_tree_add_uint64_format calls to proto_tree_add_uint64_format_value where appropriate.
svn path=/trunk/; revision=52299
2013-09-30 15:52:24 +00:00
Michael Mann 47bca84efb Convert proto_tree_add_double_format calls to proto_tree_add_double_format_value where appropriate.
svn path=/trunk/; revision=52298
2013-09-30 15:42:18 +00:00
Michael Mann cf80442912 Convert some proto_tree_add_string_format calls to something more appropriate.
There seem to be several cases of proto_tree_add_string_format where a "string" value/filter doesn't really make sense because it's always empty, and is just being used as a "filterable subtree header (placeholder)".  They appear to be more for "presense" than "value" and should probably be FT_NONE, although I'd almost argue for removing the filter in favor of  proto_tree_add_text.

svn path=/trunk/; revision=52296
2013-09-30 15:21:09 +00:00
Evan Huus 67da8b61fd From Peter Paluch via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9160
Extend the BPDU dissector in packet-bpdu.c so that it recognizes and displays
the PVID TLV in Cisco's PVST+/RPVST+ BPDUs.

svn path=/trunk/; revision=52294
2013-09-30 11:57:14 +00:00
Martin Mathieson acf8fbb75d Deep copy needed (clang warning flagged by Alexis!)
svn path=/trunk/; revision=52291
2013-09-30 10:15:50 +00:00
Alexis La Goutte 8a95992860 Fix Dead Store (Dead assignement/Dead increment) warning found by Clang
svn path=/trunk/; revision=52287
2013-09-30 09:03:06 +00:00
Alexis La Goutte fe92d7a217 Fix indent (use 4 spaces)
svn path=/trunk/; revision=52286
2013-09-30 09:02:56 +00:00
Alexis La Goutte 2f3a181f67 Fix Dead Store (Dead assignement/Dead increment) warning found by Clang
svn path=/trunk/; revision=52285
2013-09-30 09:02:44 +00:00
Evan Huus d1544e8311 Use array_length macro in two places. Add modelines. Remove trailing whitespace.
svn path=/trunk/; revision=52281
2013-09-30 00:05:43 +00:00
Pascal Quantin c8be3dcee2 Add a MBIM (Mobile Broadband Interface Model) dissector
Still to be done:
- fragmentation support
- plug the MBIM dissector on USB dissector

svn path=/trunk/; revision=52279
2013-09-29 22:50:27 +00:00
Jörg Mayer 5cd75ac8d5 As pointed out in bug 9127, tcpdump dissects Juniper Attributes
quite well - reimplement that in Wireshark.

There is room for improvement in this patch, e.g. use subtrees for
the subattributes.

svn path=/trunk/; revision=52278
2013-09-29 22:40:25 +00:00
Evan Huus f3e28f33f0 Remove unused variable.
svn path=/trunk/; revision=52276
2013-09-29 21:06:44 +00:00
Michael Mann e6f1bd9056 Convert several proto_tree_add_bytes_format calls to proto_tree_add_bytes_format_value.
svn path=/trunk/; revision=52272
2013-09-29 18:19:29 +00:00
Guy Harris 33583f2c27 Removing the assignments to "str" was an error, as its value is returned
from the functions.

svn path=/trunk/; revision=52271
2013-09-29 18:07:33 +00:00
Michael Mann 33ae47f7ad Cleanup some proto_tree_add_ipv4_format calls that shouldn't be.
svn path=/trunk/; revision=52270
2013-09-29 17:18:56 +00:00
Michael Mann e5846873f4 Convert proto_tree_add_time_format to either proto_tree_add_time or proto_tree_add_time_format_value.
Only proto_tree_add_time_format calls remaining are in packet-ncp2222.inc, which may just need some additional filters.

svn path=/trunk/; revision=52269
2013-09-29 16:40:01 +00:00
Michael Mann da2adc77a9 Convert proto_tree_add_ipxnet_format to proto_tree_add_ipxnet_format_value. Now proto_tree_add_ipxnet_format is currently unused.
svn path=/trunk/; revision=52268
2013-09-29 15:49:04 +00:00
Evan Huus dcbc510a4c From Peter Van Eynde via
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9187

Fix some minor length calculation mistakes in the WCCP decoder.

svn path=/trunk/; revision=52260
2013-09-28 23:26:23 +00:00
Anders Broman 8157963907 Start dissect multipart messages.
svn path=/trunk/; revision=52237
2013-09-28 08:58:06 +00:00
Jörg Mayer 1306b0f349 Hack for
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9127

With 6 unknown bytes leading to the two known values for the
last two bytes this cannot yet be properly dissected. Dissect
the one known case. More traces with additional properties
required to get more sense into the first 6 bytes.

svn path=/trunk/; revision=52233
2013-09-27 20:33:29 +00:00
Martin Mathieson 9e93af2470 And also where it is declared. Doesn't VSC++ warn about anything?
svn path=/trunk/; revision=52232
2013-09-27 16:40:50 +00:00
Martin Mathieson e8488209f8 Temporarily make an uncalled function non-static, until it gets called
svn path=/trunk/; revision=52231
2013-09-27 16:38:45 +00:00
Martin Mathieson e4186e832d Remove unused parameter
svn path=/trunk/; revision=52230
2013-09-27 16:29:05 +00:00
Martin Mathieson f655b556f7 Another step towards DRX support in LTE MAC
svn path=/trunk/; revision=52229
2013-09-27 16:18:09 +00:00
Jörg Mayer 703dad7c53 Fix:
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-openflow.c: In function ‘dissect_openflow_v_1_3’:
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-openflow.c:1125:18: error: variable ‘version’ set but not used [-Werror=unused-but-set-variable]
     guint8 type, version;

Remove some trailing whitespace.

svn path=/trunk/; revision=52228
2013-09-27 08:06:44 +00:00
Anders Broman 1662d89793 Fix:
packet-openflow.c:577:31: error: "/*" within comment
packet-openflow.c:655:24: error: "/*" within comment
cc1: warnings being treated as errors
packet-openflow.c: In function 'dissect_openflow_features_reply_v1_3':
packet-openflow.c:671: warning: unused parameter 'pinfo'
packet-openflow.c:671: warning: unused parameter 'length'
packet-openflow.c: In function 'dissect_openflow_multipart_request_v1_3':
packet-openflow.c:809: warning: unused parameter 'pinfo'
packet-openflow.c:809: warning: unused parameter 'length'
packet-openflow.c: At top level:
packet-openflow.c:1033: warning: return type defaults to 'int'
packet-openflow.c:1119: warning: return type defaults to 'int'

svn path=/trunk/; revision=52226
2013-09-26 21:21:54 +00:00
Anders Broman 408ba7bade From beroset@mindspring.com:
c1222 dissector has wrong tag value for BER-encoding of calling_AE_qualifier

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

svn path=/trunk/; revision=52225
2013-09-26 21:15:44 +00:00
Anders Broman a8a0450aa7 Start refactoring to dissect each version separatly.
svn path=/trunk/; revision=52223
2013-09-26 21:05:04 +00:00
Guy Harris 5ee2b14a10 Do all checks against the reported length; a packet that wasn't captured
in its entirety due to a snapshot length being specified is not
malformed.

Instead of checking for the the sum of the offset and the value length
being less than the offset, check whether the TLV length is <= 4 and, if
so, just quit at that point (that also handles the "value is zero
length" case).  That makes sure that valuelength isn't negative; given
that length is < 65536, valuelength < 65532, so that won't cause offset
to overflow, so that means offset won't go backwards.

svn path=/trunk/; revision=52220
2013-09-25 22:53:53 +00:00
Anders Broman 49b08e6694 From Masayuki Takemura:
According to 3GPP R8/R9/R10/R11, the mobility option "3GPP Specific PMIPv6 error
code" is 1 octet length.

However, in the source file packet-mip6.c, the length of the option is set to 4 octets (around line 1744):

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

svn path=/trunk/; revision=52218
2013-09-25 21:11:25 +00:00
Anders Broman 0fdbb8ca25 Dissect bssmap_reroute_cmd and bssmap_reroute_complete and
add new IE dissection to bssmap_cl3_info.

svn path=/trunk/; revision=52217
2013-09-25 21:06:05 +00:00
Anders Broman 19fdb497d4 Add the abillity to let vendor AVP subdisectors add Message type to the info column.
svn path=/trunk/; revision=52216
2013-09-25 20:58:37 +00:00
Michael Mann 376c5792a1 Minor correction to dissection of DLR frames in Ethernet/IP dissector. Bug 9186 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9186)
From Joakim Wiberg

svn path=/trunk/; revision=52215
2013-09-25 19:13:10 +00:00
Evan Huus eb64e871ba Prevent offset overflow in DTP dissector. Fixes
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9184

Also add modelines.

svn path=/trunk/; revision=52214
2013-09-25 16:57:21 +00:00
Evan Huus 95bc2da1e8 Require the NTLMSSP response contents to be long enough before we try to memcpy
it. Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9182

svn path=/trunk/; revision=52213
2013-09-25 16:41:09 +00:00
Jörg Mayer 31f9c281ad Beginning to work on bug 9127 (Juniper proprietary TLV in RSVP):
- Print hexdump of unknown or vendor specific toplevel TLVs
- Try to print the name of type 204 (something still missing)

svn path=/trunk/; revision=52212
2013-09-25 10:11:07 +00:00
Evan Huus 71e0d23701 From Chris Bontje via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9180
A few enhancements to the SEL Fast Message (selfm) Dissector:
- Final piece of dissection for standard Fast Meter messages to display pad byte
  (if present) and single-byte checksum footer.
- Enhancement to digital word display to show 1-byte bit patterns on proto_item
  without requiring user to expand tree.

svn path=/trunk/; revision=52210
2013-09-24 22:42:27 +00:00
Pascal Quantin 019e64f58d Upgrade RRC dissector to v11.7.0
svn path=/trunk/; revision=52202
2013-09-24 17:56:17 +00:00
Jeff Morriss 31267e5a21 From Wido Kelling via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9176 :
Fix decoding of the Auto-Negotiation bits in LLDP (they were off by one).

svn path=/trunk/; revision=52199
2013-09-24 01:12:44 +00:00
Jeff Morriss 221f85fd67 From robionekenobi via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9173 :
This enhancement add the missing structure CAUT, some missing integer
converted to Strings and some field that were unknown to a better explanation. 

Sorted alphabetically the MQCFINT_Parse VALS structure to better find what is
missing in this VALS structure

svn path=/trunk/; revision=52198
2013-09-24 01:04:10 +00:00
Jeff Morriss 6d255f8633 From Peter Wu via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6596 :
Allow reading SSL keylog files with carriage returns.

svn path=/trunk/; revision=52197
2013-09-24 00:31:49 +00:00
Pascal Quantin d74564d6cf Ensure to release an existing DRX configuration when receiving a RRC Connection Setup message
svn path=/trunk/; revision=52193
2013-09-23 21:21:58 +00:00
Pascal Quantin 15ba18d1df Upgrade LPPa dissector to v11.3.0
svn path=/trunk/; revision=52192
2013-09-23 20:20:36 +00:00
Anders Broman db64bbc559 Add dissection of new IEs in UL_UNITDATA
svn path=/trunk/; revision=52191
2013-09-23 19:02:33 +00:00
Martin Mathieson eb7cb19709 Another step towards tracking UE DRX state
svn path=/trunk/; revision=52190
2013-09-23 17:34:18 +00:00
Michael Mann d09b1dbe8f DTP Dissector Enhancements
1) Corrections to the naming and terminology of DTP, its TLVs, types and values

2) Improvements to the dissection of Trunk Status and Trunk Type TLVs whose values and meaning have not been properly decoded so far

3) Improvements to the dissection of the Domain TLV (now using proto_tree_add_item() to display its value; this also allows for filtering operations)

4) Minor cleanups to the code (mainly renaming the macro names to make them more consistent)


From Peter Paluch, Bug 9156 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9156)

svn path=/trunk/; revision=52189
2013-09-23 15:54:29 +00:00
Evan Huus 2a1175c963 Tiny indentation fix.
svn path=/trunk/; revision=52188
2013-09-23 12:09:58 +00:00
Alexis La Goutte bd3d51b5fe Fix Function call argument is an uninitialized value warning found by Clang
svn path=/trunk/; revision=52186
2013-09-23 07:20:53 +00:00
Alexis La Goutte 2b301cefb9 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=52185
2013-09-23 07:20:45 +00:00
Alexis La Goutte 044951858f Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=52184
2013-09-23 07:20:38 +00:00
Alexis La Goutte 5576d25672 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=52183
2013-09-23 07:20:28 +00:00
Pascal Quantin 102c452bcb More emem -> wmem conversion:
- tvb_get_g_stringz()/tvb_get_ephemeral_stringz()/tvb_get_seasonal_stringz() -> tvb_get_stringz()
- tvb_get_g_stringz_enc()/tvb_get_ephemeral_stringz_enc() -> tvb_get_stringz_enc()
- tvb_get_ephemeral_unicode_stringz() -> tvb_get_unicode_stringz()
- tvb_bcd_dig_to_ep_str() -> tvb_bcd_dig_to_wmem_packet_str()
- update docs accordingly

svn path=/trunk/; revision=52180
2013-09-22 20:04:35 +00:00
Michael Tüxen 9175c79ac1 Update SCTP PPIDs and use newly assigned value.
svn path=/trunk/; revision=52175
2013-09-22 17:16:02 +00:00
Pascal Quantin a0c53ffaa1 emem -> wmem conversion:
- ep_tvb_get_bits() -> wmem_packet_tvb_get_bits()
- tvb_g_memdup()/ep_tvb_memdup() -> tvb_memdup()
- tvb_fake_unicode()/tvb_get_ephemeral_faked_unicode() -> tvb_get_faked_unicode()
- tvb_get_g_string()/tvb_get_ephemeral_string()/tvb_get_seasonal_string() -> tvb_get_string()
- tvb_get_g_unicode_string()/tvb_get_ephemeral_unicode_string() -> tvb_get_unicode_string()
- tvb_get_ephemeral_string_enc() -> tvb_get_string_enc()
- update docs accordingly

svn path=/trunk/; revision=52172
2013-09-22 15:50:55 +00:00
Evan Huus 6df83e8078 Add _g_ to the names of functions that allocate glib memory. This is a bit more
explicit, and frees up the "generic" names (like tvb_memdup) for new signatures
that take the appropriate wmem pool.

Majority of the conversion done with sed.

svn path=/trunk/; revision=52164
2013-09-21 17:04:41 +00:00
Evan Huus 8abfcaea79 Lower the default RTMPT max reassembly size. A bigger bandaid for
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6898

svn path=/trunk/; revision=52163
2013-09-21 16:27:55 +00:00
Pascal Quantin 514b38fbdd Make it more obvious that the function is using wmem memory
svn path=/trunk/; revision=52162
2013-09-21 11:08:35 +00:00
Pascal Quantin 857dbb03b6 From Mathias Guettler via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9159 :
ESIS dissector exception due to incorrect length parameter to 'proto_tree_add_uint'

svn path=/trunk/; revision=52160
2013-09-20 19:40:26 +00:00
Michael Mann 61c9a77cd9 Bugfix a few items:
1. Correct Interface Flag enumeration
2. Dissect ARP data without making it look like its an ARP packet by disabling column writing.

svn path=/trunk/; revision=52157
2013-09-20 18:35:10 +00:00
Evan Huus 4212b20048 Don't use g_strv_length on a single string, just use strlen. Also do the
null-check *before* calling strlen (if it's even necessary?)

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

svn path=/trunk/; revision=52156
2013-09-20 14:41:22 +00:00
Anders Broman f3e76b0953 Indicate Sequence of 0 length.
svn path=/trunk/; revision=52155
2013-09-20 14:20:06 +00:00
Anders Broman 95c5f81c83 DCH-ID can be 255
svn path=/trunk/; revision=52154
2013-09-20 14:19:31 +00:00
Anders Broman 067ca19a47 Try to make heuristic slightly faster.
svn path=/trunk/; revision=52153
2013-09-20 14:06:43 +00:00
Alexis La Goutte 9c5ff393aa From Chun-Yeow via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9163 Ability to Decode the Number of Mesh Peerings
Decode the mesh formation information fields related to the number of mesh peerings

Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@cozybit.com>

svn path=/trunk/; revision=52152
2013-09-19 21:16:46 +00:00
Alexis La Goutte 23f9100542 From Peter Wu via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9144 [PATCH] Update TLS Ciphers
Really add support for AEAD ciphers (GCM)

GCM uses counter mode with authentication tags (the latter is currently
not supported). As for the key material, there is no MAC (because the
auth tag is supposed to verify the authenticity).

Finally, correct the GCM cipher suite definitions: IV block size of
4 bytes and GCM instead of CBC mode.

svn path=/trunk/; revision=52150
2013-09-19 20:27:12 +00:00
Alexis La Goutte a87da76132 From Peter Wu via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9144 [PATCH] Update TLS Ciphers
Use IV from record for CBC mode, add padding/IV length check

Add summary of RFCs to make it more obvious why certain parts (IV, MAC,
padding) are used. Merge DTLS and TLS blocks for extracting IV. This
saves an unnecessary memmove() because the input pointer is, well, just
a local variable and can therefore be incremented.

Validate padding and IV lengths before using it. A crash could occur
if the explicit IV is missing (this would make memmove write before its
buffer). The missing padding check had as implication that a misleading
error is returning with a negative length (not exploitable).

Use IV from record for CBC mode, previously it decrypted the first block
incorrectly and then threw this "decrypted" IV away. Now it extracts the
IV and uses this for decrypting the first fragment block. (remember that
CBC xor's the output of the block cipher with the previous ciphertext
(or IV for the first block)).

This is a preparation for GCM which does not have a MAC. The skip_mac
branch is necessary to make the compiler happy in this patch, 'mac'
could otherwise be uninitialised.

svn path=/trunk/; revision=52149
2013-09-19 20:27:05 +00:00
Alexis La Goutte cf7f5dd3ad From Peter Wu via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9144 [PATCH] Update TLS Ciphers
Correct cipher suites list, add TLS_ annotations

Add official TLS_ names as comment and correct:
- 6: RC2 is a block cipher using MD5, not stream+SHA.
- 25,26,27: should be SHA instead of MD5
- 98: DES export is a block cipher using 56-bits[1], not stream.
- 99: DES export should be using 56-bits[1].
- 138: removed commented RC4 cipher because it is not a block cipher

Besides these comments and corrections, there are no further changes.

 [1]: http://tools.ietf.org/html/draft-ietf-tls-56-bit-ciphersuites-00

svn path=/trunk/; revision=52148
2013-09-19 20:26:57 +00:00
Alexis La Goutte f4a4271320 From Peter Wu via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9144 [PATCH] Update TLS Ciphers
Drop export_cipher and dig_len, cleaner digest access

Removed dig_len as this magic number is dependent on dig. The digests
variable is converted from a string to a structure holding the digest
name and length because of its close dependency.

Introduce another struct+function to get rid of the magic number 0x40
(DIG_MD5).

Removed export_cipher bit as this is dependent on eff_bits < bits.
Verified with:
grep ,KEX_ packet-ssl-utils.c | awk -F, '{bits=$6!=$7;ex=$9;
if ((bits && !ex) || (!bits && ex))print $6, $7, $8, "###", $0}'.

Removed space before SIG_RSA for cipher 51 for consistency with others.

svn path=/trunk/; revision=52147
2013-09-19 20:26:50 +00:00
Evan Huus 606c422d5b Zero the key in ntlmssp, because we don't otherwise fill all of it. I suspect
the tvb_memcpy on the next line should be taking more data, but I don't know
enough about the protocol to be sure. This is the least disruptive way to fix
the last valgrind error from
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8941

svn path=/trunk/; revision=52145
2013-09-19 17:39:43 +00:00
Evan Huus 27c4a47c29 Enum was used after all. Restore it and namespace it with GLUSTER_ to avoid the
collision.

svn path=/trunk/; revision=52144
2013-09-19 13:04:37 +00:00
Evan Huus 6c41404ecf From Mark Vitale via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9141
Decode AFS RXAFSCB_GetCapabilities RPC requests with their replies.

svn path=/trunk/; revision=52143
2013-09-19 13:00:57 +00:00
Evan Huus 49648069eb Remove unused enum that started conflicting with /usr/include/dirent.h on my
system.

svn path=/trunk/; revision=52142
2013-09-19 12:50:25 +00:00
Chris Maynard 63c297c455 Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9138 (Malformed NORM packet) having to do with Wireshark assuming that all remaining bytes in the packet are part of the "cc_node_list", rather than stopping dissection according to the hdr_len field in the NORM Common Message Header.
Ref: http://tools.ietf.org/html/rfc3940#section-4.2.3.4

#BACKPORT(1.10, 1.8)

svn path=/trunk/; revision=52139
2013-09-18 14:49:03 +00:00
Pascal Quantin 0fb41d119d From Jason Wzhy via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9157 :
BSSGP: Fix dissection of Trace Type IE in SGSN-INVOKE-TRACE message

svn path=/trunk/; revision=52131
2013-09-17 21:56:35 +00:00
Pascal Quantin 2b44f1449c Fix off by 1 error when dissecting Data Radio Bearer identity number
svn path=/trunk/; revision=52128
2013-09-17 20:06:48 +00:00
Bill Meier 882ca2e76d Remove some unneeded #includes...
svn path=/trunk/; revision=52126
2013-09-17 19:23:11 +00:00
Jörg Mayer ac6214533e Regenerate all files where the .cnf files had whitespace changes.
svn path=/trunk/; revision=52125
2013-09-17 18:55:18 +00:00
Bill Meier 7316284293 Reference 'BACnetVendorIdentifiers' value_string using
an extended value string.

svn path=/trunk/; revision=52124
2013-09-17 18:55:17 +00:00
Bill Meier b7bb743641 Update 'BACnetVendorIdentifiers' value strings from
BACnet vendor ID list dated September 16, 2013.
http://www.bacnet.org/VendorID/BACnet%20Vendor%20IDs.htm


svn path=/trunk/; revision=52119
2013-09-17 16:44:26 +00:00
Jörg Mayer 80d8b029b0 Add svn id tag
svn path=/trunk/; revision=52116
2013-09-17 05:51:37 +00:00
Evan Huus 98761803e9 From Mark Vitale via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9142
Fix decoding of AFS Volume Name.

svn path=/trunk/; revision=52114
2013-09-16 23:24:32 +00:00
Evan Huus 64d9c005f9 From Mark Vitale via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9140
Add reassembly support for AFS.

From me: minor tweaks to conform to other reassemblable protocols; indentation
fixes; modelines

svn path=/trunk/; revision=52113
2013-09-16 23:15:18 +00:00
Jörg Mayer 0017e999f4 Forgot to check in regenerated dissector for dap.
svn path=/trunk/; revision=52111
2013-09-16 21:38:42 +00:00
Pascal Quantin 7d6899b96b Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9155 :
Ensure that codec_str string is always initialized 

svn path=/trunk/; revision=52107
2013-09-16 21:26:03 +00:00
Gerald Combs 6079691af4 Convert each of the address.h macros to inline functions.
Document each function. Note that we now call tvb_get_ptr() before
modifying the address in tvb_set_address() and tvb_set_address_hf(). The
caller doesn't have to worry about doing that any more. Add
add_address_to_hash64().

svn path=/trunk/; revision=52106
2013-09-16 21:15:49 +00:00
Jeff Morriss cc7a3cf06c Remove a bunch more set-but-no-longer-used variables.
svn path=/trunk/; revision=52100
2013-09-16 14:08:43 +00:00
Jeff Morriss bf093ef1f6 Remove set-but-no-longer-used variable.
svn path=/trunk/; revision=52099
2013-09-16 14:05:31 +00:00
Michael Mann 346f803d42 Convert proto_tree_add_uint_format to proto_tree_add_uint_format_value if hf_ field name is the first part of the formatted string. This was all manual inspection and most cases were either:
1. Case sensitivity differences between hf_ field name and formatted string.
2. Unnecessary whitespace between hf_ field name and colon in formatted string

There are cases where the hf_ field name doesn't quite match the proto_tree_add_uint_format, but it's close enough that one of them should be "right", I'm just not sure which is, I just know the string in proto_tree_add_uint_format is the one displayed.

svn path=/trunk/; revision=52098
2013-09-16 10:39:06 +00:00
Alexis La Goutte 9bde18734f From Peter Wu via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9144
Update TLS Ciphers

The attached trivial patch corrects the digest (SHA) length for TLS_DHE_DSS_EXPORT1024_WITH_DES_CBC_SHA

svn path=/trunk/; revision=52096
2013-09-16 07:54:28 +00:00
Evan Huus adb39445ee Apparently some platforms don't like $ in their macro names. Fix it.
svn path=/trunk/; revision=52090
2013-09-15 22:36:47 +00:00
Evan Huus 464bbb1275 Tweak mq macro and checkAPI to avoid false positives - "garbage"
(like a #define) at the beginning of a line before a value_string no longer
matches so a #define that includes the beginning of a value_string doesn't
confuse the script.

svn path=/trunk/; revision=52089
2013-09-15 22:34:36 +00:00
Pascal Quantin da8240ef60 emem -> wmem (except uat or init routines)
svn path=/trunk/; revision=52087
2013-09-15 21:36:37 +00:00
Evan Huus da27bad13b Comment out hf_ var whose use is also commented out at least for now.
svn path=/trunk/; revision=52086
2013-09-15 21:01:45 +00:00
Evan Huus 5bd199d8f5 From RobiOneKenobi via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9072
Substantial enhancements to MQ protocol: all Structure, MSG_REQUEST/ASYNC_RESP,
MQ Multi Segment are decoded until version 7.1/7.5

svn path=/trunk/; revision=52085
2013-09-15 20:56:56 +00:00
Evan Huus 432a064b0e Simplification I noticed while reviewing the wmem conversion: there's no need to
strdup the string built in a strbuf if the scope is the same. Remove the
thoroughly unnecessary temporary variable as well.

svn path=/trunk/; revision=52082
2013-09-15 20:18:56 +00:00
Pascal Quantin 1359f55d9f From Roland Knall via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9145 :
openSAFETY: SSDO Abort codes are handled incorrectly 

svn path=/trunk/; revision=52080
2013-09-15 19:44:19 +00:00
Martin Kaiser 0e57edb890 emem -> wmem for radius
svn path=/trunk/; revision=52077
2013-09-15 18:43:04 +00:00
Martin Kaiser b1272cbca1 emem -> wmem
svn path=/trunk/; revision=52076
2013-09-15 18:27:07 +00:00
Martin Kaiser 04ec29b391 emem -> wmem
svn path=/trunk/; revision=52075
2013-09-15 18:20:25 +00:00
Pascal Quantin 8c7cb82470 No need to use the pinfo pool
svn path=/trunk/; revision=52074
2013-09-15 18:18:08 +00:00
Evan Huus 97659c67f3 From Michal Labedzki via
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9119

Implement the majority of the remaining items from the PN532 spec.

svn path=/trunk/; revision=52073
2013-09-15 18:13:42 +00:00
Martin Kaiser f83c03db62 emem -> wmem
svn path=/trunk/; revision=52072
2013-09-15 18:13:02 +00:00
Pascal Quantin 20a40260d7 A few more dissectors converted to wmem
svn path=/trunk/; revision=52071
2013-09-15 18:03:32 +00:00
Martin Kaiser a54e67abce TABs -> spaces
add editor modelines

svn path=/trunk/; revision=52070
2013-09-15 18:01:01 +00:00
Jörg Mayer 61aced2d64 emem -> wmem
svn path=/trunk/; revision=52069
2013-09-15 17:50:35 +00:00
Martin Kaiser ed321d62c3 emem -> wmem
svn path=/trunk/; revision=52067
2013-09-15 17:12:54 +00:00
Martin Kaiser 62c3c0e1f0 emem -> wmem
svn path=/trunk/; revision=52066
2013-09-15 16:53:11 +00:00
Anders Broman 4269f3065b Fix a typo
svn path=/trunk/; revision=52065
2013-09-15 16:49:06 +00:00
Anders Broman 516f145eaa Use "cheaper" length check.
svn path=/trunk/; revision=52064
2013-09-15 16:47:31 +00:00
Pascal Quantin 7850883904 emem -> wmem
svn path=/trunk/; revision=52063
2013-09-15 15:11:11 +00:00
Jörg Mayer 65ff43fada Finish asn1 emem -> wmem conversion.
Left are snmp and those functions that don't have wmem equivalents.

svn path=/trunk/; revision=52060
2013-09-15 14:37:46 +00:00
Pascal Quantin 9486a3d974 More wmem conversion (leaving uat related functions aside)
svn path=/trunk/; revision=52055
2013-09-15 13:46:13 +00:00
Jörg Mayer 888650324b emem -> wmem
svn path=/trunk/; revision=52054
2013-09-15 13:24:14 +00:00
Pascal Quantin 868b345eea Convert a few more dissectors to wmem API
svn path=/trunk/; revision=52053
2013-09-15 10:29:49 +00:00
Pascal Quantin 07c29e74e9 Convert a few more dissectors to wmem API
svn path=/trunk/; revision=52052
2013-09-15 09:12:01 +00:00
Alexis La Goutte eda53fd1b7 From Peter Wu via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9153 [PATCH trivial] Fix Application Data record parsing for TLS 1.1/1.2 and DTLS 1.0/1.2
Using memcpy on overlapping memory has undefined behaviour (read: on GCC 4.8.1 this destroys the plaintext and invalidates the MAC).

This patch fixes parsing Application Data records for TLS 1.1 and 1.2 (while I am at it, also for DTLS 1.0/1.2) by using memmove instead of memcpy.

svn path=/trunk/; revision=52051
2013-09-15 06:59:32 +00:00
Alexis La Goutte 89244b1ad0 From Peter Wu via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9144 [PATCH] Update TLS Ciphers
Fix decryption of TLS_RSA_WITH_IDEA_CBC_SHA (0x0007)

Caught when iterating through all SSLv3 cipher suites.
TLS_RSA_EXPORT_WITH_RC2_CBC_40_MD5 (0x0006) was another one that
could not be decrypted

svn path=/trunk/; revision=52050
2013-09-15 06:59:19 +00:00
Alexis La Goutte 219d17145f From Peter Wu via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9144 [PATCH] Update TLS Ciphers
Add more TLS cipher suites (SEED, AES-GCM, ECC)

- cipher suites from `RFC 5246 - TLS 1.2`
- cipher suites 150-155 are taken from: RFC 4162 - SEED for TLS
- cipher suites 156-167 are taken from: RFC 5288 - AES-GCM Cipher suites
- cipher suites 49153-49177 are taken from: RFC 4492 - ECC for TLS
- cipher suites 49195-49202 are taken from RFC 5289 - ECC with SHA256/384 and AES GCM

svn path=/trunk/; revision=52049
2013-09-15 06:59:07 +00:00
Alexis La Goutte 9ac2566d0a From Peter Wu via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9144 [PATCH] Update TLS Ciphers
Add support for Camellia ciphers

svn path=/trunk/; revision=52048
2013-09-15 06:58:54 +00:00
Evan Huus be2ebb1934 Remove unused variables, fix typos.
svn path=/trunk/; revision=52046
2013-09-15 02:26:20 +00:00
Michael Mann b38ee917b1 Convert proto_tree_add_uint_format to proto_tree_add_uint_format_value if hf_ field name is the first part of the formatted string. This was done with a perl script on the dissectors directory (packet-*.c), followed by manual inspection of the output. The manual inspection yielded a few cases that really should have been proto_tree_add_uint or proto_tree_add_item, so I updated them accordingly.
The script didn't catch as many as I would have liked, but it's a start.

The most common (ab)use of proto_tree_add_uint_format was for appending strings to CRC/checksum values to note good or bad CRC/checksum.

svn path=/trunk/; revision=52045
2013-09-15 01:48:30 +00:00
Martin Kaiser a17cf67635 emem -> wmem
svn path=/trunk/; revision=52044
2013-09-14 18:30:43 +00:00
Martin Kaiser c522d836a7 use generic editor modelines
svn path=/trunk/; revision=52043
2013-09-14 18:20:07 +00:00
Martin Kaiser 1fccb6a9e1 emem -> wmem
svn path=/trunk/; revision=52042
2013-09-14 18:16:43 +00:00
Martin Kaiser 17e350d4b0 TABs -> spaces
add editor modelines

svn path=/trunk/; revision=52041
2013-09-14 18:08:28 +00:00
Martin Kaiser f1592c5846 emem -> wmem
svn path=/trunk/; revision=52040
2013-09-14 17:56:44 +00:00
Jörg Mayer ec2fc7f0e7 emem -> wmem
svn path=/trunk/; revision=52039
2013-09-14 14:42:35 +00:00
Jörg Mayer f737cea032 emem -> wmem
svn path=/trunk/; revision=52038
2013-09-14 14:33:04 +00:00
Evan Huus 7584f77567 Only access val_other if tlv_len is sufficiently long. Fixes
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9150

Also add modelines.

svn path=/trunk/; revision=52037
2013-09-14 13:30:02 +00:00
Evan Huus ef101edfa1 _lookup_extended takes a pointer to the key-pointer since it has to set the old
key pointer value. _insert just takes the key-pointer, not a pointer to it.
Passing a pointer-to-a-pointer causes the outer pointer to be dereferenced as a
struct (when it in fact points to a pointer to struct) and leads to incorrect
behaviour and uninitialized/out-of-bounds memory accesses.

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

svn path=/trunk/; revision=52036
2013-09-14 13:15:31 +00:00
Evan Huus 4535fd9b13 From Patrick Lundquist via
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7038

Fix a bug in Moldudp64 where offset + MOLDUDP64_MSGLEN_LEN was basically
subtracted twice from remaining packet length.

svn path=/trunk/; revision=52034
2013-09-14 12:35:29 +00:00
Pascal Quantin 5635a1f8bb Revert to emem for uat
svn path=/trunk/; revision=52032
2013-09-14 11:56:45 +00:00
Pascal Quantin 074349264e Convert some dissectors to wmem (leaving uat-like memory with emem for now)
svn path=/trunk/; revision=52031
2013-09-14 10:53:29 +00:00
Pascal Quantin e078770856 From Roland Knall via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9047 :
EPL: Dissection for WriteMultipleParameter, Node Alias, SDO/ASND structuring

svn path=/trunk/; revision=52021
2013-09-13 19:27:53 +00:00
Jörg Mayer 0d1411f854 Add comment where the vendor ids come from
svn path=/trunk/; revision=52014
2013-09-13 17:40:32 +00:00
Pascal Quantin 7623232f25 Convert a few more dissectors to wmem
svn path=/trunk/; revision=52013
2013-09-13 17:25:54 +00:00
Evan Huus 4fb4b2f1a2 Fix a bug (caught by Pascal) where a tree was being explicitly cast to emem_tree
for some reason, and thus the compiler hadn't flagged a type mismatch when the
tree was converted to wmem.

svn path=/trunk/; revision=52010
2013-09-13 17:21:12 +00:00
Evan Huus d6d4c069d9 Replace some emem with wmem.
The windows-common dissector seems to make excessive use of strbufs - I
converted them and simplified a bit, but it could probably be simplified more.

svn path=/trunk/; revision=52008
2013-09-13 17:14:55 +00:00
Evan Huus cabf974059 Remove useless-use-of-emem, add modelines.
svn path=/trunk/; revision=52005
2013-09-13 16:48:07 +00:00
Anders Broman b3ce4ecc14 Try to make the heuristic a bit more efficient.
svn path=/trunk/; revision=52004
2013-09-13 16:33:28 +00:00
Jörg Mayer 35a56ca756 Dario Lombardo via
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9147

More emem -> wmem conversion: Addresses se_malloc() calls.

svn path=/trunk/; revision=52003
2013-09-13 14:14:23 +00:00
Jörg Mayer 23d3e3d665 Dario Lombardo <lomato@gmail.com> via
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9147

Migration from emem to wmem for trivial cases (ep_alloc only).


svn path=/trunk/; revision=52002
2013-09-13 10:13:19 +00:00
Jörg Mayer e3ef5ac9fb emem -> wmem
This was the last dissector in packet-[t-z]*.c that I consider
trivial enough to work on it. The remaining ones a left to people
who intend to think while doing the conversion ;-) 

svn path=/trunk/; revision=51995
2013-09-12 22:53:40 +00:00
Jörg Mayer 1810de72b6 In some cases add include emem.h
In other cases emem -> wmem

svn path=/trunk/; revision=51994
2013-09-12 22:44:08 +00:00
Jörg Mayer 2614ec5ea0 emem -> wmem
svn path=/trunk/; revision=51993
2013-09-12 22:26:43 +00:00
Pascal Quantin 6cedc2c336 Convert a few more dissectors to wmem
svn path=/trunk/; revision=51991
2013-09-12 22:03:31 +00:00
Gerald Combs 07c3d057b8 Add previous/next stream navigation to the TCP stream graph dialog.
Add get_tcp_stream_count() to the TCP dissector and modify
graph_segment_list_get() to allow matching based solely on a stream.

Use text instead of icons for the mouse click behavior buttons. Remove
their PNG resources since we aren't using them any more. Fix setting the
cursor in the graph widget.

svn path=/trunk/; revision=51989
2013-09-12 21:37:47 +00:00
Jörg Mayer 467f128306 emem -> wmem
"tshark -v" tested

svn path=/trunk/; revision=51988
2013-09-12 21:34:58 +00:00
Martin Kaiser fd50ee16e8 dissect OCSP nonce extension
some minor reformatting of the ASN.1 imports

svn path=/trunk/; revision=51987
2013-09-12 21:29:50 +00:00
Martin Kaiser c7f22db4d2 mark unused parameters
svn path=/trunk/; revision=51986
2013-09-12 21:17:21 +00:00
Anders Broman 71b93947de Try to make the STUN heuristic sligtly more efficient.
svn path=/trunk/; revision=51985
2013-09-12 20:53:51 +00:00
Jörg Mayer 884b61f987 Add missing includes
Remove not needed include
emem -> wmem

svn path=/trunk/; revision=51984
2013-09-12 20:38:07 +00:00
Pascal Quantin efe18f199c Convert a few dissectors from emem to wmem API
svn path=/trunk/; revision=51983
2013-09-12 20:37:30 +00:00
Chris Maynard ac7ecb10d2 More dissector table name related changes (a continuation of r51904).
svn path=/trunk/; revision=51982
2013-09-12 20:34:19 +00:00
Jörg Mayer 1965ab5d3e emem -> wmem ("tshark -v" tested)
svn path=/trunk/; revision=51979
2013-09-12 20:25:51 +00:00
Anders Broman 753afe5fa4 Fix UDP port range.
svn path=/trunk/; revision=51977
2013-09-12 18:17:41 +00:00
Evan Huus 1f3adeae8c Revert the TPNCP changes in r51972 until we can figure out a better way to fix
it.

svn path=/trunk/; revision=51976
2013-09-12 17:32:49 +00:00
Evan Huus e5bac80237 Use wmem_new to get the automatic casts to fix the buildbot.
svn path=/trunk/; revision=51973
2013-09-12 16:31:30 +00:00
Jörg Mayer d1ee499bc7 emem -> wmem
svn path=/trunk/; revision=51972
2013-09-12 16:15:54 +00:00
Jörg Mayer 95ae33c8a0 emem -> wmem
svn path=/trunk/; revision=51971
2013-09-12 15:29:55 +00:00
Jörg Mayer fe5238e384 Convert from emem to wmem.
Trivial whitespace fix in packet-tftp.c while at it.

svn path=/trunk/; revision=51970
2013-09-12 15:07:22 +00:00
Evan Huus 58a9f5cb1e More wmem.
svn path=/trunk/; revision=51968
2013-09-12 12:37:27 +00:00
Evan Huus 343772cbcf Convert a few more dissectors to wmem.
svn path=/trunk/; revision=51967
2013-09-12 12:25:17 +00:00
Guy Harris dc7d61195b Need to specify the particular FT_UINTn type.
svn path=/trunk/; revision=51964
2013-09-12 04:10:47 +00:00
Guy Harris 0c11b6f8da Give various files RCS IDs.
svn path=/trunk/; revision=51963
2013-09-12 03:41:22 +00:00
Guy Harris caf09bdf55 Fix the types of some multi-bit bitfields - they're not Booleans. Give
some of them real names (presumably they were copied-and-pasted without
editing).

Thanks and a tip of the Hatlo hat to checkAPI.pl for catching this.

svn path=/trunk/; revision=51962
2013-09-12 03:36:36 +00:00
Chris Maynard 5cd898cd80 Rename frame relay NLPID dissector table from "fr.ietf" to "fr.nlpid".
svn path=/trunk/; revision=51960
2013-09-11 21:55:00 +00:00
Chris Maynard 0b0cb31ac4 Test the return value of tvb_reported_length_remaining() as > 0 rather than != 0. While in these cases, I don't see any actual bugs due to other protections, I don't think it hurts to make this change and should help avoid others from copying/pasting this code elsewhere, where similar protections may not be in place.
svn path=/trunk/; revision=51959
2013-09-11 21:44:13 +00:00
Chris Maynard f2c276ec21 Change the name of the Cisco HDLC dissector table from chdlctype to chdlc.protocol and change the UI name to match. It is by far much more common to name the tables after the field than to pick another name.
svn path=/trunk/; revision=51958
2013-09-11 21:37:58 +00:00
Jeff Morriss 2a276b3498 Mark a couple of parameters as unused.
Fix up indentation in many places while getting rid of tabs.

svn path=/trunk/; revision=51957
2013-09-11 21:06:34 +00:00
Anders Broman d1c73ac71f - Introduce a dissector table for Vendor AVP:s
- Dissect some of Cable Labs AVP:s.

svn path=/trunk/; revision=51956
2013-09-11 20:26:42 +00:00
Chris Maynard bf59c708f8 Instead of prepending "LLC " to the UI table name, just modify the table name.
svn path=/trunk/; revision=51952
2013-09-11 18:06:29 +00:00
Gerald Combs 6986eb4866 Move a lot of includes from follow_stream_dialog.h to
follow_stream_dialog.cpp. Remove the ones that we don't use. Use
QMessageBox in place of simple_dialog.

Move IP6OPT_HOME_ADDRESS and related definitions to packet-ipv6.c. It
looks like we only use it there and it conflicts with WinPcap.

Mark some items unused.

svn path=/trunk/; revision=51951
2013-09-11 17:39:49 +00:00
Pascal Quantin 10193e1ef2 Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9128 :
ZigBee ZCL epoch is January 1, 2000

svn path=/trunk/; revision=51939
2013-09-10 19:37:13 +00:00
Martin Kaiser eee252d372 proto_tree -> proto_item
svn path=/trunk/; revision=51936
2013-09-10 17:55:31 +00:00
Martin Kaiser 4b0a906f78 remove unnecessary if (tree)
no need for tvb_ensure_bytes_exist()
replace += 1;; with ++;

svn path=/trunk/; revision=51929
2013-09-10 15:01:52 +00:00
Anders Broman 9378661d4e From Selvamegala:
GTS starting slot in the Beacon frame is not parsed correctly. As per the Spec, in the 3byte gts descriptor value bit 0- 15  refers Device Short address bit 16-19 – Starting slot bit 20-23 – GTS length.

(I Dug out the onliner from the attached file)

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

svn path=/trunk/; revision=51919
2013-09-10 06:32:41 +00:00
Anders Broman 0bb9585cd6 Freom Dennis:
As I looked into the implementation in epan/dissectors/packet-ieee802a.c, there's a bug in the dissect_ieee802a(). After OUI and PID is parsed, it looks for the customized sub-dissector_table by 
oui_info = (oui_info_t *)g_hash_table_lookup(oui_info_table, GUINT_TO_POINTER(oui))
The problem is that the oui is defined as an array (guint8 oui[3]), whose value contains the 3-byte customized OUI. However, here GUINT_TO_POINTER(oui) converts the local array oui's address to the hash table key, instead of the value. That cause the search in the hash table to fail, because the ieee802_add_oui() use the OUI value as the key.

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

svn path=/trunk/; revision=51918
2013-09-10 06:06:55 +00:00
Anders Broman 60aaa2d842 Change the default preference on how to dissect dunneled data to GTP_TPDU_AS_TPDU.
svn path=/trunk/; revision=51917
2013-09-10 05:47:28 +00:00
Anders Broman b1e6fc8411 From: Michal Labedzki <michal.labedzki@tieto.com>
Subject: [PATCH] NFC: PN532: Implement half of PN532 specification

Implement TG_* and RF_* commands/responses.
Also decode "status" field in all commands.
Update USB CCID to decode "escaped" payload.

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

svn path=/trunk/; revision=51916
2013-09-10 05:43:17 +00:00
Chris Maynard d3f277c015 More dissector table UI name changes (a continuation of r51904).
svn path=/trunk/; revision=51907
2013-09-09 22:30:40 +00:00
Chris Maynard 0c41507bad Change some internal dissector table UI names so it's clear which protocol they pertain to and it's easier to find in the list.
svn path=/trunk/; revision=51904
2013-09-09 21:55:57 +00:00
Alexis La Goutte 2632e16985 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=51885
2013-09-09 19:30:47 +00:00
Evan Huus 771668d630 Register a wmem callback to free the glib hash tables used in SMB2 conversation
structs. Fixes the most egregious of the memory leaks (around 300KB) from
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9120

svn path=/trunk/; revision=51873
2013-09-09 17:51:30 +00:00
Martin Kaiser 955c89812d coverity 996921: add missing break
svn path=/trunk/; revision=51867
2013-09-09 13:07:08 +00:00
Martin Kaiser 9c023c0265 we don't need brackets around SET_ADDRESS() any more
svn path=/trunk/; revision=51866
2013-09-09 12:53:14 +00:00