#include <net-snmp/net-snmp-config.h>#include <net-snmp/net-snmp-includes.h>#include <net-snmp/agent/net-snmp-agent-includes.h>#include <net-snmp/library/snmp_assert.h>#include "hashTable.h"#include "interprocess_buffer.h"#include "utilities.h"#include "openserSIPRegUserTable.h"#include "snmpstats_globals.h"#include "../../sr_module.h"#include "../../locking.h"#include "../usrloc/usrloc.h"

Go to the source code of this file.
Functions | |
| int | createRegUserRow (char *stringToRegister) |
| void | deleteRegUserRow (int userIndex) |
| void | init_openserSIPRegUserTable (void) |
| void | initialize_table_openserSIPRegUserTable (void) |
| const openserSIPRegUserTable_context * | openserSIPRegUserTable_get_by_idx (netsnmp_index *hdr) |
| int | openserSIPRegUserTable_get_value (netsnmp_request_info *request, netsnmp_index *item, netsnmp_table_request_info *table_info) |
| int | registerForUSRLOCCallbacks (void) |
| void | updateUser (char *userName) |
Variables | |
| static netsnmp_table_array_callbacks | cb |
| static netsnmp_handler_registration * | my_handler = NULL |
| oid | openserSIPRegUserTable_oid [] = { openserSIPRegUserTable_TABLE_OID } |
| size_t | openserSIPRegUserTable_oid_len = OID_LENGTH(openserSIPRegUserTable_oid) |
| int createRegUserRow | ( | char * | stringToRegister | ) |
Definition at line 226 of file openserSIPRegUserTable.c.
References cb, openserSIPRegUserTable_context_s::index, LM_ERR, NULL, openserSIPRegUserTable_context_s::openserSIPUserAuthenticationFailures, openserSIPRegUserTable_context_s::openserSIPUserIndex, openserSIPRegUserTable_context_s::openserSIPUserUri, openserSIPRegUserTable_context_s::openserSIPUserUri_len, pkg_free, and pkg_malloc.
Referenced by init_openserSIPRegUserTable(), and updateUser().
| void deleteRegUserRow | ( | int | userIndex | ) |
Definition at line 137 of file openserSIPRegUserTable.c.
References cb, openserSIPRegUserTable_context_s::index, NULL, openserSIPRegUserTable_context_s::openserSIPUserUri, and pkg_free.
Referenced by deleteUser(), and updateUser().
| void init_openserSIPRegUserTable | ( | void | ) |
Definition at line 281 of file openserSIPRegUserTable.c.
References createRegUserRow(), and initialize_table_openserSIPRegUserTable().
Referenced by initialize_agentx().
| void initialize_table_openserSIPRegUserTable | ( | void | ) |
mallocs failed
Definition at line 298 of file openserSIPRegUserTable.c.
References cb, my_handler, openserSIPRegUserTable_COL_MAX, openserSIPRegUserTable_COL_MIN, openserSIPRegUserTable_get_value(), openserSIPRegUserTable_oid, and openserSIPRegUserTable_oid_len.
Referenced by init_openserSIPRegUserTable().
| const openserSIPRegUserTable_context* openserSIPRegUserTable_get_by_idx | ( | netsnmp_index * | hdr | ) |
| int openserSIPRegUserTable_get_value | ( | netsnmp_request_info * | request, | |
| netsnmp_index * | item, | |||
| netsnmp_table_request_info * | table_info | |||
| ) |
SnmpAdminString = ASN_OCTET_STR
COUNTER = ASN_COUNTER
We shouldn't get here
Definition at line 346 of file openserSIPRegUserTable.c.
References COLUMN_OPENSERSIPUSERAUTHENTICATIONFAILURES, COLUMN_OPENSERSIPUSERURI, consumeInterprocessBuffer(), openserSIPRegUserTable_context_s::openserSIPUserAuthenticationFailures, openserSIPRegUserTable_context_s::openserSIPUserUri, and openserSIPRegUserTable_context_s::openserSIPUserUri_len.
Referenced by initialize_table_openserSIPRegUserTable().
| int registerForUSRLOCCallbacks | ( | void | ) |
Definition at line 104 of file openserSIPRegUserTable.c.
References bind_usrloc(), find_export(), handleContactCallbacks(), LM_ERR, LM_INFO, NULL, usrloc_api::register_ulcb, ul, UL_CONTACT_EXPIRE, and UL_CONTACT_INSERT.
Referenced by mod_init().
| void updateUser | ( | char * | userName | ) |
Definition at line 171 of file openserSIPRegUserTable.c.
References createHashRecord(), createRegUserRow(), deleteRegUserRow(), findHashRecord(), HASH_SIZE, hashTable, insertHashRecord(), LM_ERR, NULL, and aorToIndexStruct::numContacts.
Referenced by executeInterprocessBufferCmd().
netsnmp_table_array_callbacks cb [static] |
Definition at line 93 of file openserSIPRegUserTable.c.
netsnmp_handler_registration* my_handler = NULL [static] |
Definition at line 92 of file openserSIPRegUserTable.c.
| oid openserSIPRegUserTable_oid[] = { openserSIPRegUserTable_TABLE_OID } |
Definition at line 95 of file openserSIPRegUserTable.c.
Referenced by initialize_table_openserSIPRegUserTable().
| size_t openserSIPRegUserTable_oid_len = OID_LENGTH(openserSIPRegUserTable_oid) |
Definition at line 96 of file openserSIPRegUserTable.c.
Referenced by initialize_table_openserSIPRegUserTable().
1.5.6