[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <C5551D9AAB213A418B7FD5E4A6F30A0702F88D50@ORSMSX106.amr.corp.intel.com>
Date: Fri, 10 Feb 2012 19:30:20 +0000
From: "Rose, Gregory V" <gregory.v.rose@...el.com>
To: David Miller <davem@...emloft.net>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: RE: [RFC PATCH] rtnetlink: Fix problem with buffer allocation
> -----Original Message-----
> From: David Miller [mailto:davem@...emloft.net]
> Sent: Friday, February 10, 2012 11:25 AM
> To: Rose, Gregory V
> Cc: netdev@...r.kernel.org
> Subject: Re: [RFC PATCH] rtnetlink: Fix problem with buffer allocation
>
> From: "Rose, Gregory V" <gregory.v.rose@...el.com>
> Date: Fri, 10 Feb 2012 19:07:15 +0000
>
> > OK, sounds good. How about I also add a field to indicate the
> > application buffer size?
>
> How can this help, we already have it. It's the length field to
> the recvmsg() call.
Ah, I hadn't seen that.
Ok.
- Greg
>
> Also, either the user provided a large enough buffer or he didn't. If
> he didn't we return an error to the recvmsg() call, and the user can
> increase the buffer size and try again.
--
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