[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Line.LNX.4.64.0703061839450.25840@d.namei>
Date: Tue, 6 Mar 2007 18:40:57 -0500 (EST)
From: James Morris <jmorris@...ei.org>
To: David Miller <davem@...emloft.net>
cc: netdev@...r.kernel.org
Subject: Re: netlink recvmsg() and MSG_TRUNC
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@...ei.org>
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists