Commit graph

15275 commits

Author SHA1 Message Date
Pascal Quantin
23c35e6d14 Small fixes:
- put back return NULL in line 947 that got removed in r44384: it is mandatory to avoid accessing non initialized variables. Change rlc_channel_assign a bit to fix what was the root cause of this removal (I guess)
- put back add_channel_info in dissect_rlc_am (removed by error?)
- fix some typo errors
- fix indentation a bit

svn path=/trunk/; revision=44393
2012-08-09 18:26:08 +00:00
Martin Mathieson
664e7ed5ad Put #if HAVE_UMTS_KASUMI around a statics that won't be used unless it
is defined.

svn path=/trunk/; revision=44390
2012-08-09 17:43:55 +00:00
Anders Broman
084e754a2d Mark parameters as unused when we don't have kasumi.
Cast the result of strlen to int.

svn path=/trunk/; revision=44388
2012-08-09 17:13:44 +00:00
Bill Meier
8fde467588 General cleanup:
- remove 'if (tree)' around calls to col_...() fcns and to sub-dissectors;
- call proto_get_id_by_filter_name() in proto_reg-handoff...() (not init routine);
- do some whitespace and formatting changes.

svn path=/trunk/; revision=44385
2012-08-09 16:47:15 +00:00
Anders Broman
efa02ebb7a From Jacob Nordgren and Rishie Sharma:
FP: fixed so hsdsch type 1 also uses communication context id 

Added experimental conditional decryption support.

svn path=/trunk/; revision=44384
2012-08-09 16:42:31 +00:00
Alexis La Goutte
6141467fc0 From David Drysdale via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7551
Add dissection of sub-options in DNS OPT RRs (RFC 2671)

From me
* use/prefer proto_tree_add_item
* Remove dns_optcode_description function (Use value_string...)

svn path=/trunk/; revision=44383
2012-08-09 15:15:24 +00:00
Jeff Morriss
ed497d453f From Stephen Donnelly: a better fix for the fuzz failure reported in
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7563 :

Previous patch solved the reported problem. This patch should cover input
validation for the VC Id and Link Rate fields properly.

Note link_rate==0 (unknown) is supported, as some hardware/firmware may not set
this field, but vc_size==0 is defined invalid.


From me: also initialize m_sdh_line_rate when the input is garbage.

svn path=/trunk/; revision=44377
2012-08-09 13:20:39 +00:00
Anders Broman
508e1c3027 From Jacob Nordgren and Rishie Sharma:
FP: fixed exotic bug where fakes counter was sometimes not reset, RRC: fixed bug where num_chans_per_flow was not properly cleared

svn path=/trunk/; revision=44375
2012-08-09 10:06:01 +00:00
Bill Meier
71818f535d registered init routine action need be done just once in proto_reg_handoff...();
localize handle to proto_reg_handoff();

svn path=/trunk/; revision=44373
2012-08-09 03:10:31 +00:00
Bill Meier
a410b946f2 registered init routine actions need be done just once in proto_reg_handoff...();
localize two handles to proto_reg_handoff();

svn path=/trunk/; revision=44372
2012-08-09 03:02:15 +00:00
Gerald Combs
e9b6fa072e se_tree_lookup32_array() can destroy its key. Make sure we refresh it
before passing it to se_tree_insert32_array(). Fixes bug 7569 reported
by Laurent Butti.

svn path=/trunk/; revision=44366
2012-08-09 00:20:18 +00:00
Jeff Morriss
adcb1775f6 Remove set-but-not-used variable.
svn path=/trunk/; revision=44365
2012-08-08 23:02:49 +00:00
Pascal Quantin
25523bd0bf Various small changes:
- add a missing test on null pointer
- always initialize rrc_nas_sys_info_gsm_map_type with a value from its associated enum
- fix some typo errors
- remove some useless directives from conformance file
- detabify files (ASN.1 generated dissectors are indented with spaces)

svn path=/trunk/; revision=44358
2012-08-08 20:43:48 +00:00
Anders Broman
a1218c94c9 From Jacob Nordgren and Rishie Sharma:
- FP: added header CRC validation, added crc11.c and crc11.h in wsutil/ for EDCH 11 bit CRC, fixed bug in RRC,
And also smaller bugfixes in umts_fp and rrc.

svn path=/trunk/; revision=44349
2012-08-08 17:24:14 +00:00
Alexis La Goutte
daa1818d39 Enhance radiotap dissector
* Reorder code ! Match with Wireshark "Rules" (put in top value_string and static hf_..., in bottom proto_register_radiotap...)

svn path=/trunk/; revision=44336
2012-08-08 12:56:37 +00:00
Alexis La Goutte
88c219908e Enhance radiotap dissector
* Display unused/not defined present flags
* Add expert info if unused/not defined present flags has not "zero"

svn path=/trunk/; revision=44333
2012-08-08 12:32:04 +00:00
Alexis La Goutte
0e9df60466 Add A-MPDU Status Present flag
svn path=/trunk/; revision=44330
2012-08-08 08:30:51 +00:00
Alexis La Goutte
02cd557c95 From Johannes Berg via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7583
Add radiotap A-MPDU status

The new A-MPDU status extension for radiotap was adopted.
http://www.radiotap.org/defined-fields/A-MPDU%20status 

From me 
Use proto_tree_add_item

svn path=/trunk/; revision=44329
2012-08-08 08:16:34 +00:00
Jeff Morriss
ff748a68c3 From Michael Mann on -dev:
The idl2wrs generated dissectors don't follow the convention of using the
filter name registered with the protocol as the start of any display filter
name.  This patch fixes that.

svn path=/trunk/; revision=44325
2012-08-08 03:37:05 +00:00
Jeff Morriss
98a893986d Use expert infos instead of g_warning when something unexpected is found.
svn path=/trunk/; revision=44324
2012-08-08 03:29:51 +00:00
Jeff Morriss
68aea944da Add SVN Id.
svn path=/trunk/; revision=44323
2012-08-08 03:28:02 +00:00
Gerald Combs
cfb93ddbf5 Use ep_strbufs instead of trying to track string offsets manually
and overflowing a buffer. Fixes a crash in bug 7568 discovered by
Laurent Butti.

We do the Dance Of The String Offset Pointers in several other
places. They should probably be changed to ep_strbufs as well.

svn path=/trunk/; revision=44320
2012-08-08 00:40:03 +00:00
Pascal Quantin
9f8b638cfa Remove Uplink messages from the RlcMacDownlink_t structure (as they are part of the RlcMacUplink_t structure that is also used to call csnStreamDissector function)
svn path=/trunk/; revision=44319
2012-08-08 00:11:14 +00:00
Pascal Quantin
670be00aea Various fixes:
- in UM mode, LI size boundary is at 125 bytes (regression introduced in r44292)
- define RLC_LI_UPPERLAYER outside of rlc_li_size enum as it is confusing: when set in preferences it means that the dissector will use the variable, 7 bits or 15 bits LI as indicated in the rlc_info struct (so using one of the rlc_li_size enum value); it is not a new LI value
- add value_string array for direction
- add BCCH channel to UDP framing format
- initialize p2p_dir when using UDP framing format

svn path=/trunk/; revision=44318
2012-08-07 23:25:07 +00:00
Gerald Combs
5bdeb03b83 Fix a large loop found by Stefan Cornelius of Red Hat Security Response
Team (bug 7603).

Display the ACL entry count as decimal instead of hexadecimal.

svn path=/trunk/; revision=44317
2012-08-07 23:06:29 +00:00
Michael Mann
06c393807c Add a sanity check so we don't unnecessarily allocate memory for a Multiple Service Packet message. Bugfix 7570 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7570)
svn path=/trunk/; revision=44312
2012-08-07 20:09:59 +00:00
Gerald Combs
6c32ba5ff1 Make sure we have a corresponding 'u' member to RlcMacDownlink_t for
every call to csnStreamDissector. This should fix bug 7561. Based on
attachment 8888 from Martin Kaiser.

svn path=/trunk/; revision=44307
2012-08-07 18:36:18 +00:00
Jeff Morriss
846b557614 Fix fuzz failure reported in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7563 :
Don't overflow in_fmt->m_vc_index_array: verify that speed is less than or
equal to DECHAN_MAX_AUG_INDEX before using it.

