int remove_agent_caps_list(netsnmp_session * session, netsnmp_pdu *pdu) { netsnmp_session *sp; sp = find_agentx_session(session, pdu->sessid); if (sp == NULL) return AGENTX_ERR_NOT_OPEN; if (unregister_sysORTable_sess(pdu->variables->name, pdu->variables->name_length, sp) < 0) return AGENTX_ERR_UNKNOWN_AGENTCAPS; else return AGENTX_ERR_NOERROR; }
int unregister_sysORTable(oid *oidin, size_t oidlen) { return unregister_sysORTable_sess( oidin, oidlen, NULL ); }