From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philip Craig Subject: Re: ulogd2 and nflog prefix Date: Mon, 15 May 2006 16:59:59 +1000 Message-ID: <446826EF.1070004@snapgear.com> References: <4467EC50.3030907@snapgear.com> <44681346.3000301@trash.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Harald Welte , netfilter-devel@lists.netfilter.org Return-path: To: Patrick McHardy In-Reply-To: <44681346.3000301@trash.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org On 05/15/2006 03:36 PM, Patrick McHardy wrote: > Most other netlink users in the kernel dealing with strings use > rtattr_strlcpy these days, which automatically terminates strings. > I think we should do the same for consistency. rtattr_strlcpy seems to be for getting the string out of a message, not for creating a message. It copies the string and adds a null terminator. The terminator in the message is optional. Or do you mean that we should use rtattr_strlcpy in userspace?