Hi Kieran,
Yes it does.
I am currently working on a solution, which looks like this:
// DHCP negotiation succeeded
// Get MAC Address for default gateway
mscnt = 0;
while (mscnt < 3000)
{
if (etharp_query(&EMAC_if, &(EMAC_if.gw), NULL) != ERR_OK)
{
// Error could not perform ARP query!
}
else
{
if (etharp_find_addr(&EMAC_if, &(EMAC_if.gw), ðaddr_ret, &ipaddr_ret) > -1)
{
// Store MAC Address
break;
}
}
vTaskDelay(DHCP_FINE_TIMER_MSECS);
mscnt += DHCP_FINE_TIMER_MSECS;
}
Although it isn't necessary at this point, i guess the above is not thread safe.
Any advice is greatly appreciated.
regards,
Martin
> Subject: RE: [lwip-users] How to get network address (MAC) of gateway> From:
> [EMAIL PROTECTED]> To: [email protected]> Date: Thu, 9 Oct 2008 09:23:11
> +0100> > On Thu, 2008-10-09 at 09:16 +0200, B B wrote:> > > > Hi again,> > >
> > i am still looking into this, if someone could tell if this is> > possible
> or not,> > that would be very helpful.> > > > I am using the netconn api. and
> lwip is running in an OS, freertos.> > > > I have looked at etharp.c, and i
> see that i can make a query, but this> > only, gives an indication of whether
> or not an ip address is in use.> > Thats how dhcp is using this module.> > >
> > I my case, the dhcp server and default gateway, is not one and the> >
> same.> > Does the reply from the DHCP server when you request an IP address>
> include the gateway to use?> > Kieran> > > >
> _______________________________________________> lwip-users mailing list>
> [email protected]> http://lists.nongnu.org/mailman/listinfo/lwip-users
_________________________________________________________________
Connect to the next generation of MSN Messenger
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users