James Carlson wrote:
Sebastien Roy writes:
On Thu, 2009-05-14 at 14:12 -0400, Dan McDonald wrote:
- Insert something into the sendmsg() path that explicitly sets the
local IP & port for a single datagram.
This involves kernel modifications, which would be awful if
anyone requested such a daemon to run on older kernels.
This is the cleanest and most sensible approach, IMO. A new ancillary
data type that specifies the source address and/or port makes sense to
me.
Yep. You could call it IP_PKTINFO. ;-}
Just wondering, are those apps requiring this kind
of usage performance sensitive? Using ancillary
data is not really cheap (need to do some data
handling in user and kernel). If there is such
a performance requirement, does it make sense for
a new sys call?
--
K. Poon.
[email protected]
_______________________________________________
networking-discuss mailing list
[email protected]