From: James Morris <jmorris@namei.org>
To: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Subject: Re: netlink recvmsg() and MSG_TRUNC
Date: Tue, 6 Mar 2007 18:40:57 -0500 (EST) [thread overview]
Message-ID: <Line.LNX.4.64.0703061839450.25840@d.namei> (raw)
In-Reply-To: <20070306.151953.112290310.davem@davemloft.net>
On Tue, 6 Mar 2007, David Miller wrote:
> I guess one thing the user could do when it sees MSG_TRUNC
> is keep calling recvmsg() until the receive queue is emptied
> of packets, in order to get that pesky nlk->cb cleared to
> NULL, then resubmit.
>
> But that's rediculous and complicated.
>
> Any ideas?
Only slightly less complicated: user calls recvmsg() once with a new flag
MSG_FLUSH, which causes the queue to be flushed, then resubmits ?
- James
--
James Morris
<jmorris@namei.org>
next prev parent reply other threads:[~2007-03-06 23:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-06 23:19 netlink recvmsg() and MSG_TRUNC David Miller
2007-03-06 23:40 ` James Morris [this message]
2007-03-06 23:49 ` Herbert Xu
2007-03-06 23:57 ` Stephen Hemminger
2007-03-07 0:04 ` Herbert Xu
2007-03-07 0:02 ` David Miller
2007-03-07 0:04 ` Herbert Xu
2007-03-07 0:05 ` David Miller
2007-03-07 0:07 ` Herbert Xu
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=Line.LNX.4.64.0703061839450.25840@d.namei \
--to=jmorris@namei.org \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).