Darren Reed wrote:
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.
We've added other socket options just to one protocol (I think it was
UDP) in the recent past only for a short period of time to pass until
someone tries to use it with another and it fails, leading to bug/rfe.
There's a lesson to be learned there.
IP_HDRINCL is for use with outbound packets and one half of this
proposal is for dealing with inbound packets (IP_RECVPKTINFO.)
Further, to my knowledge, IP_HDRINCL doesn't let you interact
with the interface choice (ifindex.)
Darren
To be compatible with IPV6_PKTINFO let's support it on all socket types
where IPV6_PKTINFO is supported. Which are udp/tcp/raw.
Rao.
_______________________________________________
networking-discuss mailing list
[email protected]
_______________________________________________
networking-discuss mailing list
[email protected]