aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-lmp.c
AgeCommit message (Collapse)AuthorFilesLines
2012-08-10Use val_to_str_const() where appropriate;Bill Meier1-1/+1
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-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-05-19Fix RVALS() macro usagepascal1-5/+5
svn path=/trunk/; revision=42720
2011-10-26Fix some proto_tree_add_item() encoding args.Bill Meier1-9/+9
svn path=/trunk/; revision=39613
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-19Fix several benign instances wherein proto_tree_add_[uint|boolean]() was ↵Bill Meier1-1/+1
intended rather than proto_tree_add_item(). svn path=/trunk/; revision=39475
2011-10-19More conversions of proto_tree_add_item() 'encoding' argBill Meier1-29/+29
svn path=/trunk/; revision=39467
2011-08-08Remove unneeded #includes: proto.h,tvbuff.h,value_string.h,stdlib.h,...Bill Meier1-3/+0
svn path=/trunk/; revision=38413
2011-03-27Added some missing breaks.Stig Bjørlykke1-0/+2
Coverity 462 & 463. svn path=/trunk/; revision=36362
2011-01-14Replace ip_to_str((tvb_get_ptr(...)) with tvb_ip_to_str().Jeff Morriss1-298/+288
Replace ip6_to_str((tvb_get_ptr(...)) with tvb_ip6_to_str(). There's no need to pass the result of tvb_get_ptr() as the 'value' in proto_tree_add_*(): just use proto_tree_add_item(). Replace some tvb_get_ptr()s with tvb_get_ephemeral_string()s. Replace some memcpy()+tvb_get_ptr() with tvb_memcpy(). svn path=/trunk/; revision=35529
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-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-2/+0
svn path=/trunk/; revision=32367
2009-10-27From Francesco Fondelli:Anders Broman1-306/+305
RSVP extensions for G.709 Optical Transport Networks Control, RFC 4328 https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4148 With some changes from me: -(readme.developer:" Furthermore, 'display' field must be ORed with 'BASE_RANGE_STRING' (e.g. BASE_DEC|BASE_RANGE_STRING)." - Prefix headerfields with hf_ - Remove check_col svn path=/trunk/; revision=30727
2009-10-02From Francesco Fondelli:Jaap Keuter1-21/+30
Back in August 2002 the check-sum field was removed from the LMP specification (draft-ietf-ccamp-lmp-05). This patch aligns packet-lmp.c dissector with RFC 4204. svn path=/trunk/; revision=30244
2009-08-09Don't guard col_clear with col_checkKovarththanan Rajaratnam1-2/+1
svn path=/trunk/; revision=29344
2009-08-09Don't guard col_set_str (COL_PROTOCOL) with col_checkKovarththanan Rajaratnam1-2/+1
svn path=/trunk/; revision=29340
2009-06-22From Kovarththanan Rajaratnam:Stig Bjørlykke1-177/+177
More header field info cleanup in plugins/* and epan/dissectors/* svn path=/trunk/; revision=28811
2009-06-22From Kovarththanan Rajaratnam:Stig Bjørlykke1-645/+645
Move header field info declarations into function scope. This is the first step. Another patch will be submitted which actually scrubs the header field info declarations (remove empty blurbs, etc.) svn path=/trunk/; revision=28797
2008-10-31Fix some "format not a string literal and no format arguments" warnings.Stig Bjørlykke1-4/+4
svn path=/trunk/; revision=26647
2008-08-14Use const with value_string array definitionsBill Meier1-2/+2
svn path=/trunk/; revision=26028
2008-05-14Fix some of the Errors/warnings detected by checkapi.Bill Meier1-2/+5
svn path=/trunk/; revision=25290
2008-04-15From Roberto Morro:Jaap Keuter1-12/+619
Added support for RFC4207 (SONET/SDH encoding for LMP test messages); added support for (provisional) oif-p0040.010.006 (OIF interoperability demo during ECOC2007). svn path=/trunk/; revision=25038
2006-05-21change a whole bunch of ethereal into wiresharkRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18196
2006-04-20From Hannes Gredler:Jaap Keuter1-9/+9
attached a patch to display LMP bandwith values in Mbps format rather than the Byte/s format which is IMO a bit awkward to read. svn path=/trunk/; revision=17923
2005-09-17Move a pile of protocol-related headers from the top-level sourceGuy Harris1-1/+1
directory to the epan directory. Some of them should perhaps ultimately be moved to epan/dissectors, if they pertain only to stuff exported by a particular dissector. Fix Gerald's e-mail address in files we're moving. svn path=/trunk/; revision=15844
2005-07-09Squelch various signed vs. unsigned warnings by:Guy Harris1-2/+2
making pointers to byte data be "guint8 *" rather than "char *", and making buffers holding byte data arrays of "guint8" rather than arrays of "char"; making pointers to text strings "char *" rather than "guchar *"; appropriately casting pointers (cast to "guint8 *" when passing to routines expecting "guint8 *" or when assigning to "guint8 *"); making port-number preferences "guint"; making enum preferences "gint"; making hf_ variables "int". Clean up white space. svn path=/trunk/; revision=14884
2005-07-08checksum messages: use "[correct]" instead of "(correct)" and other "alike" ↵Ulf Lamping1-2/+2
messages svn path=/trunk/; revision=14880
2005-06-26Get rid of the private "my_match_strval()" routine in many dissectors;Guy Harris1-1/+1
add a "match_strval_idx()" routine that does the same thing, and have "match_strval()" call it. Make those routines, and "val_to_str()", return a "const" pointer. Update dissectors as necessary to squelch compiler warnings produced by that. Use "val_to_str()" rather than using "match_strval()" and then, if the result is null, substituting a specific string. Clean up some other "match_strval()"/"val_to_str()" usages. Add a null pointer check in the NDPS dissector's "attribute_value()" routine, as it's not clear that "global_attribute_name" won't be null at that point. Make some global variables in the AFS4INT dissector local. Make some routines not used outside the module they're in static. Make some tables "static const". Clean up white space. Fix Gerald's address in some files. svn path=/trunk/; revision=14786
2005-06-21terminate some value_strings properly with a {0,NULL}Ronnie Sahlberg1-0/+6
svn path=/trunk/; revision=14721
2005-06-16Register "version" as an obsolete preference, so it's silently ignored,Guy Harris1-0/+2
rather than provoking a warning. svn path=/trunk/; revision=14657
2005-06-15Fix a couple of infinite loops found by Buildbot. Were the recentGerald Combs1-0/+4
changes to this dissector fuzz tested at all? svn path=/trunk/; revision=14636
2005-06-04fix #225-#231: the enum lmp_filter_keys contained holes, so the logic to ↵Ulf Lamping1-1/+4
detect the field type failed, resulting in the bug svn path=/trunk/; revision=14552
2005-06-02Updated LMP to handle the latest protocol. Removed old protocol valuesAshok Narayanan1-1513/+1263
since they are no longer useful. Manu Pathak <mapathak@cisco.com> contributed these changes svn path=/trunk/; revision=14533
2005-03-23Audit for TLV loops that don't check the length to make sure it's largeGuy Harris1-23/+37
enough, and fix them - and handle the already-fixed case similarly (note that the length is bogus, and break out of the loop). Put object header items into the protocol tree in the order in which they appear in the packet. For unknown subobjects, make the "Data (N bytes)" item cover only the data, not the header (which is already covered). Fix the offset in some calls. svn path=/trunk/; revision=13879
2005-03-23buildbot reported bug fixed: prevent an endless loopUlf Lamping1-1/+6
But what's the right way to do instead? Just inserted a return, this should do no harm. Could someone with more knowledge of this dissector review this change? svn path=/trunk/; revision=13878
2004-12-17When the LMP dissector rejects a packet because it {is, isn't} UDP, letGuy Harris1-12/+22
some other dissector have it. svn path=/trunk/; revision=12766
2004-09-29Move various tables into the epan directory.Guy Harris1-1/+1
svn path=/trunk/; revision=12130
2004-09-28Move various checksum routines and headers to epan.Guy Harris1-1/+1
svn path=/trunk/; revision=12117
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-0/+2306
Also move ncp222.py, x11-fields, process-x11-fields.pl, make-reg-dotc, and make-reg-dotc.py. Adjust #include lines in files that include packet-*.h files. svn path=/trunk/; revision=11410