aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-lwm.c
AgeCommit message (Collapse)AuthorFilesLines
2014-01-31Fix Dead Store (Dead assignement/Dead increment) warning found by ClangAlexis La Goutte1-1/+0
Change-Id: Id7bab3a69514f159eda8d1285ca7f8f2d42e34ad Reviewed-on: https://code.wireshark.org/review/61 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2014-01-24Mark a few function parameters as unused....Bill Meier1-3/+3
svn path=/trunk/; revision=54950
2014-01-24Rework and simplify the code to follow the principle of "dissect asBill Meier1-381/+258
much as possible" rather than dissecting nothing if the length of a set of fields (e.g., a "command") seems wrong or if an exception occurs fetching data before previous fields have been displayed. In general: just fetch/dissect from start to end: If there is missing data, a Wireshark exception will eventually occur; Add lwm subtrees under the lwm protocol tree (*not* as protocols under the top (outermost) tree. Fix a bug which caused an exception to be reported as: "[Packet size limited during capture: LwMesh truncated]" rather than as the correct: "[Malformed...]" col_...() and expert...() functions shouldn't be called under 'if(tree)'; Register the heuristic dissector using "IEEE802154_PROTOABBREV_WPAN" (like certain other dissectors) rather than using "wpan"; missmatch --> mismatch Fix some long lines. svn path=/trunk/; revision=54949
2014-01-23Please GCC 4.3.2 that complains about a wrong 'variable may be used ↵Pascal Quantin1-2/+2
uninitialized in this function' error svn path=/trunk/; revision=54927
2014-01-21- Remove unneeded #includes;Bill Meier1-69/+53
- "Once-only" test not needed in proto_reg_handoff..(); - Set COL_PROTOCOL, clear COL_INFO at the begining of the dissector before fetching data from the tvb; - Use tvb_reported_length; - Use col_set_str/col_append_str where appropriate; - Zigbee --> lwm; - Fix typo; - Reformat some whitespace for consistency. ToDo: - Review use of col_...() and expert...() under 'if (tree)'; - Review use of col_clear(..., COL_INFO) after text already added to COL_INFO; - Review certain tvb fetches to ensure no fetches using a negative offset; svn path=/trunk/; revision=54871
2014-01-21Add properties ....Bill Meier1-1/+1
svn path=/trunk/; revision=54869
2014-01-20From Lubos via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9638Alexis La Goutte1-0/+977
New Dissector For Lightweight Mesh protocol A dissector for ATMEL Lightweight Mesh protocol (lwm). The protocol is carried on the top of 802.15.4 frame. From me: * Add Modelines info * Fix indent (use 4 spaces) * Remove trailing whitespace svn path=/trunk/; revision=54856