From owner-svn-src-head@FreeBSD.ORG Thu May 13 16:48:29 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 67C661065672; Thu, 13 May 2010 16:48:29 +0000 (UTC) (envelope-from zec@FreeBSD.org) Received: from svn.freebsd.org (unknown [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 575DA8FC15; Thu, 13 May 2010 16:48:29 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o4DGmTtc090875; Thu, 13 May 2010 16:48:29 GMT (envelope-from zec@svn.freebsd.org) Received: (from zec@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o4DGmTeZ090873; Thu, 13 May 2010 16:48:29 GMT (envelope-from zec@svn.freebsd.org) Message-Id: <201005131648.o4DGmTeZ090873@svn.freebsd.org> From: Marko Zec Date: Thu, 13 May 2010 16:48:28 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r208036 - head/sys/netgraph X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 May 2010 16:48:29 -0000 Author: zec Date: Thu May 13 16:48:28 2010 New Revision: 208036 URL: http://svn.freebsd.org/changeset/base/208036 Log: Increase the target buffer for performing NGM_ASCII2BINARY conversion from 2000 bytes to 20 Kbytes, which now matches the buffer size used for NGM_BINARY2ASCII conversions. The aim of this change is to allow for bigger binary structures to be managed via netgraph ASCII messages, until we come up with an API improvement which would get rid of such arbitrary hardcoded limits. MFC after: 3 days Modified: head/sys/netgraph/ng_base.c Modified: head/sys/netgraph/ng_base.c ============================================================================== --- head/sys/netgraph/ng_base.c Thu May 13 16:46:23 2010 (r208035) +++ head/sys/netgraph/ng_base.c Thu May 13 16:48:28 2010 (r208036) @@ -2763,7 +2763,7 @@ ng_generic_msg(node_p here, item_p item, case NGM_ASCII2BINARY: { - int bufSize = 2000; /* XXX hard coded constant */ + int bufSize = 20 * 1024; /* XXX hard coded constant */ const struct ng_cmdlist *c; const struct ng_parse_type *argstype; struct ng_mesg *ascii, *binary;