DHCP
I was surprised that DHCP even existed as a feature.
I looked at lwip, sure enough its there. LWIP_DHCP or something like that.
But it requires a #define to be made in the makefile.
And since it is made from the ps2ips or ps2ip makefiles, the define should be made there. But there is a different #define there, PS2IP_DHCP or something like that, and as far as I can tell, it is the wrong #define and doesn't affect the LWIP_DHCP macro being set.
So the question is, is the dhcp.o actually made, and is it actually getting turned on in lwip ? I would certainly rather use DHCP if I can.
I looked at lwip, sure enough its there. LWIP_DHCP or something like that.
But it requires a #define to be made in the makefile.
And since it is made from the ps2ips or ps2ip makefiles, the define should be made there. But there is a different #define there, PS2IP_DHCP or something like that, and as far as I can tell, it is the wrong #define and doesn't affect the LWIP_DHCP macro being set.
So the question is, is the dhcp.o actually made, and is it actually getting turned on in lwip ? I would certainly rather use DHCP if I can.
Unless it's been changed in the past few months, PS2IP does not support DHCP.
Shoot Pixels Not People!
Makeshift Development
Makeshift Development
Indeed there is the structure for DHCP in the LWIP package - however the dhcp.o file is not built and linked by default.
I had a brief foray into this with the view of implementing it, however time constraints have shelved it for a while.
You can build the latest tagged (V_1_0_ I believe) LWIP package without too much modification, speaking to Oobles and Pukko may help you along the way if you intend to persue it.
I had a brief foray into this with the view of implementing it, however time constraints have shelved it for a while.
You can build the latest tagged (V_1_0_ I believe) LWIP package without too much modification, speaking to Oobles and Pukko may help you along the way if you intend to persue it.
--( someone stole my sig! )--
-
- Posts: 564
- Joined: Sat Jan 17, 2004 10:22 am
- Location: Sweden
- Contact:
-
- Posts: 564
- Joined: Sat Jan 17, 2004 10:22 am
- Location: Sweden
- Contact:
DHCP DOES work with PS2IP
Folks;
After reading these posts about DHCP I was greatly concerned. I've been revving our stack up to PS2IP and had worked my way down the the last item-- DHCP.
However, all is fine. But you DO need to recompile ps2ip, ps2ip2, and smap, and your apps of course if they touch netif. This is because of a little conditional compilation bomb in the netif structure. It expands differently if DHCP is not defined by all parties. So just set PS2IP_DHCP to 1 and LWIP_DHCP also (for good measure).
Have fun-
tjd
After reading these posts about DHCP I was greatly concerned. I've been revving our stack up to PS2IP and had worked my way down the the last item-- DHCP.
However, all is fine. But you DO need to recompile ps2ip, ps2ip2, and smap, and your apps of course if they touch netif. This is because of a little conditional compilation bomb in the netif structure. It expands differently if DHCP is not defined by all parties. So just set PS2IP_DHCP to 1 and LWIP_DHCP also (for good measure).
Have fun-
tjd