aboutsummaryrefslogtreecommitdiff
path: root/sys/netgraph
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2013-12-29 18:34:29 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2013-12-29 18:34:29 +0000
commit5caf0d560d856f740dcb3db3027279b590dacbf1 (patch)
tree28119107e8f6aee11a431cbd30328597f274bdbf /sys/netgraph
parentad4328bac8b269f638b2eb27a03e697142712cb3 (diff)
downloadsrc-5caf0d560d856f740dcb3db3027279b590dacbf1.tar.gz
src-5caf0d560d856f740dcb3db3027279b590dacbf1.zip
Fix the parse type for NGM_LISTTYPES.
Actually, text versions of generic commands are not used, since ngctl(8) uses binary messages for them. And to request a text command one needs a working ngctl(8). That's why the bug was never discovered. I'm pondering on removing the text support for generic commands. Found by: dim with clang 3.4
Notes
Notes: svn path=/head/; revision=260046
Diffstat (limited to 'sys/netgraph')
-rw-r--r--sys/netgraph/ng_base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c
index 0b974ce4fd5b..e83967be8f07 100644
--- a/sys/netgraph/ng_base.c
+++ b/sys/netgraph/ng_base.c
@@ -473,7 +473,7 @@ static const struct ng_parse_type ng_generic_linkinfo_array_type = {
&ng_generic_linkinfo_array_type_info
};
-DEFINE_PARSE_STRUCT_TYPE(typelist, TYPELIST, (&ng_generic_nodeinfoarray_type));
+DEFINE_PARSE_STRUCT_TYPE(typelist, TYPELIST, (&ng_generic_typeinfoarray_type));
DEFINE_PARSE_STRUCT_TYPE(hooklist, HOOKLIST,
(&ng_generic_nodeinfo_type, &ng_generic_linkinfo_array_type));
DEFINE_PARSE_STRUCT_TYPE(listnodes, LISTNODES,
@@ -549,7 +549,7 @@ static const struct ng_cmdlist ng_generic_cmds[] = {
NGM_LISTTYPES,
"listtypes",
NULL,
- &ng_generic_typeinfo_type
+ &ng_generic_typelist_type
},
{
NGM_GENERIC_COOKIE,