From owner-freebsd-arch Thu Dec 16 23: 4:41 1999 Delivered-To: freebsd-arch@freebsd.org Received: from ns1.yes.no (ns1.yes.no [195.204.136.10]) by hub.freebsd.org (Postfix) with ESMTP id F1FFA15075 for ; Thu, 16 Dec 1999 23:04:39 -0800 (PST) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.9.3/8.9.3) with ESMTP id IAA03466 for ; Fri, 17 Dec 1999 08:04:37 +0100 (CET) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id IAA82836 for freebsd-arch@freebsd.org; Fri, 17 Dec 1999 08:04:05 +0100 (MET) Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 6362D14F8D; Thu, 16 Dec 1999 23:03:57 -0800 (PST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id AAA94524; Fri, 17 Dec 1999 00:03:55 -0700 (MST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id AAA78001; Fri, 17 Dec 1999 00:03:55 -0700 (MST) Message-Id: <199912170703.AAA78001@harmony.village.org> To: mobile@freebsd.org Cc: arch@freebsd.org Subject: Card eject and if_detach. Date: Fri, 17 Dec 1999 00:03:55 -0700 From: Warner Losh Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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-arch" in the body of the message