Please forgive my ignorance. I think you're right (since I'm not using DHCP). So it sounds like I should have some kind of link checking in my code and call netif_set_up and _down as you suggest? Where/how is this type of checking typically done, I presume I will have to poll the PHY periodically?
John -----Original Message----- From: Bill Auerbach [mailto:[email protected]] Sent: Monday, May 18, 2009 1:07 PM To: 'Mailing list for lwIP users' Subject: RE: [lwip-users] netif->flags Does it make sense to call netif_set_up and _down as you see the physical link come and go. With a static IP, as long as there is a link, aren't you "up"? Bill >-----Original Message----- >From: [email protected] >[mailto:[email protected]] On >Behalf Of John Kennedy >Sent: Monday, May 18, 2009 2:50 PM >To: Mailing list for lwIP users >Subject: RE: [lwip-users] netif->flags > >Yes, but as far as I can tell netif_set_up is only called in autoip.c >and dhcp.c, and I'm not using either yet... > > > >________________________________________ >John Kennedy > > >Idaho Technology Inc. >390 Wakara Way >Salt Lake City, UT 84108, USA > >USA: 1-800-735-6544 >Bus:+1 (801)736-6354 x448 >Fax:+1 (801)588-0507 > >http://www.idahotech.com/ >-----Original Message----- >From: Simon Goldschmidt [mailto:[email protected]] >Sent: Monday, May 18, 2009 8:08 AM >To: Mailing list for lwIP users >Subject: Re: [lwip-users] netif->flags > > >> Hi, >> I'm using lwIP and the socket IF. The lwIP 1.3.0 source file >ethernetif.c >> contains a function low_level_init which initializes some of the netif >> flags; but it does not initialize the flag NETIF_FLAG_UP. I can't >find >> anywhere else in the code where this flag is set. Should this flag >> (NETIF_FLAG_UP) be set in low_level_init with the other flags, if not >where should this >> flag be set? > >void netif_set_up(struct netif *netif) >-- >Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + >Telefonanschluss für nur 17,95 Euro/mtl.!* >http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a > > >_______________________________________________ >lwip-users mailing list >[email protected] >http://lists.nongnu.org/mailman/listinfo/lwip-users > >________________________________________ >CONFIDENTIALITY NOTICE: This E-mail and any attachments are confidential >information of the sender and are for the exclusive use of the intended >recipient. If you are not the intended recipient, be aware that any >disclosure, copying, distribution, or use of this E-mail or any >attachment is prohibited. If you have received this E-mail in error, >please notify us immediately by returning it to the sender and delete >this copy from your system. Thank you for your cooperation. > > > > >_______________________________________________ >lwip-users mailing list >[email protected] >http://lists.nongnu.org/mailman/listinfo/lwip-users _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users ________________________________________ CONFIDENTIALITY NOTICE: This E-mail and any attachments are confidential information of the sender and are for the exclusive use of the intended recipient. If you are not the intended recipient, be aware that any disclosure, copying, distribution, or use of this E-mail or any attachment is prohibited. If you have received this E-mail in error, please notify us immediately by returning it to the sender and delete this copy from your system. Thank you for your cooperation. _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
