From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Grubb Subject: Re: the method to get nlmsg_len in audit_send() is error Date: Mon, 28 Jul 2008 12:45:41 -0400 Message-ID: <200807281245.41813.sgrubb@redhat.com> References: <488D8B3D.5040405@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <488D8B3D.5040405@cn.fujitsu.com> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: Yu Zhiguo Cc: audit-list List-Id: linux-audit@redhat.com On Monday 28 July 2008 05:02:53 Yu Zhiguo wrote: > I think micro NLMSG_ALIGN is needless for nlmsg_len, NLMSG_SPACE is > sufficient. because NLMSG_SPACE includes the rounded netlink header size. I guess you are right. I checked the macros just be sure since this is some of the oldest code in the audit project and hasn't changed in a very long time. Applied. Thanks for the patch. -Steve