summaryrefslogtreecommitdiff
path: root/usr.sbin/snmpd
AgeCommit message (Expand)Author
2024-05-21remove prototypes with no matching function and externs with no varJonathan Gray
2024-04-12In snmpd_metrics process keep file descriptors 0 1 2 open.Alexander Bluhm
2024-04-09Sync removal of setsid(), setpgid() and a few dup2() from relayd. They areTobias Heider
2024-04-08Call daemon() only in parent and before proc_exec() to avoid orphaning childTobias Heider
2024-02-20Remove some now unused variables. Somehow missed in previous commit.Martijn van Duren
2024-02-20strptime() only touches the fields specified in the format string,Martijn van Duren
2024-02-20trap receiver is special in that the OID is optional. Make sure that weMartijn van Duren
2024-02-20Remove the packetid logic from ax.c. It's not used by snmpd and has someMartijn van Duren
2024-02-08RFC2578 section 7.1 specifies the ranges and in the case of opaque theMartijn van Duren
2024-02-06Let the config parser make use of the mib_string2oid().Martijn van Duren
2024-02-06Replace most smi_oid2string() calls with the new mib_oid2string().Martijn van Duren
2024-02-06Load MIB files during startup. The default directory isMartijn van Duren
2024-01-27Implement an initial SMIv2 parser based around RFC257[89]. RFC2580 isn'tMartijn van Duren
2024-01-16Convert to imsg_get_fd() and remove unused proc_forward_imsg().Claudio Jeker
2023-12-22Call log_setverbosity() directly after getopt() so that debuggingMartijn van Duren
2023-12-22Remove a log_debug from usm_checkuser(). It would only display what is inMartijn van Duren
2023-12-21mib_init() and MIB() disappeared with mib.c, remove their declarations.Martijn van Duren
2023-12-21Clean up snmpd's header situation.Martijn van Duren
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