Also add a comment: there are comments here that indicate that this array
should have 5 entries but there are only 4.

svn path=/trunk/; revision=44306
2012-08-07 18:17:29 +00:00
Jeff Morriss
fe7e9760fa Remove a set-but-not-used variable.
svn path=/trunk/; revision=44297
2012-08-07 13:18:01 +00:00
Anders Broman
7623b9bae7 From Rishie Sharma:
compile error fix

svn path=/trunk/; revision=44296
2012-08-07 11:49:06 +00:00
Anders Broman
1c20e4da84 error: variable ‘hsdsch_physical_layer_category’ set but not used
svn path=/trunk/; revision=44295
2012-08-07 10:54:24 +00:00
Anders Broman
b2caee1d75 From Jacob Nordgren and Rishie Sharma:
- umts_fp: fixed so CS content is not malformed content
- RLC: added channel tree so you can filter on rbid etc
- umts_fp,rlc,mac: added some hdsch-common code

svn path=/trunk/; revision=44292
2012-08-07 09:44:16 +00:00
Gerald Combs
68920ce95a Add a maximum span length check to XTP. Fixes a crash discovered by Ben
Schmidt.

Just use proto_tree_add_item() instead of allocating a
big-ol-honkin'-block of guint64s and adding their values to the tree via
proto_tree_add_uint64().

Dissection *should* still work correctly but I can't find any XTP
captures for testing.

svn path=/trunk/; revision=44289
2012-08-06 23:12:13 +00:00
Gerald Combs
5a47e80ffe Check for a too-short BSON document length. Fixes a DoS reported by Ben
Schmidt in bug 7572.

Also check for a too-long BSON document length and too many nested BSON
documents.

svn path=/trunk/; revision=44288
2012-08-06 22:04:09 +00:00
Jaap Keuter
3a14c113bc Fix for bug 7555:
Add an expert item on the AD bit in a DNS query.
Also add some type values.

svn path=/trunk/; revision=44287
2012-08-06 21:45:43 +00:00
Martin Kaiser
7bef3391cf make mpeg_pmt a new-style dissector
register it by name so that other protocols can call it more easily
highlight only the bytes that actually belong to the pmt

(the same changes as already applied to dvb-nit)


svn path=/trunk/; revision=44274
2012-08-05 12:57:29 +00:00
Chris Maynard
3a95aea153 Fix Coverity CID 714130: Dereference after null check.
svn path=/trunk/; revision=44267
2012-08-04 19:06:16 +00:00
Chris Maynard
c7b5c1eabb Add a fall-through comment to appease Coverity and resolve CID 714131: Missing break in switch.
svn path=/trunk/; revision=44264
2012-08-04 18:45:57 +00:00
Martin Kaiser
02bb7124f9 dissect multiple nit sections in the CI+ operator_nit apdu
fetch handles for dvb_nit and data dissectors only once

svn path=/trunk/; revision=44261
2012-08-04 06:25:11 +00:00
Martin Kaiser
94476d0619 make dvb_nit a new-style dissector
register it by name so that other protocols can call it more easily
highlight only the bytes that belong to the nit

svn path=/trunk/; revision=44248
2012-08-03 17:02:24 +00:00
Jeff Morriss
ba3db780d1 Fix fuzz failure reported in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7566 :
Don't try to reassemble a message of length 0 (fixes a later divide-by-zero
error but I don't see why we'd want to do any work for message whose length
we think is 0).

svn path=/trunk/; revision=44247
2012-08-03 16:20:31 +00:00
Jeff Morriss
e9ebe32dfd Fix the $ tag.
svn path=/trunk/; revision=44246
2012-08-03 14:47:32 +00:00
Jeff Morriss
783405a2da Replace blurbs which duplicate the field name with NULL.
Don't use dissector_add(), it's long since deprecated.

svn path=/trunk/; revision=44245
2012-08-03 14:46:12 +00:00
Jeff Morriss
f99e04f2b0 Replace blurbs which duplicate the field name with NULL.
svn path=/trunk/; revision=44244
2012-08-03 14:44:44 +00:00
Jeff Morriss
b63d63529c Fix fuzz failure reported in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7560 :
Don't assume that we stored off the SPRT conversation port.  This was code
comes from r43887/bug 3507 so no need to backport.

svn path=/trunk/; revision=44243
2012-08-03 13:55:07 +00:00
Guy Harris
285e322329 Add in the URL of a protocol specification.
Apparently, it's called "NET/ROM", not "NetROM" or "Net/ROM".

Get rid of check_col() calls and a clear-before-set.

svn path=/trunk/; revision=44238
2012-08-03 03:44:39 +00:00
Guy Harris
ef88a5dc4c Use a value_string for the KISS frame types; associate it with the
command field.

svn path=/trunk/; revision=44237
2012-08-03 02:19:18 +00:00
Guy Harris
c25adfe420 Newer version of the AX.25 spec.
svn path=/trunk/; revision=44236
2012-08-03 02:05:33 +00:00
Guy Harris
307e13d9f2 Move the list of AX.25 protocol IDs to epan/ax25_pids.h. Use it in
packet-ax25.c and packet-arp.c.

Add an "ax25.pid" dissector table for those protocol IDs, use it in the
AX.25 dissector, and have dissectors register in that table with their
protocol IDs.

Get rid of some unneeded includes.

Clean up some "AX25"s in user-visible strings - say "AX.25" instead.

Clean up some indentation.

svn path=/trunk/; revision=44235
2012-08-03 01:58:12 +00:00
Guy Harris
ad3c303f16 Make the protocol ID field an integral field with a value_string table;
use that table for setting the column as well.

dissect_xdlc_control() sets the Info column; don't set it ourselves
(dissect_xdlc_control() will overwrite it if called).

That means we should always call dissect_xdlc_control(), regardless of
whether we're building a protocol tree or not.  Just get rid of the test
for that.

Append the protocol ID, if present, to the column.

svn path=/trunk/; revision=44234
2012-08-03 01:02:27 +00:00
Guy Harris
bf742abb62 Squelch narrowing warnings.
svn path=/trunk/; revision=44233
2012-08-03 00:23:27 +00:00
Guy Harris
931a1077ea From Richard Stearn: add support for BPQ (AX.25 on Ethernet).
svn path=/trunk/; revision=44232
2012-08-02 23:55:42 +00:00
Guy Harris
1b876c36f1 Oops, forgot to add packet-aprs.c to dissector source lists.
Fix warnings in packet-aprs.c.

svn path=/trunk/; revision=44231
2012-08-02 23:53:38 +00:00
Guy Harris
bafaa14059 From Richard Stearn: APRS support.
Fix field names for AX.25 "No layer 3" to match the protocol name.

svn path=/trunk/; revision=44230
2012-08-02 22:40:02 +00:00
Jeff Morriss
b9276f6e96 Replace blurbs which duplicate the field name with NULL.
svn path=/trunk/; revision=44229
2012-08-02 22:04:12 +00:00
Guy Harris
b61be307a1 From Richard Stearn: AX.25 "No layer 3" support.
Also, [at]ify his e-mail address, and list packet-ax25.c before the
packet-ax25-XXX.c dissectors in the file lists.

svn path=/trunk/; revision=44228
2012-08-02 21:53:47 +00:00
Jeff Morriss
eaf8d44a2d Replace blurbs which duplicate the field name with NULL.
svn path=/trunk/; revision=44227
2012-08-02 21:44:22 +00:00
Guy Harris
94eb487df6 From Richard Stearn: Rose (X.25 Packet Layer Protocol atop AX.25's
link-layer protocol) support.

Rename rose_handle to x25_handle, as it's not a handle for a protocol
named "Rose" or "ROSE", it's a handle for X.25's Packet Layer Protocol
(which we just call "x.25").

svn path=/trunk/; revision=44226
2012-08-02 20:41:50 +00:00
Guy Harris
bb78da2687 Clean up indentation.
Get rid of capture_XXX routines that just bump ld->other.

*Do* bump ld->arp for AX.25 ARP packets.

Note that, as there's IP-over-NetROM, capture_netrom() should check for
it.

