summaryrefslogtreecommitdiff
path: root/epan/oids.c
AgeCommit message (Collapse)AuthorFilesLines
2013-11-17Move the epan/filesystem.c routines to wsutil; they're not specific toGuy Harris1-1/+1
packet dissection, they're specific to the entire Wireshark suite of programs. svn path=/trunk/; revision=53377
2013-10-26Fix several [-Wunused-const-variable] warnings (using '#if 0').Bill Meier1-0/+2
svn path=/trunk/; revision=52866
2013-10-19Add OID unit tests. Bug 9294 ↵Michael Mann1-4/+10
(https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9294) From Ed Beroset svn path=/trunk/; revision=52692
2013-10-16If the length we allocated was 0, don't try and write to the returned pointer.Evan Huus1-5/+9
Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9276 svn path=/trunk/; revision=52655
2013-10-15Fix a length check in the OID code, we add an extra byte if is_first, not theEvan Huus1-1/+3
other way around. Also add an assert so it blows up if we get it wrong, rather than leading to uninitialized memory. Fixes the last errors I can find in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9268 svn path=/trunk/; revision=52615
2013-10-10From Ed Beroset via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9246Evan Huus1-15/+7
Fix memory leaks and bad memory accesses in c1222 dissector. From me: use realloc in a handoff function since it may get called multiple times, and we only need the latest. svn path=/trunk/; revision=52497
2013-10-08Don't try and construct an OID string if the len is zero. FixesEvan Huus1-3/+6
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9246 svn path=/trunk/; revision=52455
2013-10-06Add support for RELATIVE-OID ASN.1 type. Bug 9192 ↵Michael Mann1-3/+27
(https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9192) From Ed Beroset. svn path=/trunk/; revision=52393
2013-09-25From beroset@mindspring.com:Anders Broman1-1/+1
oid_subid2encoded generates faulty encodings for 3-, 4- and 5-byte subid values https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9188 svn path=/trunk/; revision=52219
2013-09-12Use epan-scope memory for OIDs, cleaning up another ~100KB of valgrindEvan Huus1-11/+4
complaints. svn path=/trunk/; revision=51966
2013-09-04Remove what appear to be the last two instances of pe_tree. Could this be theEvan Huus1-5/+5
first emem API to die? svn path=/trunk/; revision=51756
2013-07-15Restore inclusion of report_err.hJeff Morriss1-0/+2
svn path=/trunk/; revision=50599
2013-07-15Move report_err.{h,c} from epan into wsutil: there's nothing epan-specific ↵Jeff Morriss1-1/+0
there and moving it avoids having to recompile the file for use in editcap and capinfos (which don't link against libwireshark). svn path=/trunk/; revision=50598
2013-07-14Fix the OID registration leaks.Evan Huus1-7/+9
Only 1,625 bytes to go... svn path=/trunk/; revision=50565
2013-06-12Pretify dissection of date and Time.Anders Broman1-1/+2
svn path=/trunk/; revision=49905
2013-06-11Show DisplayString as a string.Anders Broman1-1/+1
svn path=/trunk/; revision=49887
2013-04-09Don't try to open <home>/.wireshark on Windows: Wireshark hasn't written toJeff Morriss1-5/+5
that directory since 2001 and reading from that directory was only left in for backwards compatibility with versions prior to r4702. I think it's now safe to remove that backwards compatibility. This eliminates the last argument of get_persconffile_path(). https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8437 svn path=/trunk/; revision=48797
2013-03-21[-Wmissing-prototypes]Anders Broman1-7/+7
Use explicit casts. svn path=/trunk/; revision=48457
2013-03-15From beroset:Anders Broman1-14/+14
remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 svn path=/trunk/; revision=48311
2013-01-14Fixing CID 280433 and 280357.Jaap Keuter1-8/+4
Also strengthening the checking and debug presentation. svn path=/trunk/; revision=47060
2012-12-26Fix a bunch of warnings.Guy Harris1-3/+3
Cast away some implicit 64-bit-to-32-bit conversion errors due to use of sizeof. Cast away some implicit 64-bit-to-32-bit conversion errors due to use of strtol() and strtoul(). Change some data types to avoid those implicit conversion warnings. When assigning a constant to a float, make sure the constant isn't a double, by appending "f" to the constant. Constify a bunch of variables, parameters, and return values to eliminate warnings due to strings being given const qualifiers. Cast away those warnings in some cases where an API we don't control forces us to do so. Enable a bunch of additional warnings by default. Note why at least some of the other warnings aren't enabled. randpkt.c and text2pcap.c are used to build programs, so they don't need to be in EXTRA_DIST. If the user specifies --enable-warnings-as-errors, add -Werror *even if the user specified --enable-extra-gcc-flags; assume they know what they're doing and are willing to have the compile fail due to the extra GCC warnings being treated as errors. svn path=/trunk/; revision=46748
2012-10-27Do free overwritten names when registering oids. There was a comment claimingEvan Huus1-2/+8
we couldn't since the name might not be on the heap, but it looks to me like we're always careful to put it on the heap via a g_strdup if necessary. Fixes some minor memory leaks. svn path=/trunk/; revision=45814
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-3/+1
svn path=/trunk/; revision=45016
2012-08-12Safely handle empty OIDs and other weird cases where we can't find a sub-id.Evan Huus1-0/+9
Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7219 svn path=/trunk/; revision=44460
2012-07-08First phase of fixing https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7380 :Jeff Morriss1-3/+3
Add a new name resolution option: whether or not use the configured (in the OS) name resolver (e.g., DNS) to resolve network names. When this option is disabled but network name resolution is enabled then Wireshark will resolve only those names that it can from local sources. This includes (at least, AFAIK): - name resolutions that Wireshark picks up on from DNS packets it decodes - the "user hosts file" (~/.wireshark/hosts on *NIX) - what Wireshark reads out of capture file (the PCAPNG name resolution block) This new preference defaults to "use external resolvers" for backward compatibility (so people turning on network name resolution will get the old behavior). This option can be set via Edit->Preferences and on the command line; there remain several UIs (e.g., the "open capture file" dialog, the View->Name Resolution menu, etc.) that don't have the new option yet. Also expand on the "description" for the name resolution preferences: these are used not only in the tooltips but are also written to the preferences file. The previous text didn't include enough context when written do the preferences file. svn path=/trunk/; revision=43605
2012-07-08UATs could be put into "categories". The categories were defined onlyGuy Harris1-41/+55
implicitly by the #define name and string they were defined to; not all UATs neatly fit into any of the categories, so some of them were put into categories that weren't obviously correct for them, and one - the display filter macro UAT - wasn't put into any category at all (which caused crashes when editing them, as the GUI code that handled UAT changes from a dialog assumed the category field was non-null). The category was, in practice, used only to decide, in the aforementioned GUI code, whether the packet summary pane needed to be updated or not. It also offered no option of "don't update the packet summary pane *and* don't redissect anything", which is what would be appropriate for the display filter macro UAT. Replace the category with a set of fields indicating what the UAT affects; we currently offer "dissection", which applies to most UATs (any UAT in libwireshark presumably affects dissection at a minimum) and "the set of named fields that exist". Changing any UAT that affects dissection requires a redissection; changing any UAT that affects the set of named fields that exist requires a redissection *and* rebuilding the packet summary pane. Perhaps we also need "filtering", so that if you change a display filter macro, we re-filter, in case the display is currently filtered with a display filter that uses a macro that changed. svn path=/trunk/; revision=43603
2012-07-06Fix compilation of epan/oids.c without HAVE_LIBSMIJakub Zawadzki1-7/+3
svn path=/trunk/; revision=43583
2012-07-06From Michael Mann:Anders Broman1-58/+90
Generic preferences implementation - Printing and Name Resolution. svn path=/trunk/; revision=43579
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2011-09-21Fix ex "modeline" so it works;Bill Meier1-1/+1
See https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5748 svn path=/trunk/; revision=39081
2011-09-20From Dirk via bug 6361:Stig Bjørlykke1-2/+2
Use File/Directory Dialog as a field type for UAT preferences. svn path=/trunk/; revision=39059
2011-06-16Squelch some compiler warnings.Guy Harris1-1/+1
svn path=/trunk/; revision=37684
2011-05-18Get rid of unused function.Guy Harris1-8/+0
svn path=/trunk/; revision=37230
2011-05-17Make some routines static that aren't used outside the source file inGuy Harris1-2/+2
which they're defined. Include some header files that declare functions in the source files that define the functions. Declare packet_list_get_type() in gtk/packet_list_store.h, as it defines a macro that uses that function. svn path=/trunk/; revision=37223
2011-05-17This ain't C++; you have to put "void" in as the argument list ofGuy Harris1-1/+1
functions that take no arguments, otherwise the function is treated as a crufty old C function with undeclared arguments. svn path=/trunk/; revision=37212
2011-04-25Cast away some clang errors about cast alignments that appear safe. Stephen Fisher1-2/+2
svn path=/trunk/; revision=36848
2011-04-25Fix clang error ("increases requird alignment from 1 to 8") by removingStephen Fisher1-1/+1
unnecessary VALS() cast svn path=/trunk/; revision=36847
2011-03-21Corrected decoding of oid values with length 5.Stig Bjørlykke1-5/+5
This fixes coverity 340. svn path=/trunk/; revision=36230
2011-01-20Allow presentation of Gauge32 values larger than 0x7FFFFFFF.Jaap Keuter1-6/+13
svn path=/trunk/; revision=35599
2010-10-29Make the third argument to a UAT copy callback a size_t (not that any ofGuy Harris1-1/+1
the callbacks we have use that argument - is it really needed?). svn path=/trunk/; revision=34694
2010-09-29Fix the libsmi workaround by adding missing brackets.Balint Reczey1-2/+2
From Grzegorz Głowacki <g.glowacki@wasko.pl> svn path=/trunk/; revision=34280
2010-03-17Fix crash when opening About box with disabled OID resolution.Balint Reczey1-0/+5
Thanks to Hilko Bengen for the detailed bug report at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=574086 svn path=/trunk/; revision=32217
2010-03-05From LEGO via bug 2309:Stig Bjørlykke1-2/+7
Alert the user that a restart is needed when changes are made to the MIBs configuration. svn path=/trunk/; revision=32124
2010-03-04From LEGO via bug 3459:Stig Bjørlykke1-0/+2
Add a callback to UAT to be called after the table has being updated, use it to renew the snmp_ue_cache. svn path=/trunk/; revision=32112
2010-03-03Disable OID resolution and loading SMI modules by default.Balint Reczey1-9/+44
Add an option to enable OID resolution. Add an option to suppress errors reported by libsmi. svn path=/trunk/; revision=32096
2010-02-26From Vincent Bernat <bernat@debian.org>:Balint Reczey1-1/+1
Refine workaroud for preventing libsmi error. svn path=/trunk/; revision=32017
2010-02-25Prevent potential crash in libsmi.Balint Reczey1-0/+12
From: Vincent Bernat <bernat@debian.org> svn path=/trunk/; revision=32006
2009-12-24Add NULL pointer checks. Fixes the fuzz crash in bug 4351.Gerald Combs1-1/+1
svn path=/trunk/; revision=31362
2009-12-12Suggest solutions on the missing MIBs popup window.Balint Reczey1-1/+4
svn path=/trunk/; revision=31247
2009-11-23Add /usr/share/snmp/mibs to MIB search path on !Win32 platforms, not just on ↵Balint Reczey1-2/+0
Apple. svn path=/trunk/; revision=31052