summaryrefslogtreecommitdiff
path: root/usr.sbin/snmpd/parse.y
AgeCommit message (Collapse)Author
2015-11-22Update log.c: change fatal() and fatalx() into variadic functions,Reyk Floeter
include the process name, and replace all calls of fatal*(NULL) with fatal(__func__) for better debugging. OK benno@
2015-02-08Use AI_ADDRCONFIG when resolv hosts on startup.Reyk Floeter
OK henning@
2014-11-20Don't allow embedded nul characters in strings.Jonathan Gray
Fixes a pfctl crash with an anchor name containing an embedded nul found with the afl fuzzer. pfctl parse.y patch from and ok deraadt@
2014-11-19add support for AgentX subagents in snmpdBret Lambert
snmp requests are now packaged into pseudo-continuations to allow for being dispatched to seperate processes; lightly tested for interoperability with NetSNMP, but doesn't implement the complete set of AgentX messages while here, clean up return types of mps_get* functions, and make smi_insert refuse to insert duplicate OIDs okay benno@ reyk@
2014-11-16Convert the logic in yyerror(). Instead of creating a temporaryAlexander Bluhm
format string, create a temporary message. OK doug@
2014-11-14Add gcc printf format attributes to yyerror() in parse.y files.Doug Hogan
No yyerror() calls needed to be changed. ok bluhm@
2014-04-25Support running user-defined actions on receipt of snmp traps.Bret Lambert
testing sthen@ much man page guidance jmc@ ok reyk@
2014-04-24fix copied text in error stringBret Lambert
ok reyk@
2014-04-14Make snmpd use the AgentX protcol for accepting trap requests.Bret Lambert
AgentX notifications are the only portion implemented right now; get in the tree to flesh out the remainder. ok reyk@ benno@
2014-01-22relax the cfg file secrecy check slightly to allow group readabilityHenning Brauer
default permissions and mtree NOT changed. prodded by benno, ok phessler benno jmatthew theo pelikan florian
2013-11-25use u_char for buffers in yylex, for ctype callsSebastian Benoit
found by millert@, ok deraadt@
2013-10-17Update snmpd(8) to use the proc.c privsep style from iked and relayd.Reyk Floeter
ok sthen@ deraadt@
2013-10-16 1) move the creation of 'restricted' communication socketsBret Lambert
into snmpd.conf 2) add the ability to specify an alternate 'control' socket location 3) allow for the creation of multiple 'restricted' sockets (but only one control socket, for the time being) Committing slightly ahead of schedule in order to clear the pipeline for a few other upcoming changes. ok reyk@, sthen@
2013-03-29Patch from Ilya Bakulin that allows to put snmpd(8) into read-only modeGerhard Roth
so that all "set" requests will be rejected. ok reyk@
2013-03-06as done in ospf{,6}d/relayd, sync yyerror in various other daemons withStuart Henderson
that from bgpd, so that it logs to syslog when daemonized.
2012-09-17let the debug message look like the configuration syntaxReyk Floeter
2012-09-17Update copyright and my email address in snmpd while I'm here.Reyk Floeter
2012-09-17Add initial SNMPv3 support to snmpd(8).Reyk Floeter
Traps are still sent via SNMPv2 protocol. They can neither be authenticated nor encrypted. - Transport mode is still UDP. Not additional transport subsystems were added. - Only the User-based Security Model (USM, RFC3414) is supported. View-Based Access Control (VACM, RFC3415) is not included. - Configuration is described in snmpd.conf(5). This diff includes a few minor changes to ber.c/h adding a necessary callback for the USM HMAC calculation and merging it with other minor changes from ldapd's ber code. From Gerhard Roth at genua ok claudio@ reyk@
2011-04-21Add a "filter-routes" option; when set, snmpd asks the kernel not toStuart Henderson
send route updates. If you aren't interested in examining routing tables over SNMP (e.g. if you only use it for sensors or interface stats) this reduces cpu use during heavy route updates. Makes my full-table bgp routers happier when a major peer bounces. ok reyk@
2010-10-18Missing ; to appease yyextract, ok martinh@Stuart Henderson
2010-08-03fix linecount bug with comments spanning multiple linesHenning Brauer
problem reported with the obvious fix for bgpd by Sebastian Benoit <benoit-lists at fb12.de>, also PR 6432 applied to all the others by yours truly. ok theo isn't it amazing how far this parser (and more) spread?
2009-03-31Fixed memory leaks which would occur if the second of two memoryTobias Stoeckmann
allocations fails. looks right deraadt, krw ok henning
2008-10-17bring in the findeol() fix from pfctl. list of affected parsers by sthenHenning Brauer
2008-07-18merge host_v6 with relayd's version to use getaddrinfo instead ofReyk Floeter
inet_pton. host_v4, host_v6, and host_dns could be merged into one function using getaddrinfo but i keep it in multiple functions to keep it in sync with the other daemons using this common code.
2008-02-27Unbreak parser by initializing topfile correctly.Marco Pfatschbacher
I got fooled by patch(1). Sorry. Found by and OK thib@.
2008-02-27Have popfile() also close the main config file,Marco Pfatschbacher
but only do the final popfile call after yyparse() is done. This also fixes config reload on SIGHUP for some daemons. Spotted by otto@. OK deraadt@
2008-02-26Fix memory leak in the parser. Found by Matthew Dempsky but using the moreClaudio Jeker
common way to clear the TAILQ. OK thib@
2008-01-30spacingReyk Floeter
2008-01-17allow to configure optional per trap receiver communities and toReyk Floeter
restrict the receivers to a specified mib.
2008-01-16implementation of the SNMP trap sender interfaceReyk Floeter
2008-01-16bump copyrightReyk Floeter
2007-12-28set the default port in host byte order to get the correct resultReyk Floeter
2007-12-28split code handling the "structure of management information" and theReyk Floeter
"message processing subsystem" into separate files smi.c and mps.c
2007-12-28spacingReyk Floeter
2007-12-28use the snmp camelCase for MIB definitions, this allows to simplifyReyk Floeter
the code a bit and is mostly a stylistic change.
2007-12-07remove unreduced rulesReyk Floeter
2007-12-05re-sync yylex to the other parsersReyk Floeter
found by deraadt@
2007-12-05Start working on snmpd(8) and snmpctl(8), a lightweight SNMP implementationReyk Floeter
for OpenBSD. SNMP is a necessary evil. This is work in progress, don't expect too much from it yet. ok deraadt@