DHCP

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
apache37
Posts: 76
Joined: Fri Jun 04, 2004 3:13 pm

DHCP

Post by apache37 »

Is this an issue with PS2SMAP? It never seems to work and I was wondering if anyone has looked into it.
Guest

Post 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.
User avatar
Drakonite
Site Admin
Posts: 990
Joined: Sat Jan 17, 2004 1:30 am
Contact:

Post by Drakonite »

Unless it's been changed in the past few months, PS2IP does not support DHCP.
Shoot Pixels Not People!
Makeshift Development
apache37
Posts: 76
Joined: Fri Jun 04, 2004 3:13 pm

Post 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.
boomint
Posts: 80
Joined: Tue Apr 13, 2004 2:21 am
Location: Sheffield, UK

Post 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.
--( someone stole my sig! )--
apache37
Posts: 76
Joined: Fri Jun 04, 2004 3:13 pm

Post 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 :)
blackdroid
Posts: 564
Joined: Sat Jan 17, 2004 10:22 am
Location: Sweden
Contact:

Post by blackdroid »

eh if you aint willing to put the time down into making dhcp happen dont ask others to do it for you.
Kung VU
apache37
Posts: 76
Joined: Fri Jun 04, 2004 3:13 pm

Post 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.
blackdroid
Posts: 564
Joined: Sat Jan 17, 2004 10:22 am
Location: Sweden
Contact:

Post 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.
Kung VU
tjd
Posts: 23
Joined: Thu May 27, 2004 1:54 am
Location: Austin, TX
Contact:

DHCP DOES work with PS2IP

Post 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
Post Reply