Commit Graph

20347 Commits

Author SHA1 Message Date
Gerald Combs b82f42d8cf When the user is editing text or selecting from a combo box, don't
immediately close the dialog if he or she presses the escape or enter
keys. Revert the value if the user presses escape. Properly handle the
base for uint preferences. Fix a NULL pointer dereference.

Add a gchar_free_to_qstring utility routine which creates a QString from
a g_malloced string and frees it.

svn path=/trunk/; revision=47083
2013-01-14 22:21:11 +00:00
Gerald Combs 6be760c512 Put packet-ncp2222.c in epan/dissectors. This matches Makefile.am's behavior.
svn path=/trunk/; revision=47078
2013-01-14 20:05:24 +00:00
Chris Maynard ad78db491a Fix Coverity CID 732304: Missing break in switch.
svn path=/trunk/; revision=47077
2013-01-14 19:23:26 +00:00
Chris Maynard f2dd9bc0d2 Avoid any possibility of an infinte loop. Fixes Coverity CID 739883: Infinite loop. (Minor whitespace cleanup also.)
svn path=/trunk/; revision=47076
2013-01-14 19:14:51 +00:00
Chris Maynard b3bc6cf28f Fix Coverity CID 741992: Unused pointer value.
svn path=/trunk/; revision=47073
2013-01-14 18:31:04 +00:00
Pascal Quantin 1891adc28e Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8208 :
Display ECI and LAC in decimal and fix highlighting of CGI, SAI, RAI, TAI, ECGI and LAI fields

svn path=/trunk/; revision=47071
2013-01-14 18:29:27 +00:00
Chris Maynard 110509a77f Fixed Coverity CID 762008: Structurally dead code.
svn path=/trunk/; revision=47066
2013-01-14 15:49:30 +00:00
Chris Maynard 9dedcbdb82 packet-ncp2222.c -> dissectors/packet-ncp2222.c
svn path=/trunk/; revision=47064
2013-01-14 15:39:38 +00:00
Chris Maynard b89380dd74 Fix CID 966603: Unused pointer value.
svn path=/trunk/; revision=47062
2013-01-14 15:13:21 +00:00
Chris Maynard c56910aa70 Fix CID 967205: Unused pointer value.
svn path=/trunk/; revision=47061
2013-01-14 15:09:12 +00:00
Jaap Keuter 23d2320dd0 Fixing CID 280433 and 280357.
Also strengthening the checking and debug presentation.

svn path=/trunk/; revision=47060
2013-01-14 07:43:14 +00:00
Gerald Combs a0df458eb8 [Automatic manuf, services and enterprise-numbers update for 2013-01-13]
svn path=/trunk/; revision=47048
2013-01-13 15:03:34 +00:00
Pascal Quantin ccbff26e80 Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8196 :
Add dissection of IPv4v6 type to End User Address IE

svn path=/trunk/; revision=47047
2013-01-13 11:04:46 +00:00
Michael Mann a9fb54c677 bugfix nested loop that wasn't breaking out of the main loop when subloop really wanted it to. Bug 8198 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8198)
svn path=/trunk/; revision=47046
2013-01-13 02:58:42 +00:00
Pascal Quantin d3e4d6c972 Upgrade RRC dissector to v11.4.0
svn path=/trunk/; revision=47041
2013-01-11 23:25:30 +00:00
Guy Harris b8af5b44d1 #if 0 out some variables that are used only in now-#if 0'ed code.
svn path=/trunk/; revision=47040
2013-01-11 21:20:57 +00:00
Pascal Quantin 9f387eddbb Try to deduce NAS EPS Detach Request direction from message size
svn path=/trunk/; revision=47039
2013-01-11 20:54:04 +00:00
Guy Harris ef9384ff60 Fix uninitialized variable.
svn path=/trunk/; revision=47037
2013-01-11 20:25:05 +00:00
Pascal Quantin d4cf9ce69a Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8193 :
Add dissection of Dual Address Bearer Flag bit in Common Flags IE

svn path=/trunk/; revision=47036
2013-01-11 20:18:32 +00:00
Guy Harris ebdc5f8d55 Get rid of unused variable.
svn path=/trunk/; revision=47035
2013-01-11 20:08:43 +00:00
Pascal Quantin 1ca9d5c2b3 Upgrade LPP dissector to v11.1.0 and modify extract_asn1_from_spec.pl to automatically get ASN.1 from spec
svn path=/trunk/; revision=47034
2013-01-11 19:31:15 +00:00
Michael Mann 660e028212 Add support for expanded Gigamon Trailer format
from Sandeep Dahiya, bug 8191 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8191)

