From: "David S. Miller" <davem@redhat.com>
To: neilb@cse.unsw.edu.au
Cc: herbert@gondor.apana.org.au, linux-kernel@vger.kernel.org,
kuznet@ms2.inr.ac.ru
Subject: Re: sendmsg and IP_PKTINFO
Date: Tue, 18 Feb 2003 20:03:53 -0800 (PST) [thread overview]
Message-ID: <20030218.200353.133754841.davem@redhat.com> (raw)
In-Reply-To: <15955.1148.929905.130326@notabene.cse.unsw.edu.au>
From: Neil Brown <neilb@cse.unsw.edu.au>
Date: Wed, 19 Feb 2003 15:13:48 +1100
On Tuesday February 18, davem@redhat.com 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.
next prev parent reply other threads:[~2003-02-19 4:11 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-15 1:53 Neil Brown
2003-02-18 7:10 ` David S. Miller
2003-02-18 11:00 ` sendmsg and IP_PKTINFO Neil Brown
2003-02-18 16:06 ` kuznet
2003-02-18 23:35 ` Neil Brown
2003-02-18 23:56 ` David S. Miller
2003-02-19 3:52 ` David S. Miller
2003-02-19 4:13 ` Neil Brown
2003-02-19 4:03 ` David S. Miller [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-02-18 19:57 Julian Anastasov
2003-02-18 23:39 ` Neil Brown
[not found] <15954.4693.893707.471216@notabene.cse.unsw.edu.au.suse.lists.linux.kernel>
[not found] ` <200302181606.TAA03838@sex.inr.ac.ru.suse.lists.linux.kernel>
[not found] ` <15954.49970.860809.75554@notabene.cse.unsw.edu.au.suse.lists.linux.kernel>
[not found] ` <20030218.155651.108799644.davem@redhat.com.suse.lists.linux.kernel>
2003-02-19 8:17 ` Andi Kleen
2003-02-19 8:06 ` David S. Miller
2003-02-21 3:51 ` Neil Brown
2003-02-21 4:17 ` David S. Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030218.200353.133754841.davem@redhat.com \
--to=davem@redhat.com \
--cc=herbert@gondor.apana.org.au \
--cc=kuznet@ms2.inr.ac.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=neilb@cse.unsw.edu.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.