aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dect.c
AgeCommit message (Collapse)AuthorFilesLines
2011-06-20Fix some gcc 4.6 "set but not used [-Wunused-but-set-variable]" warnings;wmeier1-5/+5
(Code commented out since it may be required in the future (at least in some cases). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37723 f5534014-38df-0310-8fa8-9805f1628bb7
2011-05-23From Romain Fliedel via bug 5947: Fix the mask for extracting FMID.cmaynard1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37370 f5534014-38df-0310-8fa8-9805f1628bb7
2011-05-23Use correct subtree in a few cases: Fixes Coverity 921,894,878 & 1136;wmeier1-7/+10
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37361 f5534014-38df-0310-8fa8-9805f1628bb7
2011-02-01Further restructure the DECT dissector:jake1-188/+247
- Refactor capture info, A field, B field dissection. - Clean up dissection, removing private A field, B field structures. - Added standard references. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35743 f5534014-38df-0310-8fa8-9805f1628bb7
2010-12-20Rename the routines that handle dissector tables with unsigned integerguy1-1/+1
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.) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35224 f5534014-38df-0310-8fa8-9805f1628bb7
2010-07-07Fix a buffer overflow found by recent randpkt testing. Replace raw datagerald1-18/+22
pointer access with tvb_memcpy() and tvb_get_ntohs(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33470 f5534014-38df-0310-8fa8-9805f1628bb7
2010-06-11Andreas Schuler <andreas (A) schulerdev.de>jmayer1-157/+253
Updates to the DECT dissector: - using proto_tree_add_none_format()/proto_tree_add_item() instead of proto_tree_add_uint_format() where it makes sense - fixed display of full slot data - added some references to documentation - cleaned up packet length checking - put descrambled bfield-data in a tree - cleaned up some afield items - use custom columns instead adding all infos to COL_INFO - add some more infos to the columns Me: - Replace proto_tree_add_none_format(..., strvar) by proto_tree_add_none_format(..., "%s", strvar). - Fix an unused variable warning. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33210 f5534014-38df-0310-8fa8-9805f1628bb7
2010-02-18Cleanup of DECT dissector INFO column.etxrab1-30/+29
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4502 - remove check_col() git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31913 f5534014-38df-0310-8fa8-9805f1628bb7
2010-01-13From Didier Gautheron:etxrab1-80/+36
check_col.diff Remove redundant calls to check_col() if it guards only one columns function with one parameter after the column type. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4394 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31519 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-17setbit() is (AFAIK) defined in <sys/param.h> (OpenBSD) so rename to ↵krj1-3/+3
dect_setbit() to avoid clash. getbit() is also renamed for consistency. Fixes the issue reported by Stan: http://www.wireshark.org/lists/wireshark-users/200908/msg00128.html git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29456 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-09Don't guard col_clear with col_checkkrj1-4/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29346 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-09Don't guard col_set_str (COL_INFO/COL_PROTOCOL) with col_checkkrj1-16/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29345 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-09Don't guard col_set_str (COL_INFO) with col_checkkrj1-10/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29342 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-09Don't guard col_set_str (COL_PROTOCOL) with col_checkkrj1-2/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29340 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-22Fix warning: always evaluates to true/falsejmayer1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28805 f5534014-38df-0310-8fa8-9805f1628bb7
2009-04-09Fix a typo.etxrab1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28023 f5534014-38df-0310-8fa8-9805f1628bb7
2009-04-09Starting cleanup in earnestjmayer1-157/+165
- get rid of some structure accesses - use _item functions where possible git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28022 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-30Andreas Schuler:jmayer1-83/+788
add framenumber, extended fixed part capabilities and higher layer capabilities Me; - replace div by crc to fix a shadowed global variable - the last argument to proto_tree_add_item is the endianess indicator, not the value - replace // by /* */ git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27904 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-28Don't use sprintf() - use ep_strbufs and ep_strbuf_append_printf()guy1-12/+19
instead. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27876 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-24Andreas Schulerjmayer1-10/+11
Fix display problems with b-fields: increase the length of the string and use sprintf. Original German comment: weiter hab ich festgestellt das das b-field nicht richtig dargestellt wird . Entweder ist g_snprintf broken , oder wir sind beide zu unf\344hig die funktion zu benutzen . Der string wird aus 16x %.2x + leerzeichen zusammengesetzt , was nach meinen berechnungen eine h\366chstl\344nge von 144 zeichen + nullbyte ergibt . deshalb hab ich die stringvariable auf 145 hochgesetzt und benutze wieder sprintf . hier der patch dazu . git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27844 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-24Andreas Schulerjmayer1-26/+65
small fix: In a PP packet TA=7 gets dissected as Paging tail. In case of PP it is really an Mt . git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27843 f5534014-38df-0310-8fa8-9805f1628bb7
2009-02-11Whitespace changes, missed a comment in Germanjmayer1-713/+713
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27422 f5534014-38df-0310-8fa8-9805f1628bb7
2009-02-05Replace remaining usage of sprintf ...wmeier1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27382 f5534014-38df-0310-8fa8-9805f1628bb7
2009-02-05Don't convert a const to a non-constjmayer1-5/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27374 f5534014-38df-0310-8fa8-9805f1628bb7
2009-02-05Keep the compiler happy: revert one change....wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27373 f5534014-38df-0310-8fa8-9805f1628bb7
2009-02-05Define most everything as static (fcns & global variables);wmeier1-112/+110
Fix one of the sprintf usages; Use NULL instead of "" for the FIELDDESC in the hf array entries; Minor code cleanup; git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27372 f5534014-38df-0310-8fa8-9805f1628bb7
2009-02-05#include <epan/prefs> not req'd; minor spacing changes;wmeier1-7/+6
next up: replace use of sprintf ..... git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27371 f5534014-38df-0310-8fa8-9805f1628bb7
2009-02-04More whitespace changesjmayer1-542/+310
BOOL -> gboolean _subtree -> _ett (not because it's better but because it's what's used (almost) everywhere else git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27370 f5534014-38df-0310-8fa8-9805f1628bb7
2009-02-04Small whitespace changesjmayer1-549/+545
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27369 f5534014-38df-0310-8fa8-9805f1628bb7
2009-02-04One very minor reg_handoff change [static ... not req'd]wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27364 f5534014-38df-0310-8fa8-9805f1628bb7
2009-02-03Fix some errors I either missed or introduced:jmayer1-87/+92
- missing {0, NULL} at the end of a val array - incorrect registration Small formatting changes. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27363 f5534014-38df-0310-8fa8-9805f1628bb7
2009-02-03Andreas Schuler <krater (A) badterrorist.com>jmayer1-0/+1960
Matthias Wenzel <dect (A) mazzoo.de> Beginnings of a DECT dissector. This is a copy of the svn repository at dedected.org with the following modifications: - Change from plugin to normal dissector - Change comments from // to /* */ - Change German comments to English - #if-0-out unused variables - Reorder functions to avoid forward declarations and use the normal Wireshark conventions - Fix the scrt table (as by email from Andreas) - Fix Mask for hf_dect_A_Tail_Qt_0_Cn from 0x2F -> 0x3F (as by email from Matthias) - Initialize some variables because GCC isn't aware of the reduced value space in a switch statement that switches on (var & 7). - Declare some function parameters as _U_ - Add GPLv2 and later header (as by emails from Andreas and Matthias). TODO (roughly in that order) - Don't use structs to access the elements in the datastream. - Use tvb_..._item wherever possible - Add references to documentation (ETSI EN 300 175 parts 1-8) including the section. - Make things stateful - Once the capture format has stabilized, get rid of the Ethernet hack and use a proper capture type. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27362 f5534014-38df-0310-8fa8-9805f1628bb7