svn path=/trunk/; revision=47033
2013-01-11 19:20:39 +00:00
Michael Mann 2d2198962a replace g_warning with expert_add_info_format()
See bug 8155 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8155)

svn path=/trunk/; revision=47031
2013-01-11 15:57:11 +00:00
Michael Mann 8326a92942 Add RFC 5460 - DHCPv6 Bulk Leasequery
Bug 8172 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8172)

svn path=/trunk/; revision=47028
2013-01-11 14:41:17 +00:00
Anders Broman 614441f9e5 #if 0 out unused code
svn path=/trunk/; revision=47017
2013-01-10 12:42:07 +00:00
Anders Broman 84a8c1d83a From an.huang:
(1) support for optional attribute in Sample Value:
    datSet    (0x81), 
    refrTm    (0x84), 
    smpRate   (0x86),
    smpMod    (0x88). New attribute in 9-2 Ed2
(2) Data (0x87) decoded as PhsMeas in 9-2 LE(Lite Edition) recommemdation is removed, now the data is decoded as simply OctString, just as 9-2, further details should refer to the data set definition and Table 14 in Ed1 / Table 15 in Ed2  Encoding for the basic data types;

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

svn path=/trunk/; revision=47016
2013-01-10 12:13:16 +00:00
Anders Broman 2d44d2e05c From Alton MacDonald:
A TLV can be larger that the MIH payload. In this case the packet should be fragmented and controlled with the help of two fields in the MIH header. The attached patch checks these fields and dissects the TLVs if the MIH payload is not fragmented.

Additionally, if a TLV is detected larger than the payload size it is marked as a fragmented TLV and not dissected. This would be the case if the previously mentioned fields were not set correctly as their use under this scenario is not explicitly defined in the 802.21 standard.

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

svn path=/trunk/; revision=47014
2013-01-10 07:36:32 +00:00
Anders Broman 68160dac5c From "temp4746":
wslua TvbRange:le_ustring/ustring buffer overflow's.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8175

svn path=/trunk/; revision=47012
2013-01-10 06:55:16 +00:00
Anders Broman 84a94842a8 From "schlephorst":
BACnet dissect new tags in NotificationParameters.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8181

svn path=/trunk/; revision=47011
2013-01-10 06:48:10 +00:00
Anders Broman c553ca5c5e From "schlephorst":
BACnet dissect new tags in EventParameters.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8181

