diff options
author | archie <archie@FreeBSD.org> | 2000-08-10 22:48:03 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 2000-08-10 22:48:03 +0000 |
commit | 4f3c325b7d3600042154ffe8c58a9eb106cec4d9 (patch) | |
tree | ab20d5df8f79595651cab89e83d0384888ef78d6 /sys/netgraph/ng_vjc.h | |
parent | 91912098c3157074ed463a4abc7a017ad139c988 (diff) | |
download | FreeBSD-src-4f3c325b7d3600042154ffe8c58a9eb106cec4d9.zip FreeBSD-src-4f3c325b7d3600042154ffe8c58a9eb106cec4d9.tar.gz |
- Add new control message NGM_VJC_GET_CONFIG
- Implement control message ASCII'fication for all control messages
Diffstat (limited to 'sys/netgraph/ng_vjc.h')
-rw-r--r-- | sys/netgraph/ng_vjc.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/netgraph/ng_vjc.h b/sys/netgraph/ng_vjc.h index 7d808c9..616f3ab 100644 --- a/sys/netgraph/ng_vjc.h +++ b/sys/netgraph/ng_vjc.h @@ -45,7 +45,7 @@ /* Node type name and magic cookie */ #define NG_VJC_NODE_TYPE "vjc" -#define NGM_VJC_COOKIE 868219209 +#define NGM_VJC_COOKIE 868219210 /* Hook names */ #define NG_VJC_HOOK_IP "ip" /* normal IP traffic */ @@ -65,9 +65,21 @@ struct ngm_vjc_config { u_char compressCID; /* OK to compress outgoing CID's */ }; +/* Keep this in sync with the above structure definition */ +#define NG_VJC_CONFIG_TYPE_INFO { \ + { \ + { "enableComp", &ng_parse_uint8_type }, \ + { "enableDecomp", &ng_parse_uint8_type }, \ + { "maxChannel", &ng_parse_uint8_type }, \ + { "compressCID", &ng_parse_uint8_type }, \ + { NULL }, \ + } \ +} + /* Netgraph commands */ enum { NGM_VJC_SET_CONFIG, /* Supply a struct ngm_vjc_config */ + NGM_VJC_GET_CONFIG, /* Returns a struct ngm_vjc_config */ NGM_VJC_GET_STATE, /* Returns current struct slcompress */ NGM_VJC_CLR_STATS, /* Clears statistics counters */ NGM_VJC_RECV_ERROR, /* Indicate loss of incoming frame */ |