> > > 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. \\ msm...@freebsd.org \\ -- Joseph Merrick \\ msm...@cdrom.com To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message