On Thu, 2006-04-13 at 10:06 -0400, James Carlson wrote:
> Sebastien Roy writes:
> > I don't see a technical reason not to implement this for SOCK_RAW as
> > well.  Is there a reason why the proposal is limited to SOCK_DGRAM
> > (specifically UDP)?
> 
> I don't think you need it for SOCK_RAW, because you can set the source
> using IP_HDRINCL.

You can't set the output interface, nor receive the input interface with
that.  If it could do everything that's proposed here, then I really
don't see why we're doing this at all instead of just doing IP_HDRINCL
for UDP sockets...

Plus, when the ancillary data and socket options are generalized across
transports (instead of the copy-n-paste mess we have today), it's going
to be more work to disallow this option for raw sockets than it is to
simply let it work.

-Seb


_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to