svn path=/trunk/; revision=47010
2013-01-10 06:42:15 +00:00
Martin Kaiser 4e9a407c6f remove unnecessary NULL checks
svn path=/trunk/; revision=47006
2013-01-09 21:57:08 +00:00
Anders Broman 9cdf3803a9 From David Bergeron:Added unknown attributes for STUN from RFC3489 that are now deprecated but does'nt appear with classicstun. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8179
svn path=/trunk/; revision=47002
2013-01-09 05:13:20 +00:00
Pascal Quantin c872b1258c Dissect CDMA2000 system time
svn path=/trunk/; revision=47001
2013-01-08 22:29:38 +00:00
Martin Kaiser 30fdbd6da6 revert r46739
call fragment_add() before fragment_set_tot_len()
(the latter has no effect if no fragments are present, so we don't set
 the total length correctly when it's in the first fragment)

svn path=/trunk/; revision=47000
2013-01-08 22:24:42 +00:00
Martin Kaiser d3b504f331 From Evan:
sanity checks before setting a packet's total length in
fragment_set_tot_len()

(from me: check if fragments exist for the given id)

hopefully, this fixes #8111 and #8163 without causing troubles for other
protocols that use fragmentation and reassembly

svn path=/trunk/; revision=46999
2013-01-08 22:18:52 +00:00
Martin Kaiser 697514cd35 2012->2013
svn path=/trunk/; revision=46998
2013-01-08 21:51:01 +00:00
Martin Kaiser 898dfde383 bring up a warning if an APDU's length field does not match the number
of payload bytes

svn path=/trunk/; revision=46997
2013-01-08 21:44:12 +00:00
Anders Broman 433d9c198d Only the private extension IE value part should go in the tvb.
svn path=/trunk/; revision=46996
2013-01-08 09:57:10 +00:00
Evan Huus ab9129add9 Small updates to the SEL Fast Message dissector.
From Chris Bontje via
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8170

svn path=/trunk/; revision=46995
2013-01-07 23:53:56 +00:00
Pascal Quantin 794183609d Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8164 :
Clarify content of StructureSize field

svn path=/trunk/; revision=46994
2013-01-07 23:08:25 +00:00
Evan Huus 74e5c710cb Re-fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8169 in a way that
is also (hopefully) valid for 32-bit platforms.

svn path=/trunk/; revision=46993
2013-01-07 22:12:38 +00:00
Pascal Quantin 952ccb4b83 Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8168 :
Detect properly the EMM Service Request message

svn path=/trunk/; revision=46991
2013-01-07 21:37:55 +00:00
Evan Huus aa6929d0cd Fix potential (but very unlikely) overflow and infinite loop.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8169

svn path=/trunk/; revision=46989
2013-01-07 20:24:19 +00:00
Evan Huus 28808df71b Add mode-lines.
svn path=/trunk/; revision=46988
2013-01-07 20:00:38 +00:00
Gerald Combs 0fa6a4c421 Allow editing via the advanced preferences tree. Double-clicking an
item's name, status, or type resets it to its default value.
Double-clicking the item's value lets you edit it. Implement the
advanced search field. (Clicking OK and Cancel still doesn't yet do
anything.)

Note that we could probably use a
prefs_register_{uint16|port}_preference routine for 16-bit values. Make
reset_pref public. Update some names and descriptions.

svn path=/trunk/; revision=46986
2013-01-07 19:13:03 +00:00
Alexis La Goutte 86e16b4f61 Fix some Dead Store (Dead initialization) Warning found by Clang
svn path=/trunk/; revision=46978
2013-01-06 19:13:33 +00:00
Gerald Combs 6f100ff6e1 [Automatic manuf, services and enterprise-numbers update for 2013-01-06]
svn path=/trunk/; revision=46971
2013-01-06 15:03:32 +00:00
Alexis La Goutte ab7f4395d7 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=46967
2013-01-06 14:50:52 +00:00
Alexis La Goutte b3db35e7a6 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=46966
2013-01-06 14:50:44 +00:00
Alexis La Goutte 1cd2e3cd1b Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=46965
2013-01-06 14:50:35 +00:00
Alexis La Goutte 4d353242e8 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=46964
2013-01-06 14:50:27 +00:00
Alexis La Goutte 0c22e572c6 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=46963
2013-01-06 14:50:18 +00:00
Alexis La Goutte 3bf44b5a27 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=46962
2013-01-06 14:50:06 +00:00
Alexis La Goutte 2e3564d69e Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=46961
2013-01-06 14:49:58 +00:00
Alexis La Goutte bfa7d1a3f1 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=46960
2013-01-06 14:49:48 +00:00
Pascal Quantin ca189246fe Upgrade LTE RRC dissector to v11.2.0
svn path=/trunk/; revision=46959
2013-01-06 09:56:24 +00:00
Pascal Quantin ac972a58b2 From Nickolai via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8167 :
Fix an incorrect logical check for no_of_bits!=0 in proto_tree_add_split_bits_item_ret_val()

svn path=/trunk/; revision=46958
2013-01-05 23:49:24 +00:00
Evan Huus 33981700b5 From Guus Gerrits via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8148
Add some additional formatting to the mmhdr subtree (e.g. selecting 5
mmheaderbytes with mmver!=0, Added a subtree for the Fragmentation Info)

svn path=/trunk/; revision=46956
2013-01-05 23:14:50 +00:00
Evan Huus d131bc1077 From Chris Bontje via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8089
Dissector for the SEL (Schweitzer Engineering Labs) Fast Message protocol.

From me:
- use wmem instead of glib to not leak memory
- simplify port preference
- remove unneeded initializers
- modelines
- Id tag

svn path=/trunk/; revision=46949
2013-01-05 14:19:15 +00:00
Pascal Quantin b1143f60b3 Regenerate ANSI MAP dissector
svn path=/trunk/; revision=46948
2013-01-05 13:53:27 +00:00
Alexis La Goutte 5d6a6b4652 Fix regression from upgrade FIX 5.0 (Revision 46944)
../../../epan/dissectors/packet-fix.h:1450:10: error: multi-character character constant [-Werror=multichar]
../../../epan/dissectors/packet-fix.h:1451:10: error: multi-character character constant [-Werror=multichar]
[...]

When FIX field type is MULTIPLESTRINGVALUE use string_string (not value_string)

And regenerated packet-fix.h

svn path=/trunk/; revision=46947
2013-01-05 10:12:44 +00:00
Michael Mann bf8fce3a00 Upgrade to FIX 5.0 fields
Bug 7853 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7853)

FIX.xml is now based on FIX50SP2.xml with some fill in from 4x xml files (as determined by diff between "old" and "new" packet-fix.h)