svn path=/trunk/; revision=44225
2012-08-02 19:42:59 +00:00
Jörg Mayer
33ec97e5c3 Fix:
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-netrom.c: In function ‘dissect_netrom_proto’:
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-netrom.c:211:9: error: variable ‘dst_ssid’ set but not used [-Werror=unused-but-set-variable]
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-netrom.c:210:9: error: variable ‘src_ssid’ set but not used [-Werror=unused-but-set-variable]
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-netrom.c: In function ‘capture_netrom’:
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-netrom.c:684:16: error: variable ‘l_pd’ set but not used [-Werror=unused-but-set-variable]


svn path=/trunk/; revision=44224
2012-08-02 19:35:36 +00:00
Pascal Quantin
a77257f8a0 Fix a few issues:
- restore test on ciphered and deciphered variables removed in r44035: they are used by dct2000 and fp_hint dissectors
- rename channel information lchid to rbid: the corresponding variable is supposed to contain a Radio Bearer Identity and not a Logical Channel Identity and was already used like this in dct2000 and fp_hint dissectors or with UDP framing protocol. Please add a new variable in rlc_info structure if the lchid is really useful
- do not display channel information when the direction is unknown (useful for UDP framing protocol for ex)
- add channel information to UM dissection also
As a rule of thumb, please check that the changes do not break existing dissectors: UMTS RLC dissection can be configured in packet-catapult-dct2000.c, packet-fp_hint.c, through the UDP framing protocol explained in packet-rlc.h and not only in packet-umts_fp.c and packet-umts-mac.c

svn path=/trunk/; revision=44223
2012-08-02 19:34:40 +00:00
Guy Harris
10e2a00573 From Richard Stearn: Flexnet support.
Also, get rid of check_col() calls and unused preferences, and use
col_add_fstr() where appropriate.

Fix up some indentation.

svn path=/trunk/; revision=44222
2012-08-02 19:28:08 +00:00
Jeff Morriss
9b625975db Don't use dissector_add(): it's long since deprecated.
svn path=/trunk/; revision=44220
2012-08-02 19:01:58 +00:00
Jeff Morriss
aa65950896 Remove a created-but-unused subtree (and its ett). It's not obvious to me
whether this tree was going to be used for something or not.

svn path=/trunk/; revision=44218
2012-08-02 18:46:36 +00:00
Guy Harris
25080346fd From Richard Stearn: AX.25 NetROM support.
Also add packet-ax25.c to the CMake list.

svn path=/trunk/; revision=44217
2012-08-02 18:38:40 +00:00
Jörg Mayer
d2e5b83ad5 Stuff missed in the first pass of sorting alphabetically
svn path=/trunk/; revision=44216
2012-08-02 18:36:57 +00:00
Jörg Mayer
a2428935a4 Alphabetically sort entries of DISSECTOR_SRC
svn path=/trunk/; revision=44215
2012-08-02 18:33:36 +00:00
Jörg Mayer
a0855ab987 Fix:
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-ax25.c:164:7: error: variable ‘v2cmdresp’ set but not used [-Werror=unused-but-set-variable]
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-ax25.c: In function ‘proto_register_ax25’:
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-ax25.c:398:12: error: variable ‘ax25_module’ set but not used [-Werror=unused-but-set-variable]


svn path=/trunk/; revision=44214
2012-08-02 18:15:44 +00:00
Jörg Mayer
262c6c664a Fix:
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-arp.c:1239:42: error: variable ‘tha_val’ set but not used [-Werror=unused-but-set-variable]
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-arp.c:1239:22: error: variable ‘sha_val’ set but not used [-Werror=unused-but-set-variable]


svn path=/trunk/; revision=44213
2012-08-02 18:12:59 +00:00
Guy Harris
86bf808c15 From Richard Stearn: IP-over-AX.25 and AX.25 ARP.
svn path=/trunk/; revision=44212
2012-08-02 17:48:18 +00:00
Guy Harris
835111692f From Richard Stearn: support for AX.25, including support for
LINKTYPE_AX25.

svn path=/trunk/; revision=44211
2012-08-02 16:54:43 +00:00
Gerald Combs
e57672dbcc Convert a C++ comment.
svn path=/trunk/; revision=44209
2012-08-02 15:28:59 +00:00
Jeff Morriss
3ab1e68751 From Lori Tribble via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7556 :
The BACnet GetEnrollmentSummary-ACK has an optional parameter Notification
Class.  The Wireshark decoding does not correctly decode when this parameter is
missing.

The fix is to verify the context exists before attempting to decode this
parameter.


From me: replace the few remaining tabs in the file with spaces.

svn path=/trunk/; revision=44207
2012-08-02 14:21:57 +00:00
Jeff Morriss
e71e8e041c Replace blurbs which duplicate the field name with NULL.
Don't use dissector_add(): it's long since deprecated.

svn path=/trunk/; revision=44206
2012-08-02 14:10:43 +00:00
Anders Broman
704e2f524e From Jacob Nordgren and Rishie Sharma:
NBAP: fixed segfault, FP: aesthetic fix, RLC: added channel info to GUI, MAC-is: fixed case with reassembly when a middle segment arrives 

 MAC, RLC, added preferences for LI-size and TSN-size

svn path=/trunk/; revision=44205
2012-08-02 14:03:17 +00:00
Jörg Mayer
5c24a31859 Fix: wireshark/svn/trunk/epan/dissectors/packet-ax25-kiss.c:288:12: error: variable ‘ax25_kiss_module’ set but not used [-Werror=unused-but-set-variable]
svn path=/trunk/; revision=44203
2012-08-02 09:00:15 +00:00
Guy Harris
4fc130af79 From Richard Stearn: AX.25 KISS protocol support.
Part 1 of the fix for bug 7529.

svn path=/trunk/; revision=44202
2012-08-02 06:45:51 +00:00
Pascal Quantin
51fd116d6d Do not register fields twice
svn path=/trunk/; revision=44195
2012-08-01 19:22:59 +00:00
Pascal Quantin
ecf26166fa Follow-up of r44161: GMR-1 RR dissector is not used only on Common Control CHannels but also on Dedicated Control CHannels; update protocol name and filters accordingly
svn path=/trunk/; revision=44193
2012-08-01 19:01:26 +00:00
Pascal Quantin
68194dd0d5 The minimum CCCH size is 3 bytes (L2 pseudo length + protocol discriminator + message type)
svn path=/trunk/; revision=44192
2012-08-01 19:00:13 +00:00
Pascal Quantin
6c8d938dd4 Follow-up of r44162: clean more filters
svn path=/trunk/; revision=44187
2012-08-01 14:07:18 +00:00
Pascal Quantin
2303b8dcfc Follow-up of r44162: RR dissector is not used only on Common Control CHannels but also on Dedicated Control CHannels; update protocol name and filters accordingly
svn path=/trunk/; revision=44185
2012-08-01 13:32:07 +00:00
Alexis La Goutte
90ca174c9e From Vasu D. Dasari via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7550
Decode Provider Bridge GVRP Address

Packets with destination MAC address to be that of, provider bridge GVRP address
 or 01:80:c2:00:00:0d, the packets are decoded as STP packets 
with "Unknown BPDU type".

