Hello there, 

I'm working with lwip on at91sam9260 board and I'm using Eclipse platform.
well, 

When I set at lwipopts.h like this:
                #define LWIP_DHCP  1
                #define LWIP_UDP    1
DHCP works fine..
And when I set like this:
                #define LWIP_DHCP  0
                #define LWIP_UDP    0
My Ip fixed works fine too..

But in my code, users can changed from ip fixed to dhcp on and contrariwise!

When I used uIP protocol, I just did like this:

uip_ipaddr_t ipaddr;
uip_ipaddr(ipaddr, 0, 0, 0, 0);
uip_sethostaddr(ipaddr);
uip_ipaddr(ipaddr, 0, 0, 0, 0);
uip_setdraddr(ipaddr);
uip_ipaddr(ipaddr, 0, 0, 0, 0);
uip_setnetmask(ipaddr);
uip_setethaddr(MacAddress);
dhcpc_init(MacAddress.addr, 6);
uip_restart();

And It worked..
But now, I needed to change to lwip and when I try to change the
configuration It didnt work!

Someone has any idea?

Thanks

Regards

Oliveira, Diego

-- 
View this message in context: 
http://old.nabble.com/Problem-with-use-DHCP-and-IP-fixed-tp30500330p30500330.html
Sent from the lwip-users mailing list archive at Nabble.com.


_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to