Page 1 of 1

DHCP

Posted: Tue Nov 02, 2004 9:51 am
by apache37
Is this an issue with PS2SMAP? It never seems to work and I was wondering if anyone has looked into it.

Posted: Tue Nov 02, 2004 11:40 am
by Guest
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.

Posted: Tue Nov 02, 2004 12:58 pm
by Drakonite
Unless it's been changed in the past few months, PS2IP does not support DHCP.

Posted: Tue Nov 02, 2004 1:35 pm
by apache37
Well there is a dhcp.c and dhcp.h in lwp/src/include and lwp/src/core. Is this feature just off? I understood that if I didn't pass IP params when loading ps2smap.irx then it would try and use dhcp.

Posted: Wed Nov 03, 2004 2:45 am
by boomint
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.

Posted: Sun Nov 21, 2004 2:25 pm
by apache37
Well my ps2sdk setup must have problems. I tried to compile ps2ip.irx with DHCP support and that hung. In fact when I tried to compile without DHCP it still hung. So my setup is hosed.

Can someone compile ps2ip.irx with DHCP enabled?? Then I can test the irx.

Thanks :)

Posted: Mon Nov 22, 2004 5:26 am
by blackdroid
eh if you aint willing to put the time down into making dhcp happen dont ask others to do it for you.

Posted: Mon Nov 22, 2004 5:50 am
by apache37
Well AFAIK it just needs to be enabled in the makefile. I can do that but like I said something is wrong with my setup. I'm not being lazy in the slightest. I don't know why my ps2sdk setup isn't right.

Posted: Mon Nov 22, 2004 7:31 pm
by blackdroid
dhcp as far as i know has never been tested, and I doubt its just a matter of enabling it in the makefile.

DHCP DOES work with PS2IP

Posted: Sun Dec 05, 2004 7:03 am
by tjd
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