Oobles: Thanks. Now, I execute test program via PS2LINK (it loads poweroff.irx, iomanx.irx, ps2dev9.irx and ps2ips.irx), and I'm able to connect to the server socket (with telnet and with a test program), but I cannot receive the data I've sent (got zeroes instead). I can also ping the PS2.
ps2client output:
Code: Select all
loadelf: fname host:tcpip_test.elf secname all
Input ELF format filename = host:tcpip_test.elf
0 00100000 0003c328 ....
Loaded, host:tcpip_test.elf
start address 0x100008
gp address 00000000
Loading SIO2MAN
loadmodule: fname rom0:SIO2MAN args 0 arg
loadmodule: id 33, ret 1
Loading MCMAN
loadmodule: fname rom0:MCMAN args 0 arg
loadmodule: id 34, ret 1
Loading MCSERV
loadmodule: fname rom0:MCSERV args 0 arg
loadmodule: id 35, ret 1
Loading XPADMAN
loadmodule: fname rom0:XPADMAN args 0 arg
Pad Driver for OSD (2000/12/05 18:05) 392, 128
loadmodule: id 36, ret 0
Loading poweroff.irx 2137 bytes
Loading iomanx.irx 7417 bytes
Loading ps2dev9.irx 9429 bytes
DEV9 device driver v1.0 - Copyright (c) 2003 Marcus R. Brown
dev9_driver: CXD9611 (Expansion Bay type) initialized.
Loading ps2ips.irx 5813 bytes
PS2IPS: Module Loaded.
PS2IPS: RPC Thread Started
calling ps2ip_init...
ps2ip_init ok.
socket ok.
bind ok.
Server listening on port 23.
14 bytes sent.
14 bytes sent.
14 bytes sent.
14 bytes sent.
14 bytes sent.
14 bytes sent.
14 bytes sent.
14 bytes sent.
14 bytes sent.
14 bytes sent.
Poweroff!!!!
However, if I execute the same app via napClient (it loads poweroff.irx, iomanx.irx, ps2dev9.irx, ps2ip.irx, ps2snap.irx with arguments and ps2ips.irx) I cannot either ping the PS2 or to connect to it via telnet.
napClient log:
Code: Select all
loadelf: fname host:/exec/elf secname all
loadelf version 3.30
Input ELF format filename = host:/exec/elf
0 00100000 0003c328 ....
Loaded, host:/exec/elf
start address 0x100008
gp address 00000000
read/write allocate memory 4000
Loading SIO2MAN
loadmodule: fname rom0:SIO2MAN args 0 arg
loadmodule: id 27, ret 0
Loading MCMAN
loadmodule: fname rom0:MCMAN args 0 arg
loadmodule: id 28, ret 0
Loading MCSERV
loadmodule: fname rom0:MCSERV args 0 arg
loadmodule: id 29, ret 0
Read IPCONFIG.DAT
open name mc0:/SYS-CONF/IPCONFIG.DAT flag 1 data 44978
open fd = -4
Loading XPADMAN
loadmodule: fname rom0:XPADMAN args 0 arg
Pad Driver for OSD (2000/12/05 18:05) 392, 128
loadmodule: id 30, ret 0
Loading poweroff.irx 2137 bytes
loadbuffer: addrres 4d700 args 0 arg
loadbuffer: id 31, ret 0
Loading iomanx.irx 7417 bytes
loadbuffer: addrres 8c100 args 0 arg
loadbuffer: id 32, ret 0
Loading ps2dev9.irx 9429 bytes
loadbuffer: addrres 8f600 args 0 arg
DEV9 device driver v1.0 - Copyright (c) 2003 Marcus R. Brown
dev9_driver: CXD9611 (Expansion Bay type) initialized.
dev9_driver: Driver loaded.
loadbuffer: id 33, ret 0
Loading ps2ip.irx 78909 bytes
loadbuffer: addrres 8f600 args 0 arg
loadbuffer: id 34, ret 0
Loading ps2smap.irx 19533 bytes
loadbuffer: addrres 8f600 args 40 arg 192.168.0.100
SMAP: argc 4
SMAP: 192.168.0.100 255.255.255.0 192.168.0.1
loadbuffer: id 35, ret 0
Loading ps2ips.irx 5813 bytes
loadbuffer: addrres 8f600 args 0 arg
PS2IPS: Module Loaded.
PS2IPS: RPC Thread Started
loadbuffer: id 36, ret 0
calling ps2ip_init...
ps2ip_init ok.
socket ok.
bind ok.
Server listening on port 23.
Raizor: Thanks for the reply, but how to do that? :-)
PS: I've published the sources here:
tcpip_test.c,
Makefile