summaryrefslogtreecommitdiffstats
path: root/contrib/bsnmp/gensnmpdef/gensnmpdef.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC r311750,r311754,r311757:ngie2017-01-141-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | r311750: Check result from smiGetFirstNode and smiGetNodeByOID This avoids a segfault with malformed or unanticipated files, like IPV6-TC.txt (a file containing just TEXTUAL-CONVENTIONS). Found with: gensnmpdef /usr/local/share/snmp/mibs/IPV6-TC.txt r311754: Use calloc instead of malloc + memset(.., 0, ..) r311757: Similar to r311750, check for the result from smiGetModule to avoid a segfault when dereferencing a NULL pointer later on. Choose to just check for the NULL pointer in the next for-loop for now to fix the issue with a minimal amount of code churn sys/queue.h use here would make more sense than using a static table
* MFC r310648:ngie2016-12-311-10/+10
| | | | style(9): clean up trailing whitespace
* (S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.antoine2010-03-271-1/+1
| | | | | | | Fix some wrong usages. Note: this does not affect generated binaries as this argument is not used. Approved by: harti@
* Vendor patch: add support for the BITS construct and enumerations in bothharti2006-05-301-9/+163
| | | | | | gensnmpdef and gensnmptree. Add include and typedef directives to gensnmptree. Submitted by: soc-sheryana (partly)
* Virgin import of bsnmpd 1.7harti2004-08-061-28/+24
|
* Import of bsnmpd 1.6harti2004-04-141-0/+433
OpenPOWER on IntegriCloud