Date: Sat, 1 Jul 2000 16:28:36 -0700 (PDT) From: Archie Cobbs <archie@whistle.com> To: imp@village.org (Warner Losh) Cc: archie@whistle.com (Archie Cobbs), ache@FreeBSD.org (Andrey A. Chernov), archie@FreeBSD.org (Archie Cobbs), cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/net if.c if_ethersubr.c if_var.h Message-ID: <200007012328.QAA06644@bubba.whistle.com> In-Reply-To: <200007012021.OAA53771@harmony.village.org> from Warner Losh at "Jul 1, 2000 02:21:43 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
Warner Losh writes: > In message <200007011627.JAA05559@bubba.whistle.com> Archie Cobbs writes: > : The problem is that the interfaces are not very object oriented > : (with respect to type), combined with the dynamically loadable code. > : As an example of the former, all ethernet drivers call if_attach() > : and ether_attach() when connecting, but only if_detach() when > : disconnecting. Perhaps they should all only call ether_attach() > : and ether_detach(). > > It should call both. I thought that pccards all did this, but maybe > I'm mistaken. ether_detach() doesn't exist yet.. that's another solution, of course, to add it and then modify all ethernet drivers to call ether_detach() right before calling if_detach().. this would be most consistent with the way things are now I guess. -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007012328.QAA06644>