summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2000-07-03 13:34:18 +0000
committerphk <phk@FreeBSD.org>2000-07-03 13:34:18 +0000
commitaec15566c7a9b50127fb40fbf5ae9c66b1bbf018 (patch)
treeb89fa950ecba2c01b005278180f73adcbadfac27 /sys
parente7f486457aa7b52a0c996b41a4351c072e162f5a (diff)
downloadFreeBSD-src-aec15566c7a9b50127fb40fbf5ae9c66b1bbf018.zip
FreeBSD-src-aec15566c7a9b50127fb40fbf5ae9c66b1bbf018.tar.gz
Experiemntal ascii based device configuration mechanism.
This may or may not survive, decision will be made well before 5.0-R
Diffstat (limited to 'sys')
-rw-r--r--sys/netgraph/ng_base.c8
-rw-r--r--sys/netgraph/ng_message.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c
index 1c0d80e..00ba31a 100644
--- a/sys/netgraph/ng_base.c
+++ b/sys/netgraph/ng_base.c
@@ -267,6 +267,13 @@ static const struct ng_cmdlist ng_generic_cmds[] = {
},
{
NGM_GENERIC_COOKIE,
+ NGM_TEXT_CONFIG,
+ "textconfig",
+ NULL,
+ &ng_parse_string_type
+ },
+ {
+ NGM_GENERIC_COOKIE,
NGM_TEXT_STATUS,
"textstatus",
NULL,
@@ -1589,6 +1596,7 @@ ng_generic_msg(node_p here, struct ng_mesg *msg, const char *retaddr,
break;
}
+ case NGM_TEXT_CONFIG:
case NGM_TEXT_STATUS:
/*
* This one is tricky as it passes the command down to the
diff --git a/sys/netgraph/ng_message.h b/sys/netgraph/ng_message.h
index 7eeb97c..12b65ef 100644
--- a/sys/netgraph/ng_message.h
+++ b/sys/netgraph/ng_message.h
@@ -115,6 +115,7 @@ struct ng_mesg {
#define NGM_TEXT_STATUS 11 /* (optional) get text status report */
#define NGM_BINARY2ASCII 12 /* convert struct ng_mesg to ascii */
#define NGM_ASCII2BINARY 13 /* convert ascii to struct ng_mesg */
+#define NGM_TEXT_CONFIG 14 /* (optional) get/set text config */
/* Structure used for NGM_MKPEER */
struct ngm_mkpeer {
OpenPOWER on IntegriCloud