On Tue, Jun 24, 2008 at 11:25:33AM +0400, rbondar@rich-logic.com wrote:
I have the following problem: When I'm trying to retreive the custom table from my SNMP agent the NULL is returned.
The code:
static int show_dgw_proto_sip_table(scli_interp_t *interp, int argc, char **argv) { sss_dgw_mib_sipProxyTableEntry_t **table=NULL; g_return_val_if_fail(interp, SCLI_ERROR);
if (argc != 2) return SCLI_SYNTAX; if (scli_interp_dry(interp)) return SCLI_OK; sss_dgw_mib_get_protocolSIPProxyTable(interp->peer, &table, 0); if (interp->peer->error_status) return SCLI_SNMP;
....
After this step I have no errors, but the table is NULL
Any suggestions?
This can happen if the table is empty so you have to check whether table is actually not NULL.
snort dump for request and agent responce is attached.
Since I have no tools to decipher snort dumps, I suggest you run things through tcpdump -s 0 -v -v -v (or tethereal with appropriate options) to see what has been going on. Or you privately send me the packets in question in pcap format.
/js