00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 #ifndef OPENSERSIPPORTTABLE_H
00038 #define OPENSERSIPPORTTABLE_H
00039
00040 #ifdef __cplusplus
00041 extern "C" {
00042 #endif
00043
00044 #include <net-snmp/net-snmp-config.h>
00045 #include <net-snmp/library/container.h>
00046 #include <net-snmp/agent/table_array.h>
00047
00048 #include "../../config.h"
00049
00050 #define SIP_PORT_TABLE_STR_INDEX_SIZE 10
00051
00052
00053 typedef struct openserSIPPortTable_context_s
00054 {
00055
00056 netsnmp_index index;
00057
00058 unsigned char openserSIPStringIndex[SIP_PORT_TABLE_STR_INDEX_SIZE];
00059 unsigned long openserSIPStringIndex_len;
00060
00061 unsigned char openserSIPTransportRcv[2];
00062 long openserSIPTransportRcv_len;
00063
00064 void * data;
00065
00066 } openserSIPPortTable_context;
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076 void init_openserSIPPortTable(void);
00077
00078
00079
00080 void initialize_table_openserSIPPortTable(void);
00081
00082
00083
00084
00085
00086
00087 int openserSIPPortTable_get_value(netsnmp_request_info *, netsnmp_index *,
00088 netsnmp_table_request_info *);
00089
00090 const openserSIPPortTable_context * openserSIPPortTable_get_by_idx(
00091 netsnmp_index *);
00092
00093 const openserSIPPortTable_context * openserSIPPortTable_get_by_idx_rs(
00094 netsnmp_index *, int row_status);
00095
00096
00097
00098
00099 extern oid openserSIPPortTable_oid[];
00100 extern size_t openserSIPPortTable_oid_len;
00101
00102 #define openserSIPPortTable_TABLE_OID OPENSER_OID,3,1,1,1,1,5
00103
00104
00105
00106
00107
00108 #define COLUMN_OPENSERSIPTRANSPORTRCV 4
00109
00110 #define openserSIPPortTable_COL_MIN 4
00111 #define openserSIPPortTable_COL_MAX 4
00112
00113
00114 #ifdef __cplusplus
00115 }
00116 #endif
00117 #endif