[ECOS] Possible SNMP bug

Yuriy Coureelo coureelo@micran.ru
Fri Apr 15 08:18:00 GMT 2005


Dear Sir!

A thread has the following code:
//-----------------------
    while (true)
    {
        if (create_trap_session(eth0_server,
                                SNMP_TRAP_PORT,
                                "public",
                                SNMP_VERSION_2c,
                                SNMP_MSG_TRAP2))
        {
            send_v2trap(NULL);
            snmpd_free_trapsinks();
        }
        cyg_thread_delay(400);
    }
//-----------------------
eth0_server doesn't exists. ARP maxtries = 5.
I start ethernet sniffer and see 5 arp requests.
On the 6th try there is no arp request (that's ok i know).
Then that code passes 7th time and when it calls cyg_thread_delay
(7th call) - system hangs.

When eth0_server exists, everything goes well (SNMP, HTTP and other 15
different threads work fine).

Processor: ARM

Sincerely yours
Yuriy Coureelo                         coureelo@micran.ru



-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list