Dale Ghent wrote:


I have a kernel module (part of OpenAFS) which as part of its "choose the best server to talk to" algorithm requires a list of active interfaces along with their IP and netmask. To do this on Solaris, it uses ILL_START_WALK_ALL()

Obviously, this is making use of a Private function. As a historical reference, the pfil driver did something similar.


Yup :)

With the changes that went in for IP Instances (the Netstack framework) the ILL_* interfaces changed and thus when s10u4 comes out, OpenAFS can't continue to offer binary compat across all Solaris 10 permutations.


Yes, this is an unfortunate truth of the IP Instances project,
where Update 4 is almost like a new version of Solaris for IP.

To get started, you should look at this document:
http://opensolaris.org/os/community/networking/files/pfhooks-design-2006-03-09.pdf

However there were some changes from IP Instances to
this interface as well, but it will serve as the foundation
for what will follow as a public interface.


So, I'd like to re-implement this function in OpenAFS to use Public interfaces as much as possible, but a cursory look around didn't reveal anything apropos to doing so. Perhaps someone more familiar could suggest something? If need be, this functionality of OpenAFS can be moved out of kernel space and into userland... but if possible I'd like to keep it in kernel.


To integrate pfil into Solaris, we had to stop using things like
ILL_START_WALK_ALL() and rely on being autopush'd on top
of devices so that we could see the SIOCSLIFNAME ioctl.

Darren

_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to