aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-cops.c
AgeCommit message (Collapse)AuthorFilesLines
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
2007-03-16Turn an error that I've encountered into an easily findable expert item.martinm1-2/+8
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21036 f5534014-38df-0310-8fa8-9805f1628bb7
2007-01-26Use previously unused hf_cops_obj_c_type (cops.c_type) fieldmartinm1-1/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20566 f5534014-38df-0310-8fa8-9805f1628bb7
2007-01-26Make COPS dissector findable by namemartinm1-0/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20564 f5534014-38df-0310-8fa8-9805f1628bb7
2007-01-10move asn1.c/.h files into plugins/asn1 directory as just this plugin uses it nowkukosa1-3/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20372 f5534014-38df-0310-8fa8-9805f1628bb7
2006-12-08Get rid of UCD SNMP support (it's not longer supported andjmayer1-11/+0
superseeded by net-snmp). Replace some_snmp by net_snmp where appropriate. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20071 f5534014-38df-0310-8fa8-9805f1628bb7
2006-11-14nikai@nikai.net:jmayer1-1/+0
Remaining fixes from: http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1225 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19895 f5534014-38df-0310-8fa8-9805f1628bb7
2006-10-31change the signature for the get_pdu_len() function pointer passed to ↵sahlberg1-2/+2
tcp_dissect_pdus() to also include a packet_info pointer. there are many reasons why some protocols actually need to be able to access the pinfo structure while determining the pdu size git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19751 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-21change a whole bunch of ethereal into wiresharksahlberg1-4/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18196 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-09The AMID type and tag are two bytes, not four. The PSID should be showngerald1-5/+5
in decimal, not hex. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18116 f5534014-38df-0310-8fa8-9805f1628bb7