Commit Graph

204 Commits

Author SHA1 Message Date
Kovarththanan Rajaratnam 8b515e9340 Switch a bunch of dissectors over to using tvb_new_subset_remaining()
svn path=/trunk/; revision=29446
2009-08-16 12:36:22 +00:00
Gerald Combs f625c7131d Use the right size for FT_UINT16.
svn path=/trunk/; revision=29385
2009-08-11 21:11:12 +00:00
Kovarththanan Rajaratnam 0a5b014cec Don't guard col_clear with col_check
svn path=/trunk/; revision=29344
2009-08-09 07:36:13 +00:00
Kovarththanan Rajaratnam 4b6090e576 Don't guard col_set_str (COL_INFO) with col_check
svn path=/trunk/; revision=29342
2009-08-09 07:01:26 +00:00
Kovarththanan Rajaratnam e971354a54 Don't guard col_set_str (COL_PROTOCOL) with col_check
svn path=/trunk/; revision=29340
2009-08-09 06:26:46 +00:00
Jaap Keuter 203269175e Fix for bug 3806:
Add presentation of Block Ack Bitmap.

svn path=/trunk/; revision=29302
2009-08-05 07:33:44 +00:00
Bill Meier 65faee6470 Set editor modelines to be consistent between emacs and vi/ex;
Indentation and whitespace cleanup;

svn path=/trunk/; revision=29180
2009-07-23 17:46:09 +00:00
Gerald Combs 1d32de944e Squelch a couple of Valgrind warnings. This should fix bug 3700.
svn path=/trunk/; revision=29085
2009-07-13 18:54:24 +00:00
Stig Bjørlykke 0437f102c3 From Kovarththanan Rajaratnam:
More FT_XXX cleanup.

svn path=/trunk/; revision=28971
2009-07-07 09:02:59 +00:00
Anders Broman f179827b21 From Greg Schwendimann:
802.11 decryption is broken
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3590

svn path=/trunk/; revision=28860
2009-06-27 12:41:39 +00:00
Stig Bjørlykke b228488bc0 From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
    for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
    FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero

svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
Stig Bjørlykke f55541c7e1 Fixed bit position for wlan_mgt.fixed.delba.param.initiator.
This fixes bug 3505.

svn path=/trunk/; revision=28620
2009-06-03 10:38:07 +00:00
Anders Broman b4aeb97ed5 tvb_new_real_data -> tvb_new_child_real_data
svn path=/trunk/; revision=28517
2009-05-29 06:16:43 +00:00
Jörg Mayer ced7569727 Rename an CCX IE
svn path=/trunk/; revision=28370
2009-05-15 06:51:58 +00:00
Anders Broman 5f538e901d Apply some of the patches from:
http://wiki.wireshark.org/Development/Optimization

svn path=/trunk/; revision=28362
2009-05-14 19:11:43 +00:00
Guy Harris 269f7023c3 Try to detect the mysterious two bytes of 0x00 stuck in after the 802.11
header in at least some OLPC frames.

svn path=/trunk/; revision=28239
2009-05-02 02:41:00 +00:00
Guy Harris 51ea1cb223 Pull the code to dissect Marvell vendor actions into a routine of its
own.

svn path=/trunk/; revision=28237
2009-05-01 19:26:15 +00:00
Guy Harris dad0226759 Clean up indentation.
Clean up an idiom used when dissecting actions.

svn path=/trunk/; revision=28235
2009-05-01 18:04:40 +00:00
Bill Meier 6f92b028aa Use some default true_false_string's.
svn path=/trunk/; revision=27983
2009-04-07 12:20:41 +00:00
Stig Bjørlykke df120bc8d2 Removed some "initializer does not fit or is out of range" warnings.
svn path=/trunk/; revision=27826
2009-03-23 12:44:50 +00:00
Bill Meier 94f9079b2f g_snprintf() & etc since glib 1.3.12 don't return -1,
and also always NUL terminate the string.


svn path=/trunk/; revision=27819
2009-03-22 15:42:03 +00:00
Bill Meier 091c4a0009 Fix non-ascii characters
svn path=/trunk/; revision=27723
2009-03-15 15:02:24 +00:00
Stig Bjørlykke 62f60df6b4 From Jakub Zawadzki (bug 3331):
g_free() is NULL safe, so we don't need check against it.

svn path=/trunk/; revision=27718
2009-03-13 22:06:48 +00:00
Guy Harris 067d476556 Clean up display of QoS PS Buffer State field.
svn path=/trunk/; revision=27570
2009-03-01 08:24:24 +00:00
Guy Harris 04072a4202 Show bit 4 of the QoS field for frames not coming from an AP.
Make the TXOP Limit, Queue Size, and TXOP Duration Request part of the
QoS field separate named fields, and show them in a bit better fashion.

svn path=/trunk/; revision=27569
2009-03-01 07:26:59 +00:00
Jaap Keuter 6895406b11 From Didier Gautheron:
ECWmin and ECWmax in the Beacon WME Information Element are not displayed correctly.
They appear as equal each to the other. It should be: byte2 & 0x0f, (byte2 & 0xf0) >> 4.

svn path=/trunk/; revision=27550
2009-02-26 05:42:55 +00:00
Jaap Keuter 860a6d7f95 From Jerry Kotland:
There's a slight error with one of the 802.11n SM Power Save labels.
Currently, when SM Power save == 3, the label is "SM enabled".
According to 802.11n Draft 2.07 it should be "SM Power Save disabled".

svn path=/trunk/; revision=27531
2009-02-24 06:37:45 +00:00
Gerald Combs 6d04f793f0 Back out r27047 and r27053.
svn path=/trunk/; revision=27062
2008-12-19 17:39:52 +00:00
Gerald Combs fc71188963 Update calls to proto_tree_add_bytes_format to reflect r27047.
svn path=/trunk/; revision=27053
2008-12-18 20:19:49 +00:00
Bill Meier c544c20956 Fix various typos and spelling errors (mostly in text strings)
svn path=/trunk/; revision=27050
2008-12-18 19:08:49 +00:00
Bill Meier a8f30cbca1 Fix some typos and spelling (mostly in text strings)
svn path=/trunk/; revision=27037
2008-12-17 17:23:37 +00:00
Jaap Keuter 39de8a0cb8 From Alexis La Goutte:
I do not know if I have to reopen this ticket or create a new ticket.
But with last SVN, when i dissector Aruba GRE, i get 
In GRE line, it is find to unknown protocol (0x8200 - unknown)
We need to create a new patch to not show "unknown".

svn path=/trunk/; revision=26962
2008-12-10 23:28:51 +00:00
Bill Meier 8afa208ffb Windows build: #include winsock2.h only when needed.
#include winsock2.h pulls in about 90 distinct .h files
and about 140 total .h files. 
Currently winsock2.h is (mostly unnecessarily) included
for each dissector via packet.h/wtap.h.
This patch removes #include winsock2.h from wtap.h and 
then includes winsock2.h (or windows.h) in the 
few specific places required. 
With this patch, my Windows Wireshark build takes 
about 30% less time.


svn path=/trunk/; revision=26535
2008-10-24 00:42:09 +00:00
Jaap Keuter 75d4f03f87 From beanniecai:
Change non-printable characters(code page 936, simplified Chineses) 0x96 in
packet-ieee80211.c and 0xa7 in packet-sndcp-xid.c to '-' and null character,
otherwise there is always warning C4819 using MS compiler.

Additional some whitespace cleanups applied.

svn path=/trunk/; revision=26489
2008-10-18 14:24:33 +00:00
Jaap Keuter f293b1639e From Alexis La Goutte:
I'm a user of Aruba / Alcatel OAW Wireless Switch ( www.arubanetworks.com )
The stream (802.11 Frame) is encapsulated in a tunnel GRE. 

svn path=/trunk/; revision=26446
2008-10-13 20:40:26 +00:00
Guy Harris dbf7b99e97 The Official Home of the AVS header spec appears to bhe the
linux-wlan-ng source tree; just insert it verbatim into a big honking
comment, rather than trying to play Find The URL with it.

svn path=/trunk/; revision=26239
2008-09-20 01:57:18 +00:00
Anders Broman aadfcc546c Allways show the Vendor OUI in the vedors specific IE.
svn path=/trunk/; revision=26193
2008-09-14 15:14:46 +00:00
Guy Harris 7bdebbdb00 In the radio-information dissector, set the current protocol name before
calling the 802.11 dissector, so if we have a malformed frame or short
frame the right protocol name will be shown.

svn path=/trunk/; revision=26173
2008-09-10 21:48:15 +00:00
Anders Broman 7530143278 Add extended cap decoding.
svn path=/trunk/; revision=26145
2008-09-05 16:04:02 +00:00
Guy Harris 6321274b52 Mark unused argument as such.
Style changes.

svn path=/trunk/; revision=26139
2008-09-04 21:21:27 +00:00
Anders Broman 0b53441f69 Modified patch from Siva Jupudi adding support for
WAVE Service information element Dissection - IEEE 802.11p Draft 4.0

svn path=/trunk/; revision=26138
2008-09-04 20:54:22 +00:00
Guy Harris 3acd12510b The first argument to vendor IE dissectors is a proto_item *, not a
proto_tree * (yes, they're the same data type, but they're thought of
differently - it's a long story).

Just call the IE type in a Marvell vendor IE the "type".  For IEs with
no known type, show the IE data as raw data, as is done with
Aironet/Cisco vendor IEs.

Get rid of an unused variable, and mark as unused an unused parameter.

svn path=/trunk/; revision=26050
2008-08-20 23:57:50 +00:00
Anders Broman ec064849c5 From David Woodhouse:
The IEEE80211 part of "Add support for OLPC 802.11s-like mesh protocol".
With some changes to make it a bit more generic.

svn path=/trunk/; revision=26049
2008-08-20 19:50:26 +00:00
Anders Broman bba165265c Fix bug:
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2285
7.3.2.22 Measurement Report element min length is 3
Added dissection of 
7.3.2.18 TPC Report element

svn path=/trunk/; revision=26042
2008-08-19 21:26:35 +00:00
Anders Broman 8417cf0fab Add a comment.
svn path=/trunk/; revision=26041
2008-08-19 08:11:49 +00:00
Guy Harris d9416525b6 Add to a comment.
svn path=/trunk/; revision=26036
2008-08-19 03:42:40 +00:00
Guy Harris 83fc9d5e09 Constify a bunch of stuff, to squelch -Wwrite-strings warnings.
epan/dissectors/packet-ncp2222.inc is a bit hard to fix, so we're not
ready to enable that warning by default yet.

Throw in some casts to handle GLib routines that take arbitrary
non-const pointers (they can later return the pointers, and some
callers might want to modify or free up those pointers in cases where
they're known to be writable or allocated).

Use ep_tvb_memdup() rather than a combination of ep_alloc() and
tvb_memcpy().

Clean up some indentation.

svn path=/trunk/; revision=25601
2008-06-25 09:12:35 +00:00
Bill Meier 44af6ef887 Fix some of the Errors/warnings detected by checkapi.
svn path=/trunk/; revision=25290
2008-05-14 01:47:41 +00:00
Anders Broman 45b8ffd1ec Remove depreciated functions g_string_sprint, g_string_sprintfa.
svn path=/trunk/; revision=25238
2008-05-05 19:52:59 +00:00
Stig Bjørlykke f51d73bb5d Handle SSID as binary in WLAN Traffic Statistics.
svn path=/trunk/; revision=25237
2008-05-05 19:35:16 +00:00