svn path=/trunk/; revision=44184
2012-08-01 12:22:34 +00:00
Pascal Quantin
025200992d Follow-up of r44162: gsm_a_gm dissector is used for both GPRS Mobility Management and Session Management protocols. Update filter names accordingly.
svn path=/trunk/; revision=44183
2012-08-01 09:44:57 +00:00
Michael Mann
1741731384 remove unnecessary underscores from display filters
svn path=/trunk/; revision=44181
2012-08-01 02:59:17 +00:00
Chris Maynard
fcd9a6d729 Fix the remaining part of Coverity CID 280009 (formerly CID 9): "Logically dead code". The first part seems to have been committed in r17565, although the checkin comment mistakenly indicates, at least as far as I can tell, that it was for CID 6 instead of CID 9, which is what Coverity is telling me it used to be.
svn path=/trunk/; revision=44180
2012-08-01 02:24:29 +00:00
Chris Maynard
c38a247faa Fix Coverity CID 280019 (formerly 19): "Logically dead code" that abroman previously commited a fix for in r17532, but forgot to also commit a change to asn1/snmp/packet-snmp-template.c as well, so the change was apparently inadvertently reverted the next time that packet-snmp.c was regenerated.
svn path=/trunk/; revision=44179
2012-08-01 02:08:29 +00:00
Michael Mann
dd6ca38fff updated more display filters per checkfiltername.pl
svn path=/trunk/; revision=44178
2012-08-01 01:57:18 +00:00
Chris Maynard
07503d2af5 Fix the 2nd part of Coverity CID 280361 (formerly 361): "Logically dead code" that mmartin seems to have unintentionally missed in r36256.
svn path=/trunk/; revision=44177
2012-08-01 01:50:27 +00:00
Pascal Quantin
5f501f83b1 Follow-up of r44162: A-bis interface is not the same thing as A interface; update filters and protocol names accordingly
svn path=/trunk/; revision=44172
2012-07-31 21:12:16 +00:00
Pascal Quantin
8ce8431f4e Update filter names following the changes done in r44162
svn path=/trunk/; revision=44168
2012-07-31 20:44:34 +00:00
Alexis La Goutte
d229d813d0 Update to the last draft-ietf-6lowpan-nd-19 updates
Extended ABRO with longer version number and valid lifetime, 
while maintaining backward compatibility

svn path=/trunk/; revision=44164
2012-07-31 19:42:20 +00:00
Alexis La Goutte
6111c40173 From Florian Fainelli via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7548
HomeplugAV dissector: decode device id

adds proper device id decoding the in the Homeplug AV "Get Device/SW Version 
Confirm (A001)" response.

svn path=/trunk/; revision=44163
2012-07-31 19:09:57 +00:00
Michael Mann
175851fb40 Updated GSM dissectors display filters per checkfiltername.pl
Tried to provide consistency with GSM dissector (protocol) names, even if the filenames now don't match the dissector name.

svn path=/trunk/; revision=44162
2012-07-31 18:54:11 +00:00
Michael Mann
7f3703de34 update GMR-1 protocols display filers
svn path=/trunk/; revision=44161
2012-07-31 17:19:32 +00:00
Alexis La Goutte
e761d193c9 Update ICMPv6 to last IANA Parameters (2012-07-18)
Add draft-irtf-rrg-ilnp-icmpv6-06: ICMP Locator Update message for ILNPv6 ID (Conflit with draft-ietf-6lowpan-nd-18...)

svn path=/trunk/; revision=44160
2012-07-31 17:16:52 +00:00
Chris Maynard
6590deb37f Fix Coverity CID 712526: Missing break in switch. Bug introduced with r44134.
svn path=/trunk/; revision=44157
2012-07-31 14:32:10 +00:00
Anders Broman
796bbde5d3 - Put back not used constants to fill value_strings_ext.
- Don't dissect RRC container, it seems to only cause grief.

svn path=/trunk/; revision=44156
2012-07-31 13:49:39 +00:00
Anders Broman
baabe8b191 Make it possible to configure TIPC over UDP ports.
svn path=/trunk/; revision=44155
2012-07-31 08:57:41 +00:00
Jakub Zawadzki
b503d9d659 Restore includes from r44107 to fix abi check.
Reverted (by mistake?) in r44129

svn path=/trunk/; revision=44154
2012-07-31 08:40:22 +00:00
Anders Broman
fc5a63c97f From Stephen Donnelly:
ERF dissector cleanup

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

svn path=/trunk/; revision=44152
2012-07-31 07:03:25 +00:00
Anders Broman
ad95fa259b From Jacob Nordgren and Rishie Sharma:
NBAP: added preferences to change logical channel id to mac content type mapping.

svn path=/trunk/; revision=44151
2012-07-31 06:56:13 +00:00
Jörg Mayer
51b40ed150 Whitespace fixes:
- trailing whitespace
- mixing TAB and space for indentation

svn path=/trunk/; revision=44150
2012-07-31 05:37:57 +00:00
Chris Maynard
63592a1442 tvb_length_remaining() can return -1 if the offset is out of bounds, so return if it does. In this case, it won't since tvb_offset_exists() is previously called, but it's not a bad idea to do it anyway in case the call to tvb_offset_exists() is ever removed, which we might just want to do? Anyway, this is a simple enough change and fixes Coverity CID 280522: Improper use of negative value.
svn path=/trunk/; revision=44149
2012-07-31 00:35:38 +00:00
Chris Maynard
d3a8e5614c tvb_length_remaining() can return -1 if the offset is out of bounds. Be sure to deal with it if it does. Fixes Coverity CID 280523: Improper use of negative value.
svn path=/trunk/; revision=44146
2012-07-30 23:43:17 +00:00
Stig Bjørlykke
29cdc9a4cf Added Custom.common as dependency for register.c
svn path=/trunk/; revision=44137
2012-07-30 13:54:02 +00:00
Chris Maynard
4efded1f50 Fix Coverity CID 712343: Wrong sizeof argument.
svn path=/trunk/; revision=44136
2012-07-30 13:38:51 +00:00
Anders Broman
5a4c037e87 Add Russian national variant.
svn path=/trunk/; revision=44134
2012-07-30 13:22:38 +00:00
Michael Tüxen
07e87691f6 Fix compilation issues.
svn path=/trunk/; revision=44133
2012-07-30 11:34:56 +00:00
Michael Mann
7dc7977c04 Add Mojito dissector (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2688)
properly alphabetize packet-mim.c in makefiles

svn path=/trunk/; revision=44132
2012-07-30 11:07:29 +00:00
Guy Harris
4ed63300d8 No // comments, please.
svn path=/trunk/; revision=44130
2012-07-30 09:19:07 +00:00
Anders Broman
ee071c887a From Jacob Nordgren and Rishie Sharma:
-MAC-is update

svn path=/trunk/; revision=44129
2012-07-30 08:37:00 +00:00
Bill Meier
2479be037f Use consistent indentation.
svn path=/trunk/; revision=44122
2012-07-29 21:59:25 +00:00
Bill Meier
6326869cca Minor cleanup.
svn path=/trunk/; revision=44119
2012-07-29 21:05:08 +00:00
Bill Meier
3c71068c12 Several right-shifts should be left-shifts.
See https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6881#c12

svn path=/trunk/; revision=44118
2012-07-29 20:39:46 +00:00
Bill Meier
c68e50e0e8 g_assert --> DISSECTOR_ASSERT
svn path=/trunk/; revision=44117
2012-07-29 20:19:38 +00:00
Bill Meier
72f8a17e92 Minor cleanup....
svn path=/trunk/; revision=44116
2012-07-29 20:11:33 +00:00
Pascal Quantin
b94cd13e93 Fix usage of range string and use extended value strings in a few places
svn path=/trunk/; revision=44115
2012-07-29 19:48:22 +00:00
Bill Meier
f0d8bf411e Don't do 'return 0' in mpls-y1722 dissector (so mpls dissector won't try to continue dissecting).
See: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6787
     Comments 14, 16, 17


