Bug 88261
| Summary: | Bug in timeout.c (bsd TCPIP ecos support layer) | ||
|---|---|---|---|
| Product: | [Retired] eCos | Reporter: | Niels Beier <nb> |
| Component: | TCPIP | Assignee: | Gary Thomas <gary> |
| Status: | CLOSED WONTFIX | QA Contact: | Jonathan Larmour <jifl-bugzilla> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | CVS | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | synth | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2003-06-20 16:24:23 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
This bug has moved to http://bugs.ecos.sourceware.org/show_bug.cgi?id=88261 |
Description of problem: Hi there, I have noticted that some of the timer functions are not called (tcp_slowtimo for example). I have made the following test case - inserted in /net/bsd_tcpip/current/src/ecos/support.c void cyg_net_init(void) { static int _init = false; struct init_tab_entry *init_entry; if (_init) return; cyg_do_net_init(); // Just forces linking in the initializer/constructor // Initialize interrupt "flags" cyg_flag_init(&netint_flags); // Initialize timeouts and net service thread (pseudo-DSRs) cyg_alarm_timeout_init(); #if 1 /* Niels Beier test code */ { cyg_uint32 result; result = timeout(testFunc, 1, 1); diag_printf("Result from first timeout() call %u\n", result); result = timeout(testFunc, 2, 2); diag_printf("Result from second timeout() call %u\n", result); if(result == 0) { /* This code is executed every time */ diag_printf("Timer ERROR\n"); } else { diag_printf("Timer OK\n"); } while(1); } #endif } Or have I misunderstod something? Best regards Niels Version-Release number of selected component (if applicable): How reproducible: Every time. Steps to Reproduce: 1.Compile ecos library with supplied test code 2.run and watch output 3. Actual results: Second timerout() call returns zero Expected results: Non zero result expected Additional info: