This is the mail archive of the
ecos-bugs@sourceware.org
mailing list for the eCos project.
[Bug 1000717] New: lwIP TCP/IP drops incoming IP packets on SLIPinterface
- From: bugzilla-daemon at ecoscentric dot com
- To: ecos-bugs at ecos dot sourceware dot org
- Date: Thu, 12 Mar 2009 14:01:36 +0000
- Subject: [Bug 1000717] New: lwIP TCP/IP drops incoming IP packets on SLIPinterface
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1000717
Summary: lwIP TCP/IP drops incoming IP packets on SLIP interface
Product: eCos
Version: 3.0beta1
Platform: Other (please specify)
OS/Version: All
Status: UNCONFIRMED
Severity: normal
Priority: normal
Component: TCP/IP
AssignedTo: gary@mlbassoc.com
ReportedBy: sergei.gavrikov@gmail.com
QAContact: ecos-bugs@ecos.sourceware.org
Class: ---
Created an attachment (id=670)
--> (http://bugs.ecos.sourceware.org/attachment.cgi?id=670)
slipif.c patch
Today I tried 'lwip_ppp' template (ecos.ecc was tuned to handle SLIP interface)
and I found that slipif_init() cleared netif->flags (reset NETIF_FLAG_UP),
perhaps, this is normal for PPP mode, but when I ran lwip_tcpip tests on SLIP
interface I got on every right incoming IP input the LWIP debug message:
ip_input: packet not for us.
The check
if ((netif_is_up(netif)) && (!ip_addr_isany(&(netif->ip_addr))))
found no UP interface, because NETIF_FLAG_UP has been already cleaned by
slipif_init()...
With a 1-line tweak (see the patch) all tests become to work just fine.
FYI: I referred with latest lwIP sources (1.3) and found no any wrap in the
place for the SLIP mode.
Can anybody confirm the issue?
Thanks,
Sergei
--
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.