From owner-freebsd-hackers Wed Sep 15 13:11:20 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (Postfix) with ESMTP id 9B4C714D9A for ; Wed, 15 Sep 1999 13:11:19 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost.cdrom.com [127.0.0.1]) by dingo.cdrom.com (8.9.3/8.8.8) with ESMTP id NAA01789; Wed, 15 Sep 1999 13:04:05 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199909152004.NAA01789@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: nate@mt.sri.com (Nate Williams) Cc: "Daniel Hilevich" , freebsd-hackers@FreeBSD.ORG Subject: Re: How can I send signals to a network interface In-reply-to: Your message of "Wed, 15 Sep 1999 14:06:52 MDT." <199909152006.OAA04769@mt.sri.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 15 Sep 1999 13:04:05 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > I know that in some other Bsd flavours you can use the sysctl functions = > > > which is part > > > of the ifnet struct. In FreeBsd I didn't find anything similiar to it. > > > > Sysctl functions aren't "part of the ifnet struct". You can define > > sysctls for your driver, if you wish, but that's the wrong way to go > > about doing it. > > Especially since sysctl's are still not yet able to deal with multiple > interfaces very easily. (Feel free to correct me if I'm wrong). You can do it, but it's not pretty, and certainly not something I'd recommend in the face of a fully functional alternative. > Therefore, if you have two 'network interfaces' that are serviced by the > same driver, it's hard to not have a sysctl change effect them both. Actually, you can. Have a look at the way that the kernel environment code handles retrieval of individual variables, and apply the same principle to indexing interfaces. -- \\ The mind's the standard \\ Mike Smith \\ of the man. \\ msmith@freebsd.org \\ -- Joseph Merrick \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message