Hi all,
I am using net-snmp 5.4.1.....I have some problem regarding sending
SNMP traps....
/*******subagent.c*********/
-
-
-
-
-
int keep_running =1;
-
-
-
-
while(keep_running)
{
trap();
agent_check_and_process();
}
-
-
-
-
/********Table.c*******/
void trap()
{
-
-
-
-
for(i=1;i<=4000;i++)
{
-
-
-
-
-
sendv2trap();
-
-
}
}
The problem is that, for the very first call to 'trap()'....the 'for loop'
runs for around 190 to 210 times and then the call to 'sendv2trap()' makes
the application hang......
Now, after throwing my mind here and there...i did something without any
specific reason.....
/*******subagent.c*********/
-
-
-
-
-
int keep_running =1;
-
-
-
-
while(keep_running)
{
trap();
}
-
-
-
-
/********Table.c*******/
void trap()
{
-
-
-
-
for(i=1;i<=4000;i++)
{
-
-
-
-
-
agent_check_and_process(1);
sendv2trap();
-
-
}
}
and now there is no hang of application......
i do not have any knowledge that why it happened like this....
plz help....
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users