svn path=/trunk/; revision=44114
2012-07-29 19:47:50 +00:00
Bill Meier
4e1bad0218 Fix a typo :(
svn path=/trunk/; revision=44113
2012-07-29 19:05:18 +00:00
Bill Meier
3933d7591b Cast away a compile warning: "conversion from '__int64' to 'gulong', possible loss of data"
svn path=/trunk/; revision=44112
2012-07-29 19:00:46 +00:00
Bill Meier
7a22f13aa0 Fix crash when "file_name_snooping" & "file_full_name_snooping" prefs enabled.
Crash due to a g_snprintf() incorrect (too large) "max number of bytes" parameter.

Note that g_snprintf() apparently writes to (initializes ?) bytes beyond the
 actual string written.

Fixes Bug #7948: (To be confirmed by the user)
See: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7498


svn path=/trunk/; revision=44111
2012-07-29 18:17:17 +00:00
Alexis La Goutte
2f328434f2 From Tobias Rutz via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7518
Add new dissector for DVB-S2 Baseband Frame and GSE dissection

There is a standard for satellite receiving equipment to output all the received
data over an ethernet interface. This dissector is able to show these packets
according to the ETSI standards.
By default the dissector is disabled, it can be enabled in the protocol
settings dialogue

With the dissector...

svn path=/trunk/; revision=44110
2012-07-29 16:57:54 +00:00
Alexis La Goutte
c132f85385 From Tobias Rutz via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7518
Add new dissector for DVB-S2 Baseband Frame and GSE dissection

There is a standard for satellite receiving equipment to output all the received
data over an ethernet interface. This dissector is able to show these packets
according to the ETSI standards.
By default the dissector is disabled, it can be enabled in the protocol
settings dialogue

svn path=/trunk/; revision=44109
2012-07-29 16:43:03 +00:00
Alexis La Goutte
3e5cc78d46 From Weijun Wang via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7481
Description for Kerberos 5's ENC-TKT-IN-SKEY is wrong

http://tools.ietf.org/html/rfc4120#section-2.9.2

#Backport

svn path=/trunk/; revision=44108
2012-07-29 16:33:34 +00:00
Jakub Zawadzki
e66f10b125 Try to fix ABI check.
svn path=/trunk/; revision=44107
2012-07-29 16:12:17 +00:00
Martin Mathieson
4f65e11ad9 Add a comment that VS Code Analyzer makes a very good point here -
masking the m.s.b. of the command code does mean that several of them
won't ever get detected.  I couldn't readily see from the spec what the
right think to do is.

svn path=/trunk/; revision=44098
2012-07-28 23:51:06 +00:00
Martin Mathieson
e1389f1196 VS code analysis was right - 'x' & 0 *was* always going to return 0...
svn path=/trunk/; revision=44097
2012-07-28 23:30:40 +00:00
Martin Mathieson
dfd2753b06 Use the _vs suffix for value_string variables consistently. There was a
clash between the value_string 'addr_fmt' and where the raw value was
parsed.

svn path=/trunk/; revision=44096
2012-07-28 22:55:27 +00:00
Martin Mathieson
923c530545 Avoid 2 redeclarations of 'len' in inner scopes - they can all use the
outer one.  They had 3 different types, so use guint, which is what
tvb_length() returns.

svn path=/trunk/; revision=44095
2012-07-28 22:46:11 +00:00
Martin Mathieson
84182d3451 Fix VC code analaysis warning about definition of variable in inner
scope.

svn path=/trunk/; revision=44094
2012-07-28 22:35:11 +00:00
Pascal Quantin
f4e322cd56 Fix inverted dissection of Pre-emption Capability and Pre-emption Vulnerability
svn path=/trunk/; revision=44091
2012-07-28 13:40:11 +00:00
Pascal Quantin
857f19c622 Fix a 'dead increment' warning forgotten in r44084
svn path=/trunk/; revision=44090
2012-07-28 13:02:35 +00:00
Evan Huus
3ed453c4d5 Decode SSL streams in XMPP sessions. Fixes:
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3177

The logic is rather conservative for now, but I imagine false negatives are
better than false positives for this sort of thing.

svn path=/trunk/; revision=44088
2012-07-28 03:09:46 +00:00
Pascal Quantin
9f8467f1bf Fix 'dead increment' and 'dereference of null pointer' Clang warnings
svn path=/trunk/; revision=44084
2012-07-27 22:45:46 +00:00
Pascal Quantin
c299201935 Fix a few Clang warnings (dead increment, dead assignment)
svn path=/trunk/; revision=44082
2012-07-27 21:58:26 +00:00
Pascal Quantin
1f6b7eb9c4 Fix dead assignment Clang warning and use consistent indentation
The two remaining Clang warnings (function call argument is an uninitialized value, result of operation is garbage or undefined) seem to be false positives

svn path=/trunk/; revision=44079
2012-07-27 21:09:11 +00:00
Bill Meier
26d1cbb989 Create/use extended value strings to access certain value string arrays;
Remove unneeded initializers;
Use consistent indentation.

svn path=/trunk/; revision=44073
2012-07-27 16:02:06 +00:00
Bill Meier
0a631d2543 Sort value-string array by value to allow extended-value-string binary search;
Add XXX comments as to possible missing entries in a value-string array.

svn path=/trunk/; revision=44071
2012-07-27 14:49:04 +00:00
Pascal Quantin
8c493695ad Fix a few Clang warnings (dead assignment, function call argument is an uninitialized value)
Remove misleading U-RNTI display: it is useless for RLC dissection and the variable is a placeholder used for re-assembly that can contain other identifiers than the real U-RNTI (see packet-umts_fp.c)

svn path=/trunk/; revision=44070
2012-07-27 14:07:20 +00:00
Bill Meier
c4d66ac9a2 Fix some potential integer arithmetic overflow issues;
Create/use extended value strings to access certain value string arrays;
Remove some unneeded initializers;
Reformat hf[] entries.

svn path=/trunk/; revision=44069
2012-07-27 14:04:48 +00:00
Michael Mann
c809fb3703 Address bug 4097 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4097) by improving heuristics by limiting when the heuristics can be evaluated.
TURN and STUN channel data is negotiated by STUN, so its heuristics should only be based on a STUN negotiation, not raw UDP/TCP packets.  "Decode As" is still available for TURN and STUN channel data if the STUN negotiation isn't captured.  

svn path=/trunk/; revision=44068
2012-07-27 13:41:42 +00:00
Jakub Zawadzki
b6bc9e65be Fix memleak of list
Valgrind log:
  = 2,656 (640 direct, 2,016 indirect) bytes in 40 blocks are definitely lost in loss record 41,241 of 41,608
  =    at 0x4C26ABB: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
  =    by 0xC5B0574: g_malloc (in /usr/lib64/libglib-2.0.so.0.2800.8)
  =    by 0xC5C94DF: g_slice_alloc (in /usr/lib64/libglib-2.0.so.0.2800.8)
  =    by 0xC5CA5ED: g_slist_insert_sorted (in /usr/lib64/libglib-2.0.so.0.2800.8)
  =    by 0x697E8B8: dissect_smb_fid (packet-smb.c:3499)

svn path=/trunk/; revision=44067
2012-07-27 08:50:28 +00:00
Jakub Zawadzki
40e809be57 6lowpan: cleanup dynamic configuration construction.
g_string_printf() -> g_strdup_printf()

svn path=/trunk/; revision=44065
2012-07-27 08:47:54 +00:00
Jakub Zawadzki
a920dbe177 Fix memory leak of errors GString
Valgrind log:
  = 308 (264 direct, 44 indirect) bytes in 11 blocks are definitely lost in loss record 39,914 of 41,651
  =    at 0x4C26ABB: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
  =    by 0xC5B0574: g_malloc (in /usr/lib64/libglib-2.0.so.0.2800.8)
  =    by 0xC5C94DF: g_slice_alloc (in /usr/lib64/libglib-2.0.so.0.2800.8)
  =    by 0xC5CEC52: g_string_sized_new (in /usr/lib64/libglib-2.0.so.0.2800.8)
  =    by 0x6A723C5: proto_register_xml (packet-xml.c:1249)

svn path=/trunk/; revision=44064
2012-07-27 08:45:53 +00:00
Jakub Zawadzki
9b03c418cc Fix bugs: #7532, 7534 dissect_ndr_cvstring returns ep-memory, don't free it.
(Likely to occur cause r44053)

svn path=/trunk/; revision=44063
2012-07-27 08:39:05 +00:00
Anders Broman
ad7c4a4bba From Jacob Nordgren and Rishie Sharma:
- Added basic support for tracking flows over reconfigured transport channels + mindor bugfixes 

- small fix in rrc, and some small cleanups

svn path=/trunk/; revision=44062
2012-07-27 08:10:31 +00:00
Anders Broman
910a481c22 Error: the blurb for hf_scsi_bus ("scsi.bus") matches the field name in packet-scsi.c
svn path=/trunk/; revision=44060
2012-07-27 07:13:28 +00:00
Ronnie Sahlberg
9465a06fe7 SCSI/ISCSI: Add decode of LUNs with address mode/bus and lun
Dont implement the complex "extended logical unit addressing format" just
yet. That one is hairy  so wait until we actually see it in the wild first.

