summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzec <zec@FreeBSD.org>2010-05-16 14:53:43 +0000
committerzec <zec@FreeBSD.org>2010-05-16 14:53:43 +0000
commit3ab8b1875a4a1094ee1ec544729c082e60ddd66f (patch)
treefe0ffe6ee6a1b73f1ac94cd6a41be607a8c7d0f9
parentc779c4cdfde6c60be24c795ccab20cb548f9ab2b (diff)
downloadFreeBSD-src-3ab8b1875a4a1094ee1ec544729c082e60ddd66f.zip
FreeBSD-src-3ab8b1875a4a1094ee1ec544729c082e60ddd66f.tar.gz
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.
-rw-r--r--sys/netgraph/ng_base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c
index 2a93e58..dba6e75 100644
--- a/sys/netgraph/ng_base.c
+++ b/sys/netgraph/ng_base.c
@@ -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;
OpenPOWER on IntegriCloud