[openbeosnetteam] Re: BUG: ethernet

(Sorry for not replying earlier)

Quoting Waldemar Kornewald:

> What has happened to the net_stack? It worked fine half a year ago, but
> now my PPP stack is crashing and does not unload correctly, stop_stack
> is crashing after a second "ifconfig -a" and the ethernet module is
> crashing!
> It's really time for a clean netstack.
> Why does the stack driver unload itself (I remember this causing crashes
> a long time ago)? The netstack does not crash when it's kept in memory.

Indeed, sounds like our net_stack_driver, when unloaded, bring some network
kernel modules with him down. It's an issue that was fixed long ago, but it
seems we regress here. Damn.

Recent changes made on the kernel net stack driver were workarounds to allow the
stack running under Haiku. Haiku were all the time initing kernel modules at
each get_module() call, not only at first one. It was causing a recursive load
of the "core" module from itself. That was fixed since in the Haiku kernel
modules support code, but I guess we revert the net_stack_driver hacks wrongly.

I don't remember exactly how we drop the need to keep the /dev/net/stack driver
loaded everytime, thought. At start I was for keeping this driver loaded and
only unload it on demand (with an "echo unload > /dev/net/stack" command),
hence the STAY_LOADED'd code in net_stack_driver...
Maybe we should re-enable it by default until we fix again the driver code.

> Is only my computer infected? Maybe someone put a spell on it when I
> left the project? :)

No way, because WE_DONT_DO_THAT!
I haven't test on my machine yet. But I bet this issue will show up there too.

> I want to have a new netstack, Philippe. ;))

Everyone wants that!
I want free time, too.
And Internet access from within BeOS. I've DSL line up again since last month,
but my wifi card is not recognized under BeOS.
Networking sucks sometime ;-)

- Philippe

Other related posts: