'\'Fish\' (David B. Trout)' david.b.trout@gmail.com [hercules-390]
2017-05-16 22:55:37 UTC
Hi folks!
Does anyone out there know how to query a tuntap device's capabilities?
I'm working on adding multicast and checksum offloading support to Hercules's LCS device handler (source member 'ctc_lcs.c's "LCS_QueryIPAssists" function), but before I set the bits in the response telling the guest (z/OS, z/VM, etc) that multicast is supported, or that inbound and/or outbound Checksum Offloading is supported, etc, I thought it would be a good idea to ask the actual tuntap device that Hercules was actually using whether or not it actually supported such capabilities. After all, I certainly don't want to lie to the guest and say something is supported when it actually isn't!
I've looked through Linux source code but was unable to make sense of it. Can anyone help me out? Or provide a clue or point me in the right direction? Or just explain it in detail or even better provide some example code that does it if you know how?
Thanks!
(This would be for Linux by the way. Once I know how it's done on Linux I would then code identical functionality in Windows CTCI-WIN so the Hercules code for either would be identical.)
Does anyone out there know how to query a tuntap device's capabilities?
I'm working on adding multicast and checksum offloading support to Hercules's LCS device handler (source member 'ctc_lcs.c's "LCS_QueryIPAssists" function), but before I set the bits in the response telling the guest (z/OS, z/VM, etc) that multicast is supported, or that inbound and/or outbound Checksum Offloading is supported, etc, I thought it would be a good idea to ask the actual tuntap device that Hercules was actually using whether or not it actually supported such capabilities. After all, I certainly don't want to lie to the guest and say something is supported when it actually isn't!
I've looked through Linux source code but was unable to make sense of it. Can anyone help me out? Or provide a clue or point me in the right direction? Or just explain it in detail or even better provide some example code that does it if you know how?
Thanks!
(This would be for Linux by the way. Once I know how it's done on Linux I would then code identical functionality in Windows CTCI-WIN so the Hercules code for either would be identical.)
--
"Fish" (David B. Trout)
Software Development Laboratories
http://www.softdevlabs.com
mail: ***@softdevlabs.com
"Fish" (David B. Trout)
Software Development Laboratories
http://www.softdevlabs.com
mail: ***@softdevlabs.com