aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-wlccp.c
AgeCommit message (Collapse)AuthorFilesLines
2015-06-23Remove more deprecated tvb_length callsEvan Huus1-2/+2
Change-Id: Ie40a195db622ebfb096fa5088c5467a1385e69bf Reviewed-on: https://code.wireshark.org/review/9062 Reviewed-by: Evan Huus <eapache@gmail.com>
2014-12-21Cleanup use of #includes in non-generated epan/dissector/*.cBill Meier1-2/+0
Specifically: - Set packet.h to be the first wireshark #include after config.h and "system" #includes. packet.h added as an #include in some cases when missing. - Remove some #includes included (directly/indirectly) in packet.h. E.g., glib.h. (Done only for those files including packet.h). - As needed, move "system" #includes to be after config.h and before wireshark #includes. - Rework various #include file specifications for consistency. - Misc. Change-Id: Ifaa1a14b50b69fbad38ea4838a49dfe595c54c95 Reviewed-on: https://code.wireshark.org/review/5923 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-10-02Add editor modelines & adjust indentation/whitespace as needed.Bill Meier1-2/+15
Change-Id: Ice2d93632cd42dfcef3bfbf0e15f2a8a147278fc Reviewed-on: https://code.wireshark.org/review/4433 Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-06-19Revert "Fixup: tvb_* -> tvb_captured"Michael Mann1-4/+4
https://www.wireshark.org/lists/wireshark-dev/201406/msg00131.html This reverts commit 246fe2ca4c67d8c98caa84e2f57694f6322e2f96. Change-Id: Ib24bae0198c13a84bd7f731bf4af921212109a8f Reviewed-on: https://code.wireshark.org/review/2430 Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-06-18Fixup: tvb_* -> tvb_capturedDario Lombardo1-4/+4
Change-Id: I9209c1271967405c34c1b6fa43e1726a4d3a5a3f Reviewed-on: https://code.wireshark.org/review/2377 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2013-12-10- Forward declaration of register functions.Anders Broman1-0/+3
svn path=/trunk/; revision=53908
2013-09-11Instead of prepending "LLC " to the UI table name, just modify the table name. Chris Maynard1-1/+1
svn path=/trunk/; revision=51952
2013-06-14Remove check_col() and the occasional tree.Michael Mann1-62/+50
svn path=/trunk/; revision=49923
2013-01-31Use '#if 0 ... #endif' rather than /** ... **/ to comment outBill Meier1-6/+6
unused hf[] entries (which I should have done in the first place). svn path=/trunk/; revision=47390
2013-01-26Comment out cases of unused hf array entries found by checkhf.Bill Meier1-6/+9
svn path=/trunk/; revision=47302
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-3/+1
svn path=/trunk/; revision=45017
2012-08-10Use val_to_str_const() where appropriate;Bill Meier1-13/+13
Also (for a few files): - create/use some extended value strings; - remove unneeded #include files; - remove unneeded variable initialization; - re-order fcns slightly so prefs_reg_handoff...() at end, etc svn path=/trunk/; revision=44438
2012-05-15Remove unneeded #includes (stdlib, stdio, ctypes, time);Bill Meier1-2/+0
In a few cases: do some whitespace, indentation cleanup & reformatting. svn path=/trunk/; revision=42632
2012-04-13Remove doubled semicolons and semicolons outside function.Jakub Zawadzki1-1/+1
svn path=/trunk/; revision=42053
2011-10-21For proto_tree_add_item(..., proto_xxx, ...)use ENC_NA as the encoding arg.Bill Meier1-1/+1
Also: remove trailing whitespace for a number of files. svn path=/trunk/; revision=39503
2011-10-20Use ENC_NA as proto_tree_add_item() encoding arg for FT_ETHER hf[] field type.Bill Meier1-40/+40
(Some minor whitespace cleanup). svn path=/trunk/; revision=39488
2011-10-15Convert proto_tree_add_item() 'encoding' arg for field types FT_STRING, ↵Bill Meier1-3/+3
FT_STRINGZ, FT_UINT_STRING as follows: 1. If there's no character encoding (ENC_ASCII, ...) specified then use ENC_ASCII. 2. For all but FT_UINT_STRING, always use ENC_NA (replacing any existing True/1/FALSE/0 /ENC_BIG_ENDIAN/ENC_LITTLE_ENDIAN). svn path=/trunk/; revision=39426
2011-10-04Use ENC_NA as encoding for proto_tree_add_item() calls which directly ↵Bill Meier1-19/+19
reference an hf item (in hf[] with types: FT_NONE FT_BYTES FT_IPV6 FT_IPXNET FT_OID Note: Encoding field set to ENC_NA only if the field was previously TRUE|FALSE|ENC_LITTLE_ENDIAN|ENC_BIG_ENDIAN svn path=/trunk/; revision=39260
2011-08-26Replace TRUE/FALSE with the new ENCAP stuff where appropriateJörg Mayer1-282/+282
svn path=/trunk/; revision=38746
2011-05-26From Michael Mann.Anders Broman1-9/+9
Part of "display filters with redundancies of PROTABBREV in them." The ones left outs should be fixed differently I think. Rename som ndps hf variables while at it. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2794 svn path=/trunk/; revision=37406
2010-12-20Rename the routines that handle dissector tables with unsigned integerGuy Harris1-3/+3
keys to have _uint in their names, to match the routines that handle dissector tables with string keys. (Using _port can confuse people into thinking they're intended solely for use with TCP/UDP/etc. ports when, in fact, they work better for things such as Ethernet types, where the binding of particular values to particular protocols are a lot stronger.) svn path=/trunk/; revision=35224
2010-09-24(Refining the regexp...) Replace blurbs that match the name (case ↵Jeff Morriss1-10/+10
insensitive) with NULL. svn path=/trunk/; revision=34230
2010-09-23Replace blurbs that match the name (case insensitive) with NULL.Jeff Morriss1-90/+90
svn path=/trunk/; revision=34227
2010-04-06#include <string.h> not needed.Bill Meier1-1/+0
svn path=/trunk/; revision=32410
2010-04-03Remove unneeded #include <stdio.h>Bill Meier1-1/+0
svn path=/trunk/; revision=32367
2009-08-09Don't guard col_set_str (COL_PROTOCOL) with col_checkKovarththanan Rajaratnam1-2/+1
svn path=/trunk/; revision=29340
2009-07-30Remove more unused variables.Gerald Combs1-8/+2
svn path=/trunk/; revision=29249
2009-06-19From Kovarththanan Rajaratnam via bug 3548:Stig Bjørlykke1-97/+97
More header_field_info cleanup. svn path=/trunk/; revision=28772
2009-06-18From Kovarththanan Rajaratnam via bug 3548:Stig Bjørlykke1-1/+1
(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-05-31Change my e-mail addressStephen Fisher1-1/+1
svn path=/trunk/; revision=28537
2009-05-16Jochen Bartl <jochen.bartl@gmail.com>Jörg Mayer1-16/+267
via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2824 I have added the SCM header to the wlccp dissector. This header is present in packets of base message type 0x01. You can find the specification in the following document, when you search for "The table below shows the fields for an SCM Advertisement Reply Message.": http://www.freepatentsonline.com/y2005/0220054.html It seems like the header structure in the document is wrong regarding the "SCM Node ID" (MAC address) field. From looking at the hexdumps I found out that the node id shows up in the header before the "Instance Age" field. There is also a 2 byte field between the node id and the instance age, which is always zero. I have named this field wlccp.scm_unknown_short, because I don't know what it is for. Me: Fix two bugs that came up during testing but were present before the patch, both involving wrong length handling triggering dissector assert and malformed packet messages. svn path=/trunk/; revision=28376
2008-11-08Make sure we always increment our offset. Fixes an infinite loop.Gerald Combs1-17/+18
svn path=/trunk/; revision=26734
2008-09-26Minor cleanup related to proto_register and proto_reg_handoffBill Meier1-21/+6
svn path=/trunk/; revision=26281
2008-08-25#include <prefs.h> not req'dBill Meier1-1/+0
svn path=/trunk/; revision=26089
2007-12-14Warning fixes: function declaration isn’t a prototypeJörg Mayer1-4/+4
svn path=/trunk/; revision=23862
2007-07-17From Kevin A. Noll via private bug #1683:Stephen Fisher1-156/+3448
This is a major re-write of the WLCCP version 0xc1 dissector. It now is able to dissect many more WLCCP message types and the TLVs that may be included in a message. Placeholders are left for message types and TLV types that we do not currently have enough data to engineer a dissector. svn path=/trunk/; revision=22330
2007-04-13From Kevin A. Noll via bug 1522:Jeff Morriss1-28/+46
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1522 Support for WLCCP version 0xC1. Also updated his email address in AUTHORS. svn path=/trunk/; revision=21404
2006-12-09Change a match_strval() to val_to_str() in a col_add_fstr() call to preventStephen Fisher1-2/+2
problems if there isn't a match (corrupted packet). svn path=/trunk/; revision=20077
2006-10-23From Stephen Fisher:Jaap Keuter1-4/+6
Here is a patch to make a few small fixes to packet-wlccp.c: svn path=/trunk/; revision=19661
2006-10-18llc_add_oui() wants a pointer, not a pointer pointerUlf Lamping1-1/+1
svn path=/trunk/; revision=19585
2006-10-17Stephen Fisher:Jörg Mayer1-101/+458
Please apply the attached patch to improve the WLCCP dissector. I have also finished merging in packet-cisco-wireless.c, so it can be deleted. svn path=/trunk/; revision=19572
2006-10-07Stephen Fisher:Jörg Mayer1-0/+247
packet-cisco-wireless.c is actually trying to dissect WLCCP: I have attached a dissector I wrote from scratch for the frames that I'm seeing. It has #defines for the field offsets and lengths so it should be easier to merge. I also attached a sample capture with one of the frames that I'm seeing. There are more fields in the frame I haven't yet figured out, hopefully your dissector has those that I'm missing. Me: - Commented in wlccp over udp as well, it works most of the time. - Leave the file packet-cisco-wireless.c in for the time being to copy over knowledge until no usable info is left in the file. svn path=/trunk/; revision=19447