MFC r208036:

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.
This commit is contained in:
Marko Zec 2010-05-16 14:53:43 +00:00
parent 7c8102300a
commit 49856a78b5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/stable/8/; revision=208146

View File

@ -2763,7 +2763,7 @@ ng_generic_msg(node_p here, item_p item, hook_p lasthook)
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;