aboutsummaryrefslogtreecommitdiffstats
path: root/epan/oids.c
AgeCommit message (Collapse)AuthorFilesLines
2011-04-25Cast away some clang errors about cast alignments that appear safe. sfisher1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36848 f5534014-38df-0310-8fa8-9805f1628bb7
2011-04-25Fix clang error ("increases requird alignment from 1 to 8") by removingsfisher1-1/+1
unnecessary VALS() cast git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36847 f5534014-38df-0310-8fa8-9805f1628bb7
2011-03-21Corrected decoding of oid values with length 5.stig1-5/+5
This fixes coverity 340. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36230 f5534014-38df-0310-8fa8-9805f1628bb7
2011-01-20Allow presentation of Gauge32 values larger than 0x7FFFFFFF.jake1-6/+13
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35599 f5534014-38df-0310-8fa8-9805f1628bb7
2010-10-29Make the third argument to a UAT copy callback a size_t (not that any ofguy1-1/+1
the callbacks we have use that argument - is it really needed?). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34694 f5534014-38df-0310-8fa8-9805f1628bb7
2010-09-29Fix the libsmi workaround by adding missing brackets.rbalint1-2/+2
From Grzegorz Głowacki <g.glowacki@wasko.pl> git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34280 f5534014-38df-0310-8fa8-9805f1628bb7
2010-03-17Fix crash when opening About box with disabled OID resolution.rbalint1-0/+5
Thanks to Hilko Bengen for the detailed bug report at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=574086 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32217 f5534014-38df-0310-8fa8-9805f1628bb7
2010-03-07Use strtok_s on windows and strtok_r otherwise.etxrab1-2/+7
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32138 f5534014-38df-0310-8fa8-9805f1628bb7
2010-03-04From LEGO via bug 3459:stig1-0/+2
Add a callback to UAT to be called after the table has being updated, use it to renew the snmp_ue_cache. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32112 f5534014-38df-0310-8fa8-9805f1628bb7
2010-03-03Disable OID resolution and loading SMI modules by default.rbalint1-9/+44
Add an option to enable OID resolution. Add an option to suppress errors reported by libsmi. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32096 f5534014-38df-0310-8fa8-9805f1628bb7
2010-02-27Constify.guy1-0/+12
Don't have variables that point to string constants, just make the string constants be static const arrays. strlen(array of unspecified size initialized with a string) == sizeof array - 1; the latter can be computed at compile time. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32020 f5534014-38df-0310-8fa8-9805f1628bb7
2009-12-24Add NULL pointer checks. Fixes the fuzz crash in bug 4351.gerald1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31362 f5534014-38df-0310-8fa8-9805f1628bb7
2009-12-12Suggest solutions on the missing MIBs popup window.rbalint1-1/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31247 f5534014-38df-0310-8fa8-9805f1628bb7
2009-11-23Add /usr/share/snmp/mibs to MIB search path on !Win32 platforms, not just on ↵rbalint1-2/+0
Apple. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31052 f5534014-38df-0310-8fa8-9805f1628bb7
2009-11-13On OS X, prepend /usr/share/snmp/mibs to the SMI path. Partial fix forgerald1-6/+9
bug 3163. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30951 f5534014-38df-0310-8fa8-9805f1628bb7
2009-10-18Made some functions static.stig1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30600 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-29Removed unused variable 'bytes' in oid_subid2encoded.stig1-2/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30196 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-29Ensure we don't dereference a null pointer.stig1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30187 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-08From Kovarththanan Rajaratnam:stig1-4/+6
Avoid duplicate blurb/name. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29014 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-24From Kovarththanan Rajaratnam:stig1-2/+2
More hf_register_info related cleanup. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28832 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-17Use smiFree for libsmi >= v 0.4.8; Also: sprintf->g_snprintfwmeier1-15/+15
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27753 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-13From Jakub Zawadzki (bug 3331):stig1-1/+1
g_free() is NULL safe, so we don't need check against it. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27718 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-07Use UAT_FLD_PATHNAME for paths.stig1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27643 f5534014-38df-0310-8fa8-9805f1628bb7
2009-02-16Add an additional "title" attribute for UAT fields; that's what'sguy1-2/+2
displayed to the user. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27462 f5534014-38df-0310-8fa8-9805f1628bb7
2008-11-10From Paul Stath:etxrab1-1/+1
Dissector fails for OIDs with MacAddress in index. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26746 f5534014-38df-0310-8fa8-9805f1628bb7
2008-09-02Fix a few Emacs "file variables" to have "safe" values.wmeier1-1/+1
That is: indent-tabs-mode: tabs --> indent-tabs-mode: t Also: fix a typo: set-tabs-mode --> indent-tabs-mode git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26113 f5534014-38df-0310-8fa8-9805f1628bb7
2008-08-05luis.ontanon@gmail.com => luis@ontanon.orglego1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25937 f5534014-38df-0310-8fa8-9805f1628bb7
2008-05-05Fix some of the Errors/warnings detected by checkapi,etxrab1-5/+5
make non ASCII char a warning for now. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25240 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-22Fix Dissector bug, protocol SNMP: proto.c:932: failed assertionetxrab1-1/+1
From LEGO: DISSECTOR_ASSERT_NOT_REACHED() is a Bug regardless, it is triggered because we are proto_add_item()ing an FT_UINT32 of 5 bytes in length. IF-MIB:ifInOctets is a Counter32 so the value should (and is) application encoded using tag 41. the value's value (!) is H'00d49e69fa (D'3567151610). the assertion is triggered because there's an error in oids.c:59 where states the ft_type as being an FT_UINT32 with a length of 1 to 4 bytes, It should be FT_UINT64 and the length from 1 to 5 bytes considering that integers bigger than 2^31 will be ber encoded in 5 bytes. http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2468 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25148 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-21TimeTicks ::= [APPLICATION 3] IMPLICIT INTEGER (0..4294967295)etxrab1-1/+6
If the BER encoding should not have the top bit set as to not become a negative number the ber encoding may take 5 octets to encode. Fixes BUG: http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2253 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25135 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-21TimeStamp are derived from timeticks_type (See SNMPv2-TC).etxrab1-1/+1
Fixes Bug: http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2442 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25134 f5534014-38df-0310-8fa8-9805f1628bb7
2008-03-19Windows: use free() only if vc6 (as suggested by Peter Johansson);wmeier1-16/+30
Thus standard Windows Wireshark release will not have memory leak here. Assumption: Wireshark Windows libsmi.dll built with vc6. This solution is temporary. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24702 f5534014-38df-0310-8fa8-9805f1628bb7
2008-03-19Avoid calling some free() on WIN32 on memory that may be allocated instig1-0/+12
another heap. This is a temporary solution. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24693 f5534014-38df-0310-8fa8-9805f1628bb7
2008-03-17oid_get_default_mib_path() is present in libwireshark.def. Make sure it'sgerald1-3/+5
available even if HAVE_LIBSMI isn't defined. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24667 f5534014-38df-0310-8fa8-9805f1628bb7
2008-03-06Added an option to uat_new() to set if configuration shall be saved in thestig1-0/+2
selected profile. Don't save SMI Paths and SMI Modules in the profiles because reloading currently doesn't work (bug 2309). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24580 f5534014-38df-0310-8fa8-9805f1628bb7
2008-03-06Added yet another free().stig1-0/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24576 f5534014-38df-0310-8fa8-9805f1628bb7
2008-03-05Free return value from smiRenderType, smiRenderOID, smiGetPath,stig1-25/+38
get_datafile_path and get_persconffile_path. This was reported by Valgrind. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24569 f5534014-38df-0310-8fa8-9805f1628bb7
2008-01-30Add Luis' uat_get_table_by_name() to fetch SMI uat tables.stig1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24229 f5534014-38df-0310-8fa8-9805f1628bb7
2008-01-18Move libsmi settings from virtual mibs protocol page to name resolution page.jake1-14/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24131 f5534014-38df-0310-8fa8-9805f1628bb7
2008-01-14This patch adds support for configuration profiles, which can be used tostig1-1/+1
configure and use more than one set of preferences and configuration files. This can be found in the "Configuration Profiles..." menu item from the Edit menu, or by pressing Shift-Ctrl-A. It's also possible to start wireshark and tshark with a named profile by using the "-C ProfileName" option. A new status pane in the main window will show the current profile. The configuration files currently stored in the Profiles are: - Preferences - Capture Filters - Display Filters - Coloring Rules - Disabled Protocols - User Accessible Tables The recent data are by design not added to the profile. Planned future enhancements: - make a more convenient function to switch between profiles - add a "clone profile" button to copy an existing profile - make the profiles list active and accept return as OK - save users "Decode as" in the profile - make new, clone and deletion of profiles more secure - make some of the recent values available in the profile This patch also fixes: - setting default status pane sizes - a bug setting status pane for packets when not having main lower pane. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24089 f5534014-38df-0310-8fa8-9805f1628bb7
2007-12-11Don't free memory that we're going to use later.gerald1-1/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23841 f5534014-38df-0310-8fa8-9805f1628bb7
2007-12-07Fix a typo.gerald1-2/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23793 f5534014-38df-0310-8fa8-9805f1628bb7
2007-12-04Only define oid_get_default_mib_path() if we have libsmi.guy1-1/+3
Explicitly mark it as having no arguments. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23754 f5534014-38df-0310-8fa8-9805f1628bb7
2007-12-04Add an oid_get_default_mib_path() function, and use it to display the MIBgerald1-152/+181
path in About->Folders. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23753 f5534014-38df-0310-8fa8-9805f1628bb7
2007-09-13Given the opportunity I check in the changes to snmp I got in this machine.lego1-18/+14
- 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-28- turn some other TC from FT_BYTES to FT_STRING so that human-readable ↵lego1-4/+9
strings become readable by humans - Add the EngineId decoding for the contextEngineId - Add some expert info about malformed indexed oids git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22720 f5534014-38df-0310-8fa8-9805f1628bb7
2007-08-28Report loading failures to the userlego1-2/+25
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22712 f5534014-38df-0310-8fa8-9805f1628bb7
2007-08-28SNMP:lego1-2/+4
- As noted by Thomas Anders values are not added to the tree anymore. Move the calling of subdissectors to the end of the function, so that the value is added to the tree. - add port 8161 to be decoded as SNMP (hey, it's on IANA's services file!) UAT: - do not have the uat reloaded. OIDS: - do not complain if renaming an OID to an identical name git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22704 f5534014-38df-0310-8fa8-9805f1628bb7
2007-08-28Fix warnings "dereferencing type-punned pointer will break strict-aliasing ↵jake1-8/+8
rules" git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22699 f5534014-38df-0310-8fa8-9805f1628bb7
2007-08-27Do not throw, some of this functions get called outside TRY blocks.lego1-11/+21
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22692 f5534014-38df-0310-8fa8-9805f1628bb7