aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-cops.c
AgeCommit message (Collapse)AuthorFilesLines
2012-08-10Use val_to_str_const() where appropriate;wmeier1-21/+21
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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@44438 f5534014-38df-0310-8fa8-9805f1628bb7
2012-07-15Be sure to assign the return value of tvb_length_remaining() to a signed ↵cmaynard1-3/+7
integer and not an unsigned integer, and then check that value is > 0. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43720 f5534014-38df-0310-8fa8-9805f1628bb7
2012-07-11Don't call col_...() and expert...() functions under 'if (tree)'wmeier1-40/+37
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43672 f5534014-38df-0310-8fa8-9805f1628bb7
2012-06-28Update Free Software Foundation address.darkjames1-1/+1
(COPYING will be updated in next commit) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43536 f5534014-38df-0310-8fa8-9805f1628bb7
2012-06-20Use separate filters for the RTT found on a SACK and the RTT found on amorriss1-59/+136
DATA chunk: having them in both places is helpful when looking at the messages but having them separate is helpful when graphing the RTTs. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43406 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-27Fix a typo.wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39632 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-21For proto_tree_add_item(..., proto_xxx, ...)use ENC_NA as the encoding arg.wmeier1-1/+1
Also: remove trailing whitespace for a number of files. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39503 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-15Convert proto_tree_add_item() 'encoding' arg for field types FT_STRING, ↵wmeier1-2/+2
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). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39426 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-06Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵wmeier1-11/+11
non-autogenerated epan/dissectors: Specifically: Replace FALSE|0 and TRUE|1 by ENC_BIG_ENDIAN|ENC_LITTLE_ENDIAN as the encoding parameter for proto_tree_add_item() calls which directly reference an item in hf[] which has a type of: FT_UINT8 FT_UINT16 FT_UINT24 FT_UINT32 FT_UINT64 FT_INT8 FT_INT16 FT_INT24 FT_INT32 FT_INT64 FT_FLOAT FT_DOUBLE git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39288 f5534014-38df-0310-8fa8-9805f1628bb7
2011-04-21Remove some unneeded #includes;wmeier1-2523/+2519
Correct some typos; Use consistent indentation & do some whitespace cleanup. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36781 f5534014-38df-0310-8fa8-9805f1628bb7
2011-02-23From Alexis La Goutte:etxrab1-1/+0
Cleanup packet-ipv6.h and dependency. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5713 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36031 f5534014-38df-0310-8fa8-9805f1628bb7
2011-01-16Use tvb_memeql() and tvb_memcpy().morriss1-4/+4
Use tvb_ip_to_str() and 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 to ensure the return string is NULL terminated. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35546 f5534014-38df-0310-8fa8-9805f1628bb7
2010-12-20Rename the routines that handle dissector tables with unsigned integerguy1-4/+4
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-22Corrected length check for I05 Downstream Service.stig1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33615 f5534014-38df-0310-8fa8-9805f1628bb7
2010-07-21Use correct length for I04/I05 Envelope headers.stig1-20/+20
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33606 f5534014-38df-0310-8fa8-9805f1628bb7
2010-07-21Added "Attribute Aggregation Rule Mask" from PKT-SP-MM-I05-091029.stig1-145/+271
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33605 f5534014-38df-0310-8fa8-9805f1628bb7
2010-07-19Removed call to check_col().stig1-14/+7
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33581 f5534014-38df-0310-8fa8-9805f1628bb7
2010-07-19Added SharedResourceID.stig1-5/+30
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33580 f5534014-38df-0310-8fa8-9805f1628bb7
2010-04-03Remove unneeded #include <stdio.h>wmeier1-1/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32367 f5534014-38df-0310-8fa8-9805f1628bb7
2009-10-02From Jared Renzullo:jake1-5/+155
The Cops dissector does not support the IPv6 Classifier object which was added to PCMM in the I04 spec. The object is identified by Snum = 6, Stype = 3. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30250 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-30From Jared Renzullo:jake1-0/+4
The IPv6 SubscriberId object, which was added in the I04 spec, is not supported in the cops dissector for PCMM. It was already supported for DQOS, however. The object is identified by S-num = 3, S-type = 2. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30224 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-20Use tvb_get_ephemeral_string() to avoid memleak.krj1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29990 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-09Don't guard col_clear with col_checkkrj1-2/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29344 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-07-07From Julián Lastiri via bug 3656:stig1-5/+7
ClassifierID should be before Priority field in the Extended Classifier of PacketCable Multimedia Protocol. Also the reference to PacketCable Multimedia document PKT-SP-MM-I02-040930 is wrong because there is no definition about Extended Classifier. My fix is based on PacketCable Multimedia PKT-SP-MM-I04-080522 document. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28969 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-18From Kovarththanan Rajaratnam via bug 3548:stig1-85/+85
(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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28770 f5534014-38df-0310-8fa8-9805f1628bb7
2009-04-30From Jared Renzullo:jake1-15/+31
The Gate Usage Info field was not displaying properly because the dissector code was looking for a 32 bit integer, when the PCMM spec says the field is a 64 bit integer. The UserID field was assuming the string was null terminated, but the string is only null terminated if the original string's length was not a multiple of four. I fixed this by getting the string based on the expected length instead of the null terminator. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28197 f5534014-38df-0310-8fa8-9805f1628bb7
2009-04-21Turn on -Wshorten-64-to-32 by default, and fix some issues that turnedguy1-1/+1
up (99 44/100% of which were assignments of double-precision floating-point constants to floats). Hopefully this will catch at least some P64 issues on UN*X. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28108 f5534014-38df-0310-8fa8-9805f1628bb7
2009-04-16From Jared Renzullo:jake1-10/+1035
The existing Wireshark Cops PCMM dissector does not support the new I04 fields fof PCMM. I've added the new fields which are relevant to the policy server to the dissector. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28066 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-17Fix typos and spelling (mostly in text strings) wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27028 f5534014-38df-0310-8fa8-9805f1628bb7
2008-10-31Fix some "format not a string literal and no format arguments" warnings.stig1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26646 f5534014-38df-0310-8fa8-9805f1628bb7
2008-09-02Cleanup related to prefs & proto_reg_handoffwmeier1-13/+7
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26124 f5534014-38df-0310-8fa8-9805f1628bb7
2008-06-23Renamed some local variables to avoid name collisions.stig1-4/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25565 f5534014-38df-0310-8fa8-9805f1628bb7
2008-03-13Make the SMI preference a little more verbose. In the COPS and SNMPgerald1-0/+4
preferences, tell the user where they can change the SMI settings. In the 802.11 preferences, fix a tooltip. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24620 f5534014-38df-0310-8fa8-9805f1628bb7
2008-02-14Initialize a tvb, so that we don't crash. Fix up whitespace.gerald1-43/+43
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24332 f5534014-38df-0310-8fa8-9805f1628bb7
2008-02-07Removed a break which disabled some code.stig1-3/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24285 f5534014-38df-0310-8fa8-9805f1628bb7
2008-02-03More rewrite of prohibited APIs (sprintf, strcpy, strcat).stig1-5/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24258 f5534014-38df-0310-8fa8-9805f1628bb7
2008-02-02Rewrote some prohibited APIs in epan/dissectors/ (sprintf, strcpy, strcat).stig1-2/+3
If we get some truncated strings we probably overwrote some buffers... git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24249 f5534014-38df-0310-8fa8-9805f1628bb7
2007-11-27Fixes from Sam Leffler:gerald1-2/+2
In capture_sync.c: Don't clobber the DLT value. In packet-cops.c (modified by me): Instead of adding an item as a static, mis-cast FT_UINT16 to the tree, add it as an FT_NONE. In packet-802.11.c: Add the right address to the tree. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23624 f5534014-38df-0310-8fa8-9805f1628bb7
2007-09-13Given the opportunity I check in the changes to snmp I got in this machine.lego1-3/+3
- Indexing (implied and not) is OK now, however indexes for related tables (AUGMENT, EXTEND, etc) are registered many times. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22861 f5534014-38df-0310-8fa8-9805f1628bb7
2007-08-26Remove every remembrance of NET_SNMP from COPSlego1-23/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22678 f5534014-38df-0310-8fa8-9805f1628bb7
2007-08-26De-NET-SNMPize COPSlego1-421/+304
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22673 f5534014-38df-0310-8fa8-9805f1628bb7
2007-08-25get users of oid_resolv to use the new oids, rollout packet-snmp.clego1-4/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22651 f5534014-38df-0310-8fa8-9805f1628bb7
2007-08-24get_ber_length doesn't need the tree argument, get rid of it.jmayer1-1/+1
Rebuild asn1 dissectors. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22627 f5534014-38df-0310-8fa8-9805f1628bb7
2007-05-15actx in the rest of dissect_ber..()letxrab1-4/+9
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21773 f5534014-38df-0310-8fa8-9805f1628bb7
2007-03-30ep_malloc -> ep_alloc !!standel1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21281 f5534014-38df-0310-8fa8-9805f1628bb7
2007-03-30remove some g_malloc/g_freestandel1-2/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21280 f5534014-38df-0310-8fa8-9805f1628bb7
2007-03-28Remove almost all of the casts I committed recently and in place ofsfisher1-4/+4
them, add -Wno-pointer-sign to CFLAGS when gcc will accept it. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21253 f5534014-38df-0310-8fa8-9805f1628bb7
2007-03-27Fix about 100 simple to fix warnings from gcc 4.0 in epan/dissectors sfisher1-4/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21233 f5534014-38df-0310-8fa8-9805f1628bb7
2007-03-26From Sebastien Tandel sahlberg1-7/+7
fixes for various compiler warnings git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21210 f5534014-38df-0310-8fa8-9805f1628bb7