Add decoding of LUNs using
single level lun structure and flat addressing space modes



svn path=/trunk/; revision=44058
2012-07-27 05:09:13 +00:00
Jakub Zawadzki
835a1a1b9c Fix memleaks (tvb_get_unicode_string())
svn path=/trunk/; revision=44053
2012-07-26 17:26:05 +00:00
Bill Meier
3b36a23478 Minor cleanup;
- Create/use an extended value string to access a value string array;
- Reformat to match editor modelines (convert tabs to spaces).

svn path=/trunk/; revision=44050
2012-07-26 16:13:09 +00:00
Bill Meier
f5bc152e48 Minor cleanup, including:
- remove uneeded #include;
- remove uneeded col_clear();
- widen several var definitions to prevent potential overflow;
- remove uneeded initializers;
- use consistent indentation;
- whitespace.

svn path=/trunk/; revision=44048
2012-07-26 15:16:04 +00:00
Michael Tüxen
14a808ea3f Get it linking (at least on Mac OS X).
svn path=/trunk/; revision=44040
2012-07-26 12:47:48 +00:00
Michael Tüxen
baa41c7d99 Mark unused parameter as such.
svn path=/trunk/; revision=44039
2012-07-26 12:33:20 +00:00
Anders Broman
46d1c5c5ec If def offending code
packet-rlc.c:2290:7: error: variable ‘i’ set but not used [-Werror=unused-but-set-variable]

svn path=/trunk/; revision=44037
2012-07-26 11:39:11 +00:00
Anders Broman
180f7aa1e0 From Jacob Nordgren and Rishie Sharma:
-  FP and RLC fixed spelling 
- Fixed variable declaration in RRC 
- removed extra ppi in nbap

svn path=/trunk/; revision=44035
2012-07-26 09:42:07 +00:00
Anders Broman
71f4754f19 Extend a value string.
svn path=/trunk/; revision=44028
2012-07-26 08:16:07 +00:00
Anders Broman
aed65b0c7b From Jacob Nordgren and Rishie Sharma:
- RRC now configures logical channels in HS-DSCH hs, and some HSDSCH common support added 
- RLC: modifed memory management, MAC: dch would set the incorrect logical channel for RLC

svn path=/trunk/; revision=44027
2012-07-26 08:15:20 +00:00
Chris Maynard
a3a50ecb03 Fix Coverity CID 709737: Structurally dead code.
svn path=/trunk/; revision=44023
2012-07-26 02:16:37 +00:00
Chris Maynard
787d832da8 tvb_length_remaining() can return -1, so be sure to deal with it if it does.
svn path=/trunk/; revision=44022
2012-07-26 02:00:11 +00:00
Chris Maynard
c6bf60f74b Fix Coverity CID 709738: Unused pointer value.
svn path=/trunk/; revision=44018
2012-07-25 22:48:14 +00:00
Martin Mathieson
1d1cc74e93 Zero a struct to avoid branching based upon uninitialised fields
(previousFrameNum & nextFrameNum).  Spotted by valgrind.

svn path=/trunk/; revision=44017
2012-07-25 22:02:29 +00:00
Jeff Morriss
bcfadcbace zbee.aps was renamed zbee_aps (in r43990).
svn path=/trunk/; revision=44015
2012-07-25 21:27:19 +00:00
Bill Meier
7b869feb85 Minor cleanup:
- col_clear() not needed;
- remove some unneeded initializers;
- reformat hf[] entries.

svn path=/trunk/; revision=44013
2012-07-25 20:46:36 +00:00
Bill Meier
840a58f1f3 Minor cleanup:
- Create/use extended value string to access value string array;
- col_clear() not needed;
- Remove some unneeded initializers.

svn path=/trunk/; revision=44012
2012-07-25 20:42:16 +00:00
Pascal Quantin
70ea1804d8 Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7524 :
8-PSK structure in GSM Classmark 3 is not properly dissected

svn path=/trunk/; revision=44008
2012-07-25 20:04:33 +00:00
Bill Meier
85e9ca3940 Create/use extended value strings as appropriate;
Remove unneeded initializers;
Do whitespace changes.

svn path=/trunk/; revision=44003
2012-07-25 17:38:05 +00:00
Bill Meier
ced3a6c006 Minor cleanup:
- Use col_...() fcns in the proper manner and order;
- proto_reg_handoff...() not needed (does nothing useful);
- remove some unneeded initializers;
- reformat hf[] entries.

svn path=/trunk/; revision=44000
2012-07-25 15:32:29 +00:00
Bill Meier
19000cbaf5 Minor cleanup:
- Remove some unneeded initializers & casts;
- whitespace.

svn path=/trunk/; revision=43997
2012-07-25 15:04:19 +00:00
Bill Meier
7dd0cf41ce Minor cleanup:
- col_clear() not required;
 - use #if 0/#endif to comment out code (iso /* ... */)
 - whitespace.

svn path=/trunk/; revision=43996
2012-07-25 14:39:32 +00:00
Bill Meier
0800534e66 #include <stdio.h> not needed.
svn path=/trunk/; revision=43995
2012-07-25 13:59:41 +00:00
Bill Meier
572b4dae32 Minor cleanup:
- col_clear() not required;
- ...

svn path=/trunk/; revision=43994
2012-07-25 13:57:22 +00:00
Michael Mann
32ef0a1a18 Converted scsi dissectors display filter format from scsi.<protocol> to scsi_<protocol> (matching their registered filter name)
svn path=/trunk/; revision=43993
2012-07-25 13:56:15 +00:00
Bill Meier
2516627cd5 Minor cleanup:
col_clear() not required;
  unneeded initializers;
  whitespace.

svn path=/trunk/; revision=43992
2012-07-25 13:38:31 +00:00
Michael Mann
6d06ea6062 Converted ZigBee dissectors display filter format from zbee.<protocol> to zbee_<protocol>
Also corrected zbee_afp filters as they were incorrectly using zbee.app

svn path=/trunk/; revision=43990
2012-07-25 12:19:21 +00:00
Michael Mann
cdee738998 Fix NULL deference (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7486).
I don't understand the relationship between the "frame data" and the "conversation" (to me they seem independent, but the code seems to put them together), but at least this fixes the crash 

svn path=/trunk/; revision=43985
2012-07-25 11:27:01 +00:00
Anders Broman
91763a17be From Johan Wåhl:
Make DNS ports configurable.

svn path=/trunk/; revision=43984
2012-07-25 09:40:18 +00:00
Anders Broman
e5d974ec6a From Jacob Nordgren and Rishie Sharma:
- FP: added payload CRC validation, RLC: some more error reporting 
- RLC: fixed an exotic LI bug, some cosmetic fixes.

svn path=/trunk/; revision=43983
2012-07-25 09:09:32 +00:00
Bill Meier
b63bb802ab (Trivial) Cleanup
svn path=/trunk/; revision=43975
2012-07-24 23:25:57 +00:00
Bill Meier
25336651ac (Minor) Create handle in proto_reg_handoff...() (where it's used);
Localize static variable to proto_reg_handoff...()

svn path=/trunk/; revision=43974
2012-07-24 22:57:25 +00:00
Bill Meier
3ef558ba7c (Minor) Localize a static variable;
svn path=/trunk/; revision=43973
2012-07-24 22:51:15 +00:00
Bill Meier
08c1114822 Move proto_register..() and proto_reg_handoff...() to the end of the file;
Do other minor cleanup.

svn path=/trunk/; revision=43971
2012-07-24 22:38:13 +00:00
Bill Meier
2be8004129 General cleanup, including:
- prevent potential array overflow: do some bounds checking;
- use emem_strbuf instead of buffers on the stack;
- check_col() not required;
- simplify code in several places;
- remove some boilerplate comments;
- ...

svn path=/trunk/; revision=43970
2012-07-24 21:30:25 +00:00
Martin Kaiser
295b919f5d MPEG PAT: set the tree item's length == number of bytes dissected
don't simply assume the PAT continues until the end of the input tvb

this is similar to packet_dvb_ait.c
I'll change this for other tables shortly

svn path=/trunk/; revision=43969
2012-07-24 21:24:33 +00:00
Bill Meier
05935f075a (Trivial) remove unneeded #include.
svn path=/trunk/; revision=43962
2012-07-24 15:11:18 +00:00
Bill Meier
0c8e6e8f90 Remove unneeded #include;
Create/use extended value strings for several value-string arrays;
Minor whitespace cleanup.

svn path=/trunk/; revision=43960
2012-07-24 14:47:19 +00:00
Bill Meier
ca154aad10 (Trivial) whitespace cleanup
svn path=/trunk/; revision=43959
2012-07-24 14:05:20 +00:00
Anders Broman
eceff8e0d4 H.248 cannot interpret value of Package 0x0022, Parameter 1
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7519

svn path=/trunk/; revision=43958
2012-07-24 13:05:25 +00:00
Anders Broman
7f345354fe From Karsten Keil:
ISDN LAPD X.31 packet traffic can not be decoded

X.31 is X.25 over ISDN. It use SAPI 16 LAPD service.

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

svn path=/trunk/; revision=43956
2012-07-24 11:47:23 +00:00
Anders Broman
6572a8e55c From Peng Di:
GIOP request_id used for sub dissectors is not assigned when decoding GIOP 1.2 Request message.

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

svn path=/trunk/; revision=43955
2012-07-24 10:25:13 +00:00
Anders Broman
3743a01714 From Jacob Nordgren and Rishie Sharma:
- Added support for EDCH type 2 MAC-is reassembly and slightly improved RLC error reporting 

- RLC: fixed bug where complete sequences in the end of a trace where not reassembled

svn path=/trunk/; revision=43954
2012-07-24 07:31:46 +00:00
Ronnie Sahlberg
3b0eb70b23 SCSI: Add support for mode subpages
Add support for modepages that contain subpages and add
a simple subpage for the Control page.


svn path=/trunk/; revision=43952
2012-07-24 02:00:50 +00:00
Jeff Morriss
0a97a9c7d5 Get rid of non-ASCII chars. Also replace tabs with spaces and remove trailing white space.
svn path=/trunk/; revision=43940
2012-07-23 17:04:37 +00:00
Michael Mann
37ebb93a54 Added RFC 5285 functionality per https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5763
svn path=/trunk/; revision=43931
2012-07-23 15:52:17 +00:00
Anders Broman
533c63eed1 Fix reversed values for Bearer Context IE decodes Bearer Level Quality of Service (Bearer QoS) in ARP field the wireshark decoded preemption values.
As reported in
http://ask.wireshark.org/questions/12907/pre-emption-decoding-on-s11-interface

svn path=/trunk/; revision=43930
2012-07-23 15:27:52 +00:00
Martin Mathieson
248b758f82 Now check the first few bytes of the ftp-data segment to see if it looks
printable.  If binary, just show the number of bytes in summary.

Not that there are no items inside it, don't create ftp-data as a tree.
Also, fix the type of the variable 'ti'.

svn path=/trunk/; revision=43929
2012-07-23 14:40:05 +00:00
Jakub Zawadzki
d2ba441c57 Initial version of VNTAG dissector (bug #7496)
svn path=/trunk/; revision=43928
2012-07-23 14:09:41 +00:00
Anders Broman
227327a1e6 Mark pinfo as unused.
svn path=/trunk/; revision=43927
2012-07-23 13:27:16 +00:00
Michael Mann
a6af1fae2a Add dissector tables for RTCP extended feedback messages (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5764)
svn path=/trunk/; revision=43926
2012-07-23 11:58:51 +00:00
Michael Mann
abc177f5d6 added dissect_sprt() to dissect_sprt_heur() so that the heuristics actually do something
svn path=/trunk/; revision=43923
2012-07-23 00:30:00 +00:00
Evan Huus
daa0ff3ac8 The XMPP dissector was allocating a new parser for every packet and never
freeing them. This was slow and leaked gobs of memory.

Be like XML: allocate one parser during set-up and share it around.

svn path=/trunk/; revision=43920
2012-07-22 21:48:51 +00:00
Martin Mathieson
7abae04478 Calling tvb_format_text() for binary data segments (c1400 bytes) was
*very* slow (in a profiled run where FTP data is carried over LTE
MAC/RLC/PDCP/IP/TCP, this one function call was 20% of overall runtime).

Have limited to call to ITEM_LABEL_LENGTH, as that is all that
will be displayed anyway.  As per comment, I'm not convinced that doing
this for binary FTP data segments is worthwhile at all.  It doesn't
even display as hex.

svn path=/trunk/; revision=43908
2012-07-22 04:44:16 +00:00
Michael Mann
0d4eafb04d Update display filter names per Bug 2794. Part 1 of many.
svn path=/trunk/; revision=43907
2012-07-22 03:06:37 +00:00
Bill Meier
45f9935f04 Additional cleanup:
packet-sdp.c:
  Init 'proto_sprt' in proto_reg_handof..()
    [instead of using a registered init fcn];

packet-sprt.c:
  Fix some typos;
  Comment out dissect_sprt_heur() since it doesn't
   really do any dissection. Add an XXX comment re same.

packet-v150fw.c:
  Remove unused 'v150fw_handle' and thus unneeded proto_reg_handoff...();
  Add an XXX comment re the (commented out) dissect_v150fw() not actually
   doing any dissection.


svn path=/trunk/; revision=43902
2012-07-21 22:06:17 +00:00
Evan Huus
700524155d Fix mis-allocated key size as caught by valgrind.
We have to divide the 'length' field to work with guint32 pointer arithmetic,
but we still want to allocate and memcpy the original length value, since
both of those operate in raw bytes, not blocks of sizeof(guint32).

svn path=/trunk/; revision=43901
2012-07-21 19:18:12 +00:00
Evan Huus
4ddb02f6c1 Don't throw an assertion if we can't find certain XMPP attributes when
trying to track sessions for iq, jabber, et al. Just return, so we can
dissect whatever attributes we can find. An expert info already gets added
later on.

The other part of https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7509


svn path=/trunk/; revision=43899
2012-07-21 16:29:48 +00:00
Evan Huus
2949d44b74 The se_tree_* functions are destructive to the key, so save and restore
the key around each call.

Fixes part of https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7509

svn path=/trunk/; revision=43898
2012-07-21 16:10:16 +00:00
Bill Meier
67e3f64476 Move 99.9 % of packet-sprt.h to packet-sprt.c since it's used only there.
Convert "4 space tabs" to spaces (missed in previous commit).

svn path=/trunk/; revision=43897
2012-07-21 15:32:36 +00:00
Evan Huus
f9ec58ae1d Because storing the address of a stack variable seemed like such
a good idea at the time...

Allocate seasonal memory for it instead.

svn path=/trunk/; revision=43896
2012-07-21 15:31:35 +00:00
Martin Mathieson
8a8adffcf5 Initialise ext_len to avoid an "uninitialised use" error.
svn path=/trunk/; revision=43895
2012-07-21 15:21:43 +00:00
Pascal Quantin
f865ece795 Fix a typo in r43893
svn path=/trunk/; revision=43894
2012-07-21 14:45:44 +00:00
Pascal Quantin
1cba729222 Fix a few encoding arguments
svn path=/trunk/; revision=43893
2012-07-21 14:43:36 +00:00
Bill Meier
15e42f38d7 Remove unneeded #includes;
Convert "4 space tabs" to spaces;
Remove trailing whitespace;
Change hf[] entry blurbs from "" to NULL;
Add svn:id and svn:eol-style properties.

svn path=/trunk/; revision=43892
2012-07-21 14:14:07 +00:00
Bill Meier
918f05baa8 Calls to col_...() and expert...() functions should not be under 'if (tree)';
Remove unneeded #include;
Convert "4 space tabs" to spaces;
Remove trailing whitespace;
Add svn:id and svn:eol-style properties.

svn path=/trunk/; revision=43891
2012-07-21 14:03:46 +00:00
Evan Huus
6ed0c79956 Fix GCC build.
I'm not exactly sure what's up with the v150fw dissector, since
it defines a heuristic which is never used and registers in no tables.
The comments indicate it's carried over rtp, but rtp doesn't have a
heuristic table. Revision 43887 caused rtp to load a handle to v150fw,
but I've done a quick scan and I don't think it ever actually does anything
with the handle.

For now, #if 0 out the heuristic function to avoid compile errors. A better
fix is needed though.

svn path=/trunk/; revision=43890
2012-07-21 13:51:51 +00:00
Evan Huus
897d72c358 Fix some of the GCC build errors, more to come.
svn path=/trunk/; revision=43889
2012-07-21 13:25:14 +00:00
Bill Meier
f701cc63e5 Add svn:keywords and svn:eol-style properties
Convert "4 space tabs" to spaces.

svn path=/trunk/; revision=43888
2012-07-21 13:18:36 +00:00
Michael Mann
3d502b97f1 Updated patch from https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3507
svn path=/trunk/; revision=43887
2012-07-21 12:38:59 +00:00
Pascal Quantin
996e2f58b8 Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7508 :
Display snmp.contextName as FT_STRING

svn path=/trunk/; revision=43883
2012-07-21 08:50:32 +00:00
Guy Harris
bddb918dc4 The 32-bit-key tree code assumes that the pointer to the key can be cast
to a pointer to a guint32 and dereferenced.  On some platforms, such as
SPARC, this requires that the pointer be aligned on a 4-byte boundary;
there is no guarantee that the data field of an address structure is
aligned on a 4-byte boundary, so allocate a buffer for a copy of that
data and copy the data into it, and free it when we're done with it.

Should fix bug 7501.

svn path=/trunk/; revision=43880
2012-07-21 01:24:54 +00:00
Bill Meier
7eb2b89e71 From Lori Tribble:
Attached is a patch which corrects the string construction issue in the
PropertyStates method.  This patch also corrects a spelling error for
'utcTimeSyncronization' and adds decode support for this property.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6475#c8

svn path=/trunk/; revision=43868
2012-07-20 19:09:05 +00:00
Pascal Quantin
40e08c936d Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7435 :
Check available length before trying to dissect SSL packet when desegmentation is not activated

svn path=/trunk/; revision=43862
2012-07-20 15:37:45 +00:00
Jaap Keuter
c4702a40ef Add some relevant ethertypes.
svn path=/trunk/; revision=43850
2012-07-20 06:26:35 +00:00
Martin Mathieson
18acb1c43e Pass in proper offset to dfilter_sip_status_line(). Was seeing problems
with 180 + 200 responses in same frame (over TCP).

svn path=/trunk/; revision=43841
2012-07-20 00:40:44 +00:00
Martin Kaiser
bdb0898ff8 dissect the ISO 7816 class byte
svn path=/trunk/; revision=43832
2012-07-19 20:32:24 +00:00
Martin Kaiser
eb6823f6ed use defines for the ISO 7816 instruction byte
svn path=/trunk/; revision=43831
2012-07-19 19:51:36 +00:00
Guy Harris
defeb589d6 Rename ENC_HDRLEN to BSD_ENC_HDRLEN, to see if that squelches the false
positive in the "you're passing an ENC_ value as a field value" check in
checkAPI.pl.

svn path=/trunk/; revision=43816
2012-07-19 03:28:39 +00:00
Michael Mann
757361f4d4 Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5469. Added more comments to make the function of vnc_is_client_or_server_version_message() very clear.
Also includes some minor cleanup of proto_tree_add_text -> proto_tree_add_item

svn path=/trunk/; revision=43814
2012-07-19 00:29:11 +00:00
Guy Harris
7b1be4c91e Fix non-proto_tree_add_item() calls passing an ENC_ value as the last
argument.

svn path=/trunk/; revision=43812
2012-07-18 23:44:15 +00:00
Guy Harris
d91978600c Fix non-proto_tree_add_item() calls passing an ENC_ value as the last
argument.

svn path=/trunk/; revision=43810
2012-07-18 23:37:59 +00:00
Guy Harris
4c3fd1012a Fix non-proto_tree_add_item() calls passing an ENC_ value as the last
argument.

svn path=/trunk/; revision=43808
2012-07-18 23:34:59 +00:00
Guy Harris
bdf148e3ea Fix non-proto_tree_add_item() calls passing an ENC_ value as the last
argument.

svn path=/trunk/; revision=43806
2012-07-18 23:30:45 +00:00
Guy Harris
9667a4703b Fix non-proto_tree_add_item() calls passing an ENC_ value as the last
argument.

svn path=/trunk/; revision=43804
2012-07-18 23:27:37 +00:00
Guy Harris
682d1f34b6 Fix non-proto_tree_add_item() calls passing an ENC_ value as the last
argument.

svn path=/trunk/; revision=43802
2012-07-18 23:18:01 +00:00
Guy Harris
4f84db81e2 Fix a non-proto_tree_add_item() passing an ENC_ value as the last
argument.

svn path=/trunk/; revision=43800
2012-07-18 23:06:20 +00:00
Guy Harris
754711b757 Fix a non-proto_tree_add_item() passing an ENC_ value as the last
argument.

svn path=/trunk/; revision=43798
2012-07-18 22:59:54 +00:00
Guy Harris
87ad190d49 exit() must not be used in dissectors. Use REPORT_DISSECTOR_BUG() and
just return NULL instead.

svn path=/trunk/; revision=43797
2012-07-18 22:57:04 +00:00
Guy Harris
b40db9cf4c Add to the 802.11 pseudo-header a "this is already decrypted" flag, set
it as appropriate in the code to read Network Instruments Observer
captures (rather than tweaking the "protected" flag in the packet data),
and use that flag in the 802.11 dissector.

Fix indentation while we're at it (tabs are not *ipso facto* 4 spaces).

svn path=/trunk/; revision=43795
2012-07-18 22:10:34 +00:00
Guy Harris
1e7c2d7d51 Eliminate some gsize's I missed in the previous checkin.
svn path=/trunk/; revision=43794
2012-07-18 21:43:39 +00:00
Guy Harris
d0df3d4c5a Nobody uses the return value of dissect_sender_array(), so don't have it
return anything.

Don't use gsize for offsets in packets; the type used in Wireshark is
int.

svn path=/trunk/; revision=43793
2012-07-18 21:22:10 +00:00
Guy Harris
b695d863aa Set svn:keywords and svn:eol-style, and fix the EOL style (I'm on UN*X,
so with svn:eol-style native, there should be no CRs).

svn path=/trunk/; revision=43792
2012-07-18 20:56:24 +00:00
Michael Mann
b16b7e951e Adds CliqueRM protocol (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2076)
svn path=/trunk/; revision=43791
2012-07-18 20:11:32 +00:00
Michael Mann
e298722f5b svn path=/trunk/; revision=43789 2012-07-18 19:40:56 +00:00
Guy Harris
bbe3a78d3a That comment might have confused the API checker into thinking we were
calling abort(); try changing it.

svn path=/trunk/; revision=43788
2012-07-18 18:50:29 +00:00
Balint Reczey
1f37a8cf14 Fix crash in PPP dissector
Make sure that there is enough space allocated for PPP encapsulated CRTP
packet's header.
The bug can be triggered on an x86_64 system using the cpature file attached to
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=680056

svn path=/trunk/; revision=43784
2012-07-18 15:14:45 +00:00
Pascal Quantin
2350d1aecf Put back r43768 that got removed by error in r43781
svn path=/trunk/; revision=43783
2012-07-18 08:37:46 +00:00
Anders Broman
0649041b1c Merge the rest of Jacob Nordgren and Rishie Sharmas work on
Updateing conversation handling to dissect FP/MAC/RLC
(Work in progress).

svn path=/trunk/; revision=43782
2012-07-18 07:47:05 +00:00
Anders Broman
fccbea6702 Merge the rest of Jacob Nordgren and Rishie Sharmas work on
Updateing conversation handling to dissect FP/MAC/RLC
(Work in progress).

svn path=/trunk/; revision=43781
2012-07-18 07:45:19 +00:00
Guy Harris
9d470cceb9 Clean up indentation.
svn path=/trunk/; revision=43780
2012-07-18 04:45:41 +00:00
Evan Huus
a234b68ff0 Fix some system header files that were #included with "" instead of <>.
They made cppcheck unhappy.

svn path=/trunk/; revision=43779
2012-07-18 02:47:56 +00:00