aboutsummaryrefslogtreecommitdiffstats
path: root/packet-snmp.c
AgeCommit message (Collapse)AuthorFilesLines
1999-11-18ILMI is just SNMP-over-ATM AAL5; if the SNMP dissector is available,Guy Harris1-6/+15
dissect ILMI packets with the SNMP dissector. svn path=/trunk/; revision=1054
1999-11-16Replace the ETT_ "enum" members, declared in "packet.h", withGuy Harris1-3/+9
dynamically-assigned "ett_" integer values, assigned by "proto_register_subtree_array()"; this: obviates the need to update "packet.h" whenever you add a new subtree type - you only have to add a call to "proto_register_subtree_array()" to a "register" routine and an array of pointers to "ett_", if they're not already there, and add a pointer to the new "ett_" variable to the array, if they are there; would allow run-time-loaded dissectors to allocate subtree types when they're loaded. svn path=/trunk/; revision=1043
1999-10-27Arrange that "proto_register_snmp()" be defined regardless of whetherGuy Harris1-3/+12
SNMP dissection is enabled or not, so that if "register.c" was generated by scanning a list of files that include "packet-snmp.c" even though SNMP dissection isn't enabled (the standard "Makefile.in" and "configure" script won't cause that to happen, but source distributions such as BSD ports may be set up to do that), and thus includes a call to "proto_register_snmp()", that won't cause the link to fail. svn path=/trunk/; revision=931
1999-10-25The previous patch didn't fix code used only with the CMU SNMP library;Guy Harris1-2/+2
make the equivalent fix to that code. svn path=/trunk/; revision=927
1999-10-24Tomislav Vujec's patch to squelch some complaints from GCC (hopefully,Guy Harris1-3/+3
"asn_parse_header()" and "snmp_constr_parse()" don't actually modify the data to which their first arguments point - if so, we have bigger problems; I have no reason to believe they would modify it...). svn path=/trunk/; revision=921
1999-09-12Some old CPP or tools that take C code in input doLaurent Deniel1-3/+3
not like #preprocessor_macros that do not start at the first column. So write: #ifdef FOO # include <dummy1.h> # define DUMMY 1 #else # include <dummy2.h> # define DUMMY 2 #endif instead of #ifdef FOO #include <dummy1.h> #define DUMMY 1 #else #include <dummy2.h> #define DUMMY 2 #endif svn path=/trunk/; revision=668
1999-08-29Fix some compilation warnings.Gilbert Ramirez1-2/+2
svn path=/trunk/; revision=609
1999-08-20Call "init_mib()" in "proto_register_snmp()"; not doing so causes coreGuy Harris1-1/+2
dumps (probably because the SNMP libraries expect it to have been called). svn path=/trunk/; revision=533
1999-07-29Fix it to build with CMU, as well as UCD, SNMP.Guy Harris1-3/+3
svn path=/trunk/; revision=403
1999-07-29Made the protocol (but not the fields) use the new proto_tree routine,Gilbert Ramirez1-4/+18
allowing users to filter on the existence of these protocols. I also added packet-clip.c to the Nmake makefile. svn path=/trunk/; revision=402
1999-07-07Created a new protocol tree implementation and a new display filterGilbert Ramirez1-33/+31
mechanism that is built into ethereal. Wiretap is now used to read all file formats. Libpcap is used only for capturing. svn path=/trunk/; revision=342
1999-06-12Use "val_to_str()", rather than "get_XXX()" routines, to map SNMPGuy Harris1-270/+189
versions, PDU types, error statuses, and trap types to strings. Set the protocol column to "SNMP", and set the info column to an error message if the parse fails (rather than printing a message to the standard error) and to the PDU type if it succeeds. svn path=/trunk/; revision=305
1999-05-16Fixed to actually compile with CMU SNMP library (at least on Linux).Gilbert Ramirez1-7/+67
svn path=/trunk/; revision=289
1999-05-12Added Didier Jorand's dissect_snmp routine. This is only compiled inGilbert Ramirez1-0/+882
if you have the UCD or CMU SNMP library available. If you have the SNMP library but do not with to have SNMP support, use the ./configure --disable-snmp option. Otherwise 'configure' finds the SNMP library and uses it. svn path=/trunk/; revision=281