Date: Fri, 17 Dec 1999 00:03:55 -0700 From: Warner Losh <imp@village.org> To: mobile@freebsd.org Cc: arch@freebsd.org Subject: Card eject and if_detach. Message-ID: <199912170703.AAA78001@harmony.village.org>
next in thread | raw e-mail | index | archive | help
I've taken the advice to look at netatm atm_nif_detach routine. It appears that all that is needed from the initial hack is to add the route table walking. In testing the fix I found that I could remove the card and then ping or telnet another machine. This always used to crash the machine, and now I get a hostname lookup failure (properly since there is no interface to send to the packets out). The patches that Andrew Gallatin fixed were already in the previous kludge that I committed earlier. I did add a splnet/splx to if_detach which should help some race conditions. Please let me know what you think about sys/net/if.c version 1.81. I added the route deletion code from atm_nif_detach and atm_netif_rtdel. Longer term there needs to be some cleanup in this area, since the inet4 specific code in if_detach. I'm moving on to other pccard things, but will try to revisit this in the fullness of time. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912170703.AAA78001>