Included all FIX 5.0 field files from http://sourceforge.net/projects/quickfix/files/ 

svn path=/trunk/; revision=46944
2013-01-05 04:06:31 +00:00
Gerald Combs b99199fcf8 Constify a couple of variables and export a couple of functions.
svn path=/trunk/; revision=46943
2013-01-05 03:42:28 +00:00
Gerald Combs 4a3342e4ba Break out preference type names, type descriptions, string
representations, and default status out of write_prefs and into their
own routines. Split the corresponding custom preference write callbacks.
Fix an apparent memory leak in the hidden column callback.

Add an initial preferences dialog to the Qt port. Use the new preference
routines to implement an "Adavanced" page similar to the "about:config"
page available in many web browsers. Standard pages will hopefully follow
soon.

Remove some QDebug includes and make sure our QTreeWidgets have uniform
row heights set.

svn path=/trunk/; revision=46942
2013-01-05 02:30:58 +00:00
Evan Huus bab105d094 Add convenience macros wmem_new and wmem_new0
svn path=/trunk/; revision=46941
2013-01-04 22:11:13 +00:00
Pascal Quantin 7d8ab07431 Fix some errors found by fix-encoding-args.pl script
svn path=/trunk/; revision=46933
2013-01-04 17:35:46 +00:00
Pascal Quantin deb4f08cb2 Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8105 :
Allow use of huges values for localtime / ctime / gmtime with MSVC 2008 or later

svn path=/trunk/; revision=46930
2013-01-04 14:56:27 +00:00
Michael Mann 86d690880f replace "unsigned" datatype with "guint". Some mpeg files needed "unsigned int" instead.
bugs 7825-7827 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7825)

svn path=/trunk/; revision=46928
2013-01-04 05:22:43 +00:00
Jeff Morriss d36b4c8525 Fix a (false) could-be-used-uninitialized warning.
Fix up indentation (looks like "4 space tabs").

svn path=/trunk/; revision=46927
2013-01-04 02:28:46 +00:00
Anders Broman 6ea36c51c3 Add casts to make it build on win64
svn path=/trunk/; revision=46925
2013-01-03 23:24:47 +00:00
Pascal Quantin 70d2438851 Add packet-mrcpv2.c to CMakeLists.txt
svn path=/trunk/; revision=46923
2013-01-03 22:03:47 +00:00
Jaap Keuter 6fd81d4994 From Zeljko Ancimer:
New dissector for Media Resource Control Protocol Version 2 (MRCPv2).

svn path=/trunk/; revision=46922
2013-01-03 21:42:59 +00:00
Michael Mann 46935dbab4 USBHUB: Add useful details to INFO column, bug 8161 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8161)
From Steve Magnani

svn path=/trunk/; revision=46919
2013-01-03 18:08:50 +00:00
Alexis La Goutte 69b38c579f From Steve Magnani via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8157 USBHUB: Add dissection of GetPortStatus responses
Most USBHUB responses are not dissected. Add support for GetPortStatus.

svn path=/trunk/; revision=46913
2013-01-03 11:37:05 +00:00
Evan Huus 17a05dfae0 Remove unused file handle that appears to have been left over by
accident after a refactor.

svn path=/trunk/; revision=46907
2013-01-02 23:16:03 +00:00
Michael Mann 0292371cf4 bitmask patch for MIH dissector that makes 64-bit bitmasks only use 32-bits since proto_tree_add_bitmask only supports 32 bits and there are no definitions in the MIH standard that require more than 32 bits. This addresses part of bug 8155 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8155)
**
ERROR:proto.c:7240:proto_item_add_bitmask_tree: code should not be reached



svn path=/trunk/; revision=46895
2013-01-02 16:14:30 +00:00
Michael Mann 37d19a1202 Add heuristic for USB MassStorage dissector to be dissected by USB. Bug 8131 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8131)
svn path=/trunk/; revision=46877
2012-12-31 20:12:45 +00:00
Pascal Quantin 58575f394f From Florian Fainelli via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8148 :
Fix dissection of HomePlug AV 1.1 frames with fragmentation information

From me: indentation fixes

svn path=/trunk/; revision=46871
2012-12-31 13:39:04 +00:00
Gerald Combs af2b925604 [Automatic manuf, services and enterprise-numbers update for 2012-12-30]
svn path=/trunk/; revision=46860
2012-12-30 15:03:22 +00:00
Anders Broman 54cb9e70ab Use tvb_bcd_dig_to_ep_str
svn path=/trunk/; revision=46858
2012-12-30 11:10:35 +00:00
Anders Broman be1ff84f48 From Katrina Zhang:Pretify dissection if a dissector exists for the private extension
svn path=/trunk/; revision=46857
2012-12-30 09:35:27 +00:00
Bill Meier 8b7f8d4c08 Move 3 ASN1 dissectors to 'clean' group; move 1 PIDL dissector to 'dirty' group.
svn path=/trunk/; revision=46855
2012-12-30 00:53:47 +00:00
Evan Huus 8331c0e495 Add a cast to pacify MSVC.
svn path=/trunk/; revision=46850
2012-12-29 21:34:57 +00:00
Evan Huus 563d64862a Implement wmem_strbuf_append_printf.
svn path=/trunk/; revision=46846
2012-12-29 20:37:53 +00:00
Evan Huus 45a77360ea Rename tcp.data -> tcp.segment_data and add a description field.
Should clear up the confusion from
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8084

svn path=/trunk/; revision=46843
2012-12-29 18:08:11 +00:00
Pascal Quantin 0b20f855f0 Upgrade NAS disssectors to v11.5.0
svn path=/trunk/; revision=46842
2012-12-29 17:10:04 +00:00
Gerald Combs 5bd252c44f Remove some duplicate code from ui/profile.c and move in more code from
ui/gtk/profile_dialog.c. Use the correct profile list in
profile_dialog.c so that deletion works.

Add a profile dialog to the Qt port. For some reason it crashes when
changing configuration profiles, which might be related to bug 7722.
Move the Qt configuration profile initialization from main.cpp to
wireshark_application.cpp. Make sure QMenuBar doesn't grab the
configuration profiles action on OS X. Add more role color names to
tango_colors.h.

svn path=/trunk/; revision=46834
2012-12-29 01:39:02 +00:00
Bill Meier c7dd6480e4 Minor fix when building with VS2012 (VC11):
Prevents warning:
cl : Command line warning D9002 : ignoring unknown option '/Zd'

svn path=/trunk/; revision=46832
2012-12-28 22:13:05 +00:00
Evan Huus 0c66691b92 Add a strict allocator that does canaries and various other things, for
platforms which don't have Valgrind.

Valgrind is still the better choice on platforms which support it.

svn path=/trunk/; revision=46828
2012-12-28 17:04:23 +00:00
Alexis La Goutte 5588d07faa Add missing new dissectors to CMake
* Media Independent handover (MIH) (Add in Revison 46802)
* RTCWeb Data Channel Protocol (Add in Revision 46809)

svn path=/trunk/; revision=46827
2012-12-28 14:38:27 +00:00
Alexis La Goutte fee2b8b2b9 Tab => Spaces
svn path=/trunk/; revision=46826
2012-12-28 14:38:19 +00:00
Evan Huus 97ec82d02e Make the alignment amount for the wmem block allocator into a #define
and use what appears to be the sanest calculation for it that I can find.

svn path=/trunk/; revision=46820
2012-12-27 23:11:47 +00:00
Evan Huus bb3b34d7bf Pre-declare just the enum, and not the typedef to avoid redefinition warnings.
svn path=/trunk/; revision=46818
2012-12-27 22:59:29 +00:00
Evan Huus 442b61d0a4 Change the format of the environment variable slightly to allow overriding
allocator choice to use any specific allocator, not just simple.

svn path=/trunk/; revision=46816
2012-12-27 22:51:33 +00:00
Evan Huus dc98756ca4 Store the type of each wmem allocator.
svn path=/trunk/; revision=46814
2012-12-27 22:31:42 +00:00
Evan Huus 347a8a2115 Add full modelines and minor whitespace fixes.
svn path=/trunk/; revision=46812
2012-12-27 18:58:08 +00:00
Michael Tüxen c541aa4ab5 Add initial support for
http://tools.ietf.org/html/draft-jesup-rtcweb-data-protocol-03
I'll improve the dissector as the ID evolves...


svn path=/trunk/; revision=46809
2012-12-27 17:11:24 +00:00
Anders Broman 93218a7c76 From Pawel Dziepak:dissect_rpc_array causes assertion fault when array is empty. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8145
svn path=/trunk/; revision=46805
2012-12-27 12:55:05 +00:00
Anders Broman 12317316ae From Ankith: Media Independent handover (MIH) protocol dissector. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5881
svn path=/trunk/; revision=46802
2012-12-27 11:26:40 +00:00
Anders Broman 01432aaf5c Add Media Independent Handover Protocol ethertype
svn path=/trunk/; revision=46801
2012-12-27 11:19:46 +00:00
Guy Harris f79410f0cd Tabs -> spaces.
svn path=/trunk/; revision=46800
2012-12-26 22:34:39 +00:00
Guy Harris 7df01d368e Update a comment.
svn path=/trunk/; revision=46799
2012-12-26 22:34:09 +00:00
Guy Harris ab638bb6fc geoip_db_get_paths() is exported from libwireshark, so it has to exist
regardless of whether we have GeoIP or not.  However, regardless of
whether it's exported from GeoIP or not, it should return a g_mallocated
string.

