Joachim Worringen wrote:
Rao Shoaib schrieb:
James Carlson wrote:
Joachim Worringen writes:
I'm somewhat irritated that Solaris still is (or better: has
become!) unflexible in this respect - esp. compared with Linux...
See CR 4960910. The sonode switch should do what you're asking about,
and was integrated during S10 development.
I can verify that what Jim is suggesting does work. We recently used
it to implement a special type of socket similar to what you are
trying to do (not the same type though). The use of this framework
allows you to implement new socket types without requiring any kernel
changes. I am not sure if Linux if so flexible.
Rao, that's good to hear. But do you maybe have some (skeleton) code
that shows how a kernel module can hook itself into the socket() call
to set the pointers of the sonode struct to it's own functions?
On Solaris you need to add an entry in /etc/sock2path and run
/sbin/soconfig -f /etc/sock2path
This is normally run at system boot time from /etc/inittab.
What you will have to do is simply write the driver for the device that
you specify in /etc/sock2path to implement the functionality you want.
I will email you our code in a separate email.
Rao.
_______________________________________________
networking-discuss mailing list
[email protected]