summaryrefslogtreecommitdiff
path: root/usr.sbin/snmpd
AgeCommit message (Expand)Author
2023-12-18Add a family argument to host(). This allows us to force a specific addressMartijn van Duren
2023-12-18Fix copy-paste error for setting source-address in trap receiver.Martijn van Duren
2023-12-18Fix two memory leaks:Martijn van Duren
2023-12-12The OID inside snmpTrapOID is of type NOTIFICATION-TYPE, which does notMartijn van Duren
2023-12-12Do a bitter cleanup after the config defined objects on shutdown.Martijn van Duren
2023-11-21Make RTFILTER/filter-routes a simple boolean assignment, since theMartijn van Duren
2023-11-20In snmpe_writecb, don't call snmpe_prepare_read() when there's stillMartijn van Duren
2023-11-16In appl_processpdu() no need to set avi_next, and only set av_next upMartijn van Duren
2023-11-16avi_origid must also be set when transitioning out of theMartijn van Duren
2023-11-15Make sure we allocate the correct size for an appl_agentcap.Martijn van Duren
2023-11-13Apparently base-gcc doesn't like having OID() inside MIBDECL(). HandrollMartijn van Duren
2023-11-13struct appl_varbind_internal's avi_index is used to give the index toMartijn van Duren
2023-11-12Move struct oid from snmpd.h into smi.c and trim a lot of the now unusedMartijn van Duren
2023-11-12Remove a bunch of unused smi_ functions and move a couple of definitionsMartijn van Duren
2023-11-12Now that smi_oid_cmp() is only used by the oidtree RB-tree, and nothingMartijn van Duren
2023-11-12Now that MIBDECL() fills in bo_n, no need to call smi_oidlen() anymore.Martijn van Duren
2023-11-12Let MIBDECL() make use of OID(). This gives use bo_n for free and weMartijn van Duren
2023-11-12Now that smi.c is basically an oid/name translator, let smi_insert()Martijn van Duren
2023-11-12No need to use struct oid to compare two struct ber_oids. Just callMartijn van Duren
2023-11-12Printing all known objects inside smi when build with -DDEBUG has noMartijn van Duren
2023-11-12No reason to call (error-prone) smi_scalar_oidlen when we include theMartijn van Duren
2023-11-12Now that the last consumer of mps.c is gone, remove it and itsMartijn van Duren
2023-11-12Move snmpd.conf's oid keyword into application_internal.c. These objectsMartijn van Duren
2023-11-08Don't do the time window check if we're noAuthNoPriv. It's only neededMartijn van Duren
2023-11-08Let usm_make_report() utilize appl_report(). usm_make_report utilizedMartijn van Duren
2023-11-08Let appl_report() collect its own metrics. This simplifies the interfaceMartijn van Duren
2023-11-08Don't rely on aru_pdu to rebuild the original varbindlist on error.Martijn van Duren
2023-11-08Don't use aru_pdu for determining the requesttype. It's owned byMartijn van Duren
2023-11-08On second thought let's not overwrite sm_pdutype with a hardcoded valueMartijn van Duren
2023-11-08export SNMP-TARGET-MIB::{snmpUnavailableContexts,snmpUnknownContexts}Martijn van Duren
2023-11-08Hook up snmpTargetMIB to MIB_TREE.Martijn van Duren
2023-11-06Hook up agentx-{Add,Remove}AgentCaps-PDU to appl_{add,remove}agentcaps.Martijn van Duren
2023-11-06Readd the sysORTable based on the new struct appl_agentcap.Martijn van Duren
2023-11-06Allow agent capabilities to be stored on a per appl_context basis.Martijn van Duren
2023-11-06Allow appl_internal_object's getnext to be called.Martijn van Duren
2023-11-04Move SNMPv2-MIB::system from mib.c into the new application_internal.c.Martijn van Duren
2023-11-04Move SNMPv2-SMI::snmpV2 from mib.c into the new application_internal.cMartijn van Duren
2023-11-04Move SNMPv2-MIB::snmp from mib.c into the new application_internal.cMartijn van Duren
2023-11-04Introduce application_internal.c. This backend is meant to replaceMartijn van Duren
2023-10-29When doing a get{next,bulk} below an instance we must move the OID toMartijn van Duren
2023-10-29searchrange.end is non-inclusive. Adjust the tests for that.Martijn van Duren
2023-10-27If an invalid varbindlist was returned by a backend we would callMartijn van Duren
2023-10-27Use event_add(), instead of calling appl_agentx_send() directly. If anMartijn van Duren
2023-10-24FC3416 section 4.2.1 (and others) tells us that if an error occurs theMartijn van Duren
2023-10-24Certain error codes are only intended for certain request-types. Add anMartijn van Duren
2023-10-24If a backend registers as an instance it must never return OIDs belowMartijn van Duren
2023-10-24set ab_range explicitly to 1 for appl_agentx_session instead of relyingMartijn van Duren
2023-10-24When returning an endOfMibView we must always set it on the requested OID.Martijn van Duren
2023-10-24When opening 2 sessions on an agentx connection and registering 2Martijn van Duren
2023-10-24Fix appl_unregister() when called with range_subid set to !0.Martijn van Duren