[openbeosnetteam] Userland debugging/tests plateform progress...

  • From: "Philippe Houdoin" <philippe.houdoin@xxxxxxx>
  • To: openbeosnetteam@xxxxxxxxxxxxx
  • Date: Thu, 23 Oct 2003 23:13:10 GMT

Hi guys,

You should find under src/tests/add-ons/kernel/network/* the freshly 
new network userland tester app and the Jamfiles to build 
our network kernel add-ons as userland add-ons.
I'll add ones for the still missing add-ons "interfaces/ppp/*" and "ppp
/*" sub-addons in next days. 

So, to test our current stack from userland:
$ cd src/tests/add-ons/kernel/network
$ jam

You should get these:

- under distro/x86.R1/beos/system/add-ons/userland/network/ :

which are our stack modules, but built as userland add-ons not kernel 

- under tests/add-ons/kernel/network/ :
  net_stack_tester, the userland stack tester app, hosting the core 
module and his sub-modules

Simply create a link named "add-ons" targetting distro/x86.R1/beos/
system/add-ons/userland folder.
I'll try to add this link creation in the net_stack_tester Jamfile, if 
I managed to find my way to do it...

Anyway, then you're set to start the stack in userland by running 
net_stack_tester (from Terminal, it's better!) :

$ net_stack_tester
Starting core module...
module: network/protocols/icmp
module: network/protocols/ipv4
module: network/protocols/raw
module: network/protocols/tcp
module: network/protocols/udp
B_KEEP_LOADED flag set for /data/projects/openbeos/current/distro/
x86.R1/beos/system/add-ons/userland/network/protocols/udp module addon. 
Will be *never* unloaded!
        UDP Module provided by network/protocols/udp
        TCP Module provided by network/protocols/tcp
        Raw IP module provided by network/protocols/raw
        IPv4 provided by network/protocols/ipv4
        ICMP (v4) provided by network/protocols/icmp
module: network/interfaces/ethernet
I couldn't find any drivers in the api driver directory
Unable to open /dev/net/rtl8139/0, -1 [General OS error]
I couldn't find any drivers in the server driver directory
Unable to open /dev/net/vt86c100/0, -1 [General OS error]
module: network/interfaces/loopback
Userland net stack (net_server) is running. Press <Return> to quit.

For testing app -> stack interaction, you should setup the use of /dev/
net/server driver by our libnet.so:
$ export NET_STACK_DRIVER_PATH=/dev/net/server
$ ping www.openbeos.org

All next stack access made thru libnet.so will go to the userland 
stack, via net_stack_tester.

So, this task (userland stack debug plateform) is not yet completed, 
but I think I'm progressing, and I hope it can speed up 
stack current modules bug hunting and new modules development.

- Philippe

Fortune Cookie Says:

"He is now rising from affluence to poverty."
                -- Mark Twain

Other related posts: