Date: Wed, 15 Sep 1999 13:04:05 -0700 From: Mike Smith <mike@smith.net.au> To: nate@mt.sri.com (Nate Williams) Cc: "Daniel Hilevich" <danhil@cwnt.com>, freebsd-hackers@FreeBSD.ORG Subject: Re: How can I send signals to a network interface Message-ID: <199909152004.NAA01789@dingo.cdrom.com> In-Reply-To: Your message of "Wed, 15 Sep 1999 14:06:52 MDT." <199909152006.OAA04769@mt.sri.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909152004.NAA01789>