svn path=/trunk/; revision=46798
2012-12-26 22:24:15 +00:00
Guy Harris 5c2a86ebc8 Update a comment.
svn path=/trunk/; revision=46795
2012-12-26 22:13:34 +00:00
Guy Harris 46e9f63fb2 Do array bounds checking.
svn path=/trunk/; revision=46793
2012-12-26 22:05:41 +00:00
Guy Harris d4b622de36 Don't define geoip_db_get_paths() unless we have GeoIP - we don't use it
unless it's defined.

svn path=/trunk/; revision=46791
2012-12-26 20:37:50 +00:00
Anders Broman 07c92db36b From Michal Labedzki: To ensure that names are correct copy NULL too This fixes unknown characters sometimes show in src/dst columns, etc. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7639
svn path=/trunk/; revision=46789
2012-12-26 15:28:28 +00:00
Guy Harris 29acae89d9 OK, see if not using an enum gets rid of "implicit conversion shortens
64-bit value to 32 bits" warnings on 32-bit compilers.  According to
6.1.3.3 "Enumeration constants" of C90, "An identifier declared as an
enumeration constant has type int", so there may be signed vs. unsigned
issues.

svn path=/trunk/; revision=46772
2012-12-26 11:46:48 +00:00
Guy Harris 1cd57ad3c5 bytestring_to_str() now returns a const char *; assign its result to a
const char *, not a char *.

svn path=/trunk/; revision=46769
2012-12-26 10:54:03 +00:00
Guy Harris 544efd26a6 And another 64-bit-to-32-bit conversion on 32-bit platforms.
svn path=/trunk/; revision=46768
2012-12-26 10:49:05 +00:00
Guy Harris 852ee34955 Another 64-bit-to-32-bit warning that shows up in 32-bit environments.
svn path=/trunk/; revision=46766
2012-12-26 10:30:34 +00:00
Guy Harris c1245c6b32 Change wireshark_gen.py to make the operation argument to routines a
"const char *", as it is now expected to be.  Regenerate the dissectors.

Update the URL for OmniOrb.

In README.parlay, use idl2wrs in the sample command.

svn path=/trunk/; revision=46765
2012-12-26 10:28:03 +00:00
Guy Harris 688b567111 And more 64-bit-to-32-bit time issues on 32-bit platforms.
svn path=/trunk/; revision=46763
2012-12-26 09:56:18 +00:00
Guy Harris dd1505428c Another ILP32 Y2.038K warning.
svn path=/trunk/; revision=46758
2012-12-26 07:05:42 +00:00
Guy Harris 7f40879104 Squelch a (Y2.038K) warning.
svn path=/trunk/; revision=46756
2012-12-26 06:41:49 +00:00
Guy Harris 229ec8c545 OK, *this* isn't a possibly-infinite loop.
svn path=/trunk/; revision=46755
2012-12-26 06:39:53 +00:00
Guy Harris 34633f5fe3 Widen some loop variables, in the hopes that it'll squelch some loop
warnings.

svn path=/trunk/; revision=46754
2012-12-26 06:20:59 +00:00
Guy Harris 50102335a7 Eliminate multiple "const"s.
svn path=/trunk/; revision=46753
2012-12-26 06:16:39 +00:00
Guy Harris b0d6fbcdeb OK, fine, maybe sometimes it's used; flag it with _U_ while we're at it.
svn path=/trunk/; revision=46750
2012-12-26 06:07:04 +00:00
Guy Harris a9635c3b9c If a parameter might be unused, mark it with _U_; don't stick in a fake
usage.

svn path=/trunk/; revision=46749
2012-12-26 06:04:05 +00:00
Guy Harris 8ed7a73e22 Fix a bunch of warnings.
Cast away some implicit 64-bit-to-32-bit conversion errors due to use of
sizeof.

Cast away some implicit 64-bit-to-32-bit conversion errors due to use of
strtol() and strtoul().

Change some data types to avoid those implicit conversion warnings.

When assigning a constant to a float, make sure the constant isn't a
double, by appending "f" to the constant.

Constify a bunch of variables, parameters, and return values to
eliminate warnings due to strings being given const qualifiers.  Cast
away those warnings in some cases where an API we don't control forces
us to do so.

Enable a bunch of additional warnings by default.  Note why at least
some of the other warnings aren't enabled.

randpkt.c and text2pcap.c are used to build programs, so they don't need
to be in EXTRA_DIST.

If the user specifies --enable-warnings-as-errors, add -Werror *even if
the user specified --enable-extra-gcc-flags; assume they know what
they're doing and are willing to have the compile fail due to the extra
GCC warnings being treated as errors.

svn path=/trunk/; revision=46748
2012-12-26 05:57:06 +00:00
Guy Harris 8ede6b7dc0 bssmap_msg_fcn[] is a dense array, not a sparse array, so *every* entry
must be filled in - even if we don't happen to have dissectors for
particular message types.  Just put NULL in there, so we don't index
past the end of the array, grab a random location in memory's contents
as a function pointer, and crash when we call through that pointer.

svn path=/trunk/; revision=46747
2012-12-25 23:14:05 +00:00
Guy Harris 8432edcc72 More checks to make sure pinfo->private_data is not null.
svn path=/trunk/; revision=46746
2012-12-25 22:48:01 +00:00
Guy Harris ce5039c522 Add some additional sanity checks.
svn path=/trunk/; revision=46745
2012-12-25 22:39:11 +00:00
Guy Harris c8f3c1d9a3 In dissect_bthci_evt_command_complete():
Make a loop counter a full-width integer, just to be sure.

Do *NOT* assume that pinfo->private_data is non-null; I have at least
one capture where it is null when dissect_bthci_evt_command_complete()
is captured.

svn path=/trunk/; revision=46743
2012-12-25 22:35:54 +00:00
Martin Kaiser 13a5f0b5da set the dtls record length for reassembly _before_ adding a fragment
this is a workaround for
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8111
it does not fully fix the underlying issue

svn path=/trunk/; revision=46739
2012-12-25 18:44:14 +00:00
Guy Harris b98d44d71f If there's no packet data, there's nothing to check to see whether this
is an MPEG-2 transport packet, so don't treat it as one.

svn path=/trunk/; revision=46733
2012-12-25 12:00:32 +00:00
Guy Harris ceb69f1413 Show the Vines Fragmentation Protocol control flags field as bitflags,
rather than as a single field.  If bits other than the two defined bits
are set in the first byte of the packet, don't dissect UDP packets as
Vines FRP, so that other dissectors get a chance to look at the packet.

svn path=/trunk/; revision=46732
2012-12-25 11:57:03 +00:00
Alexis La Goutte 87c1df5ead From report of Elavarasan via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8099 Named field for each item in Selected Registrar Config methods is not available
The structure of both the Config Methods and Selected Registrar Config Methods are  the same.

Display filters such as "wps.config_methods.pushbutton", "wps.config_methods.display", etc are available for the different methods in the Config methods whereas the display filters for the elements in the Selected Registrar Config methods are found to be the same as the Config method Display filters.

From me :
add new filter for selected_registrar config method bitmask (and also permitted config method)

svn path=/trunk/; revision=46725
2012-12-23 19:17:54 +00:00
Alexis La Goutte 267e5baf55 From Francesco Fondelli via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8128 Add TCP Fast Open
This patch provides
i) support for Shared Use of Experimental TCP Options (draft-ietf-tcpm-experimental-options-03)
ii) support for TCP Fast Open (draft-ietf-tcpm-fastopen-02).

A new 'TFO=R' string is appended at the column info in case a client sends a SYN packet with a Fast Open Cookie Request. Moreover, if the server responds with a SYN-ACK containing a Fast Open Cookie option a 'TFO=C' is shown (as well as in any subsequent client attempt to send SYN + DATA).

tcp.options.tfo display filter can be used in order to easily select the complete TFO three-way handshake.

Chrome (and I think also Firefox) has support for client-side TFO. Linux 3.7 got both client and server-side support.

svn path=/trunk/; revision=46723
2012-12-23 18:40:55 +00:00
Gerald Combs 18e1080b28 [Automatic manuf, services and enterprise-numbers update for 2012-12-23]
svn path=/trunk/; revision=46719
2012-12-23 15:03:29 +00:00
Guy Harris 04a5398ab7 In nlsp_dissect_clvs(), count len down at the same time we increment the
offset, and do the bounds checking on the length before we count len
down.

svn path=/trunk/; revision=46718
2012-12-23 10:51:34 +00:00
Martin Kaiser 594b0bb11f revert r46678
now that tvb_get_ephemeral_unicode_string() throws an exception for
invalid length parameters, there's no point in doing an explicit check
beforehand

(when I added the check, there were many places that I missed)

svn path=/trunk/; revision=46707
2012-12-22 23:56:50 +00:00
Martin Kaiser 3eb2a8644f trivial: clean up epan/strutil.c
replace TABs with spaces
   add editor modelines

svn path=/trunk/; revision=46706
2012-12-22 23:27:40 +00:00
Martin Kaiser 50945da41c check the length parameter for tvb_get_unicode_string() and
tvb_get_ephemeral_unicode_string(), throw an exception for invalid
lengths (including -1, but length==-1 does not work for other tvb string
functions either)

I believe this is the proper fix for
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8112

svn path=/trunk/; revision=46705
2012-12-22 22:35:07 +00:00
Michael Tüxen d9cca759e5 Fox copy-and-paste error.
svn path=/trunk/; revision=46701
2012-12-22 20:56:58 +00:00
Michael Tüxen 1f2b8a904c Add support for displaying the Packet Block Flags Word of pcapng.
svn path=/trunk/; revision=46698
2012-12-22 19:48:17 +00:00
Jaap Keuter cd376e0ca8 From G.Gerrits:
Minor patch just adding the newer AR7400/INT7400 with dev_id==4 for decoding 
in the Homeplug AV "Get Device/SW Version Confirm (A001)" response.

svn path=/trunk/; revision=46695
2012-12-22 14:28:52 +00:00
Guy Harris e773e4ff08 Get rid of unnecessary initialization that causes "discards qualifiers"
warnings.

svn path=/trunk/; revision=46688
2012-12-21 22:00:40 +00:00
Pascal Quantin d66d8c44d2 Fix GSM 7-bit default alphabet decoding in ANSI IS-637-A
svn path=/trunk/; revision=46687
2012-12-21 21:03:31 +00:00
Pascal Quantin aae3c27307 Include packet-gsm_sms.h and remove extern declarations
svn path=/trunk/; revision=46686
2012-12-21 21:01:45 +00:00
Jeff Morriss 6406acc768 Use TVB_SET_ADDRESS_HF() and COPY_ADDRESS_SHALLOW() instead of tvb_get_ptr()
and a couple of SET_ADDRESS()s.

Use proto_tree_add_item() instead of proto_tree_add_ether() called with a
pointer into the TVB.

Leave a comment for a place where a bunch of code in several case statements
could probably be collapsed into much less code.

svn path=/trunk/; revision=46682
2012-12-21 17:43:46 +00:00
Jeff Morriss 693a4d6483 Use TVB_SET_ADDRESS() and COPY_ADDRESS_SHALLOW() instead of tvb_get_ptr()
and a couple of SET_ADDRESS()s.

svn path=/trunk/; revision=46681
2012-12-21 17:43:44 +00:00
Martin Kaiser 6a6bd89c54 fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8112
by adding a range to the length that is passed to
tvb_get_ephemeral_unicode_string()

svn path=/trunk/; revision=46678
2012-12-21 15:52:42 +00:00
Guy Harris d7763299ae The KRB_RM_ #defines fit in 32 bits, so just make them unsigned, not
long.

dissect_krb5_Checksum() is declared in
epan/dissectors/packet-kerberos.h; don't declare it again here.

svn path=/trunk/; revision=46666
2012-12-21 11:37:54 +00:00
Guy Harris 8dbe2af621 Check whether something's too big before subtracting it from another
variable.

Adjust offset and len in parallel.

svn path=/trunk/; revision=46665
2012-12-21 11:12:23 +00:00
Guy Harris 954b90418a Squelch a qualifier-discard warning.
svn path=/trunk/; revision=46664
2012-12-21 11:04:10 +00:00
Guy Harris b1d5b64da6 Well, at least on my machine, packet-pres.c now compiles cleanly, with
the recent changes to pres.cnf to keep from generating some code.

svn path=/trunk/; revision=46663
2012-12-21 10:55:43 +00:00
Guy Harris 69270d1bea Get rid of unused routines for UDC-type.
svn path=/trunk/; revision=46662
2012-12-21 10:52:29 +00:00
Guy Harris 594e855738 Don't assume a pointer fits inside an unsigned long - it doesn't, in
LLP64 environments such as Windows.

Cast the result of a modulus op that causes the result to fit into an
int to int, to suppress implicit 64-bit-to-32-bit conversion warnings.

svn path=/trunk/; revision=46661
2012-12-21 10:26:52 +00:00