In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

Difference between revisions of "/dev/net/ip/top"

From WiiBrew
< /dev‎ | net
Jump to navigation Jump to search
(added SEKRETZ)
(Maybe someone has the time to put that into a nice table)
Line 2: Line 2:
  
 
Fill me in!
 
Fill me in!
 +
 +
socket:
 +
ios_ioctl( fd, 0xF, &inbuf, 0xC, 0, 0);
 +
close:
 +
ios_ioctl( fd, 3, &inbuf, 4, 0, 0);
 +
listen:
 +
ios_ioctl( fd, 0xA, &inbuf, 8, 0, 0);
 +
accept:
 +
ios_ioctl( fd, 1, &inbuf, 4, 0, 0);
 +
bind:
 +
ios_ioctl( fd, 2, &inbuf, 0x24, 0, 0);
 +
connect:
 +
ios_ioctl( fd, 4, &inbuf, 0x24, 0, 0);
 +
GetSockOpt:
 +
ios_ioctl( fd, 8, 0, 0, &outbuf, 0x18);
 +
SetSockOpt:
 +
ios_ioctl( fd, 9, &inbuf, 0x24, 0, 0);
 +
shutdown:
 +
ios_ioctl( fd, 8, &inbuf, 8, 0, 0);
 +
GetHostID:
 +
ios_ioctl( fd, 0x10, 0, 0, 0, 0);
 +
InetAtoN:
 +
ios_ioctl( fd, 0x15, &inbuf, strlen, &outbuf, 4);
  
 
{| border=1
 
{| border=1

Revision as of 15:42, 1 March 2008

Socket Ioctls

Fill me in!

socket:
ios_ioctl( fd, 0xF, &inbuf, 0xC, 0, 0);
close:
ios_ioctl( fd, 3, &inbuf, 4, 0, 0);
listen:
ios_ioctl( fd, 0xA, &inbuf, 8, 0, 0);
accept:
ios_ioctl( fd, 1, &inbuf, 4, 0, 0);
bind:
ios_ioctl( fd, 2, &inbuf, 0x24, 0, 0);
connect:
ios_ioctl( fd, 4, &inbuf, 0x24, 0, 0);
GetSockOpt:
ios_ioctl( fd, 8, 0, 0, &outbuf, 0x18);
SetSockOpt:
ios_ioctl( fd, 9, &inbuf, 0x24, 0, 0);
shutdown:
ios_ioctl( fd, 8, &inbuf, 8, 0, 0);
GetHostID:
ios_ioctl( fd, 0x10, 0, 0, 0, 0);
InetAtoN:
ios_ioctl( fd, 0x15, &inbuf, strlen, &outbuf, 4);
Request number Name arguments notes
0x1? SOAccept ? secret
0x2 SOBind ? ?
0x3 SOClose ? ?
0x4 SOConnect ? ?
0x5 SOFcntl ? ?
0x7 SOGetSockName ? ?
0x8 SOGetSockOpt ? ?
0x9 SOSetSockOpt ? ?
0xA? SOListen ? secret
0xB SOPoll ? ?
0xC SORead / SORecvFrom / SORecv (vector) ? ?
0xD SOSend / SOSendTo (vector) ? ?
0xE SOShutdown ? ?
0xF __SOCreateSocket ? ?
0x10 SOGetHostId none probably returns 32-bit numeric IP
0x11 SOGetHostByName ? ?
0x15 SOInetAtoN ? ?
0x16 SOInetPtoN ? ?
0x17? SOInetNtoP ? secret
0x18 SOGetAddrInfo (vector) ? ?
0x1C SOGetInterfaceOpt (vector) ? ?
0x1D SOSetInterfaceOpt (vector) ? ?
? SOSockAtMark ? secret
? SOSetInterface ? secret
? ICMPSocket ? secret
? ICMPPing ? secret
? ICMPCancel ? secret
? ICMPClose ? secret