[openbeosnetteam] Re: detaching ifnet in netstack

> Sorry for being 'bit late at answering this:

No problem.

> > when I detach an interface there is no code that removes it from the 
> > TCP/IP stack. 
> > Maybe I oversaw something, but should it not be explicitly removed 
> > from the 
> > TCP/IP stack, too (and not only from core)?
> 
> network/core/if.c::if_detach(ifnet * if);
> I'm not sure it's not buggy, and I *know* it's not MT-safe. Anyway, 
> should remove the "if" interface from 
> stack interface list.

I think it was me who corrected the bug there, but this only removes the ifnet 
from the netstack. Does not core/in.c have its own IP address management? What 
happens if the ifnet structure disappears?
Seems that I will have to try it and if it crashess, well... ;)

There is another problem that I have with the netstack:
How can I easily do a SIOCSIFADDR/SIOCSIFDSTADDR from the IPCP module? Just 
calling in_control() does not work. :(
Do you know how to do it?

> > I ask this because the IPCP module is nearly finished (needs testing 
> > which will be done after PAP is finished) 
> > and before having a thousand crashes it is better to ask. ;)
> 
> Thousand!?
> You're way too patient!

Thousand sounded better than three. :)

> BTW, some weeks ago, I've updated Dial Up task estimated percentage 
> complention to 50%.
> Tell me if you've a more accurate value in mind, you're the one in 
> charge here!

Uhm, I think around 70% could be finished now. Only the preflet and the serial 
modem module are left.
Maybe I will modularize the PPPoE add-on to allow sub-interface add-ons for USB 
modems. This will also be done with the normal modem module.

> Nice progress Waldemar.

Thank you. :))
Today I could authenticate using PAP. Only IPCP always gets a NAK. I will find 
the problem and then testing can begin.

Waldemar

Other related posts: