#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 "../../statistics.h"#include "../../mem/mem.h"#include "snmpstats_globals.h"#include "openserSIPPortTable.h"

Go to the source code of this file.
Functions | |
| oid * | createIndex (int ipType, int *ipAddress, int *sizeOfOID) |
| void | createRowsFromIPList (int *theList, int listSize, int protocol, int *snmpIndex) |
| openserSIPPortTable_context * | getRow (int ipType, int *ipAddress) |
| void | init_openserSIPPortTable (void) |
| void | initialize_table_openserSIPPortTable (void) |
| const openserSIPPortTable_context * | openserSIPPortTable_get_by_idx (netsnmp_index *hdr) |
| int | openserSIPPortTable_get_value (netsnmp_request_info *request, netsnmp_index *item, netsnmp_table_request_info *table_info) |
Variables | |
| static netsnmp_table_array_callbacks | cb |
| static netsnmp_handler_registration * | my_handler = NULL |
| oid | openserSIPPortTable_oid [] = { openserSIPPortTable_TABLE_OID } |
| size_t | openserSIPPortTable_oid_len = OID_LENGTH(openserSIPPortTable_oid) |
| oid* createIndex | ( | int | ipType, | |
| int * | ipAddress, | |||
| int * | sizeOfOID | |||
| ) |
Definition at line 64 of file openserSIPPortTable.c.
References LM_ERR, NULL, NUM_IP_OCTETS, and pkg_malloc.
Referenced by getRow().
| void createRowsFromIPList | ( | int * | theList, | |
| int | listSize, | |||
| int | protocol, | |||
| int * | snmpIndex | |||
| ) |
Definition at line 165 of file openserSIPPortTable.c.
References getRow(), LM_ERR, NULL, NUM_IP_OCTETS, openserSIPPortTable_context_s::openserSIPTransportRcv, openserSIPPortTable_context_s::openserSIPTransportRcv_len, PROTO_TCP, PROTO_TLS, PROTO_UDP, TC_TRANSPORT_PROTOCOL_OTHER, TC_TRANSPORT_PROTOCOL_TCP, TC_TRANSPORT_PROTOCOL_TLS, and TC_TRANSPORT_PROTOCOL_UDP.
Referenced by init_openserSIPPortTable().
| openserSIPPortTable_context* getRow | ( | int | ipType, | |
| int * | ipAddress | |||
| ) |
Definition at line 104 of file openserSIPPortTable.c.
References cb, createIndex(), openserSIPPortTable_context_s::index, NULL, NUM_IP_OCTETS, openserSIPPortTable_context_s::openserSIPStringIndex, openserSIPPortTable_context_s::openserSIPStringIndex_len, and pkg_free.
Referenced by createRowsFromIPList().
| void init_openserSIPPortTable | ( | void | ) |
Definition at line 218 of file openserSIPPortTable.c.
References createRowsFromIPList(), get_socket_list_from_proto(), initialize_table_openserSIPPortTable(), NULL, PROTO_TCP, PROTO_TLS, and PROTO_UDP.
Referenced by initialize_agentx().
| void initialize_table_openserSIPPortTable | ( | void | ) |
mallocs failed
Definition at line 250 of file openserSIPPortTable.c.
References cb, my_handler, openserSIPPortTable_COL_MAX, openserSIPPortTable_COL_MIN, openserSIPPortTable_get_value(), openserSIPPortTable_oid, and openserSIPPortTable_oid_len.
Referenced by init_openserSIPPortTable().
| const openserSIPPortTable_context* openserSIPPortTable_get_by_idx | ( | netsnmp_index * | hdr | ) |
| int openserSIPPortTable_get_value | ( | netsnmp_request_info * | request, | |
| netsnmp_index * | item, | |||
| netsnmp_table_request_info * | table_info | |||
| ) |
OpenSERSIPTransportProtocol = ASN_OCTET_STR
We shouldn't get here
Definition at line 305 of file openserSIPPortTable.c.
References COLUMN_OPENSERSIPTRANSPORTRCV, openserSIPPortTable_context_s::openserSIPTransportRcv, and openserSIPPortTable_context_s::openserSIPTransportRcv_len.
Referenced by initialize_table_openserSIPPortTable().
netsnmp_table_array_callbacks cb [static] |
Definition at line 49 of file openserSIPPortTable.c.
netsnmp_handler_registration* my_handler = NULL [static] |
Definition at line 48 of file openserSIPPortTable.c.
| oid openserSIPPortTable_oid[] = { openserSIPPortTable_TABLE_OID } |
Definition at line 51 of file openserSIPPortTable.c.
Referenced by initialize_table_openserSIPPortTable().
| size_t openserSIPPortTable_oid_len = OID_LENGTH(openserSIPPortTable_oid) |
Definition at line 52 of file openserSIPPortTable.c.
Referenced by initialize_table_openserSIPPortTable().
1.5.6