[lkml]   [2003]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: sendmsg and IP_PKTINFO
   From: Neil Brown <>
Date: Wed, 19 Feb 2003 15:13:48 +1100

On Tuesday February 18, wrote:
> Alexey and myself totally disagree. We have described for you
> the intended purpose of this feature. Please do not try to use
> it in some other way, it may prove to be painful :-)

Thankyou for making that clear.

You're very welcome, thank you for tracking all of this down.

Currently the sunrpc/svc_udp.c code asks for an IP_PKTINFO from
recvmsg, and passes it verbatim down through sendmsg.

And yes, this is buggy.

My patch checks that the returned data looks believable and, if it
does, zeros the ipi_ifindex field.

Please note also that ipi_addr is ignored on sendmsg().

You don't have to zero it, this is just a reminder about
what the kernel will do with this thing.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:33    [W:0.039 / U:9.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site