diff options
| author | Archie Cobbs <archie@FreeBSD.org> | 2000-08-22 18:52:16 +0000 |
|---|---|---|
| committer | Archie Cobbs <archie@FreeBSD.org> | 2000-08-22 18:52:16 +0000 |
| commit | c40932856f165f6ce2052c296e7ff47aa381635f (patch) | |
| tree | d9411f1a4863a88a3f03aa4ab672eb7dad5ea99e | |
| parent | 3b8e99cc3f6cc9562185787d6149f025e55efaef (diff) | |
Notes
| -rw-r--r-- | sys/netgraph/ng_async.h | 22 | ||||
| -rw-r--r-- | sys/netgraph/ng_bpf.c | 8 | ||||
| -rw-r--r-- | sys/netgraph/ng_bpf.h | 12 | ||||
| -rw-r--r-- | sys/netgraph/ng_cisco.h | 4 | ||||
| -rw-r--r-- | sys/netgraph/ng_ksocket.c | 4 | ||||
| -rw-r--r-- | sys/netgraph/ng_message.h | 24 | ||||
| -rw-r--r-- | sys/netgraph/ng_ppp.h | 58 | ||||
| -rw-r--r-- | sys/netgraph/ng_sample.h | 8 |
8 files changed, 70 insertions, 70 deletions
diff --git a/sys/netgraph/ng_async.h b/sys/netgraph/ng_async.h index 63f6e43a505d..2db6ac0aed42 100644 --- a/sys/netgraph/ng_async.h +++ b/sys/netgraph/ng_async.h @@ -71,14 +71,14 @@ struct ng_async_stat { /* Keep this in sync with the above structure definition */ #define NG_ASYNC_STATS_TYPE_INFO { \ { \ - { "syncOctets", &ng_parse_int32_type }, \ - { "syncFrames", &ng_parse_int32_type }, \ - { "syncOverflows", &ng_parse_int32_type }, \ - { "asyncOctets", &ng_parse_int32_type }, \ - { "asyncFrames", &ng_parse_int32_type }, \ - { "asyncRunts", &ng_parse_int32_type }, \ - { "asyncOverflows", &ng_parse_int32_type }, \ - { "asyncBadCheckSums",&ng_parse_int32_type }, \ + { "syncOctets", &ng_parse_uint32_type }, \ + { "syncFrames", &ng_parse_uint32_type }, \ + { "syncOverflows", &ng_parse_uint32_type }, \ + { "asyncOctets", &ng_parse_uint32_type }, \ + { "asyncFrames", &ng_parse_uint32_type }, \ + { "asyncRunts", &ng_parse_uint32_type }, \ + { "asyncOverflows", &ng_parse_uint32_type }, \ + { "asyncBadCheckSums",&ng_parse_uint32_type }, \ { NULL }, \ } \ } @@ -95,9 +95,9 @@ struct ng_async_cfg { #define NG_ASYNC_CONFIG_TYPE_INFO { \ { \ { "enabled", &ng_parse_int8_type }, \ - { "amru", &ng_parse_int16_type }, \ - { "smru", &ng_parse_int16_type }, \ - { "accm", &ng_parse_int32_type }, \ + { "amru", &ng_parse_uint16_type }, \ + { "smru", &ng_parse_uint16_type }, \ + { "accm", &ng_parse_hint32_type }, \ { NULL }, \ } \ } diff --git a/sys/netgraph/ng_bpf.c b/sys/netgraph/ng_bpf.c index f3c979f33bb0..245024857df6 100644 --- a/sys/netgraph/ng_bpf.c +++ b/sys/netgraph/ng_bpf.c @@ -94,10 +94,10 @@ static int ng_bpf_setprog(hook_p hook, const struct ng_bpf_hookprog *hp); /* Parse type for one struct bfp_insn */ static const struct ng_parse_struct_info ng_bpf_insn_type_info = { { - { "code", &ng_parse_int16_type }, - { "jt", &ng_parse_int8_type }, - { "jf", &ng_parse_int8_type }, - { "k", &ng_parse_int32_type }, + { "code", &ng_parse_hint16_type }, + { "jt", &ng_parse_uint8_type }, + { "jf", &ng_parse_uint8_type }, + { "k", &ng_parse_uint32_type }, { NULL } } }; diff --git a/sys/netgraph/ng_bpf.h b/sys/netgraph/ng_bpf.h index 474fd2a1183a..5e0b5d95e958 100644 --- a/sys/netgraph/ng_bpf.h +++ b/sys/netgraph/ng_bpf.h @@ -84,12 +84,12 @@ struct ng_bpf_hookstat { /* Keep this in sync with the above structure definition */ #define NG_BPF_HOOKSTAT_TYPE_INFO { \ { \ - { "recvFrames", &ng_parse_int64_type }, \ - { "recvOctets", &ng_parse_int64_type }, \ - { "recvMatchFrames", &ng_parse_int64_type }, \ - { "recvMatchOctets", &ng_parse_int64_type }, \ - { "xmitFrames", &ng_parse_int64_type }, \ - { "xmitOctets", &ng_parse_int64_type }, \ + { "recvFrames", &ng_parse_uint64_type }, \ + { "recvOctets", &ng_parse_uint64_type }, \ + { "recvMatchFrames", &ng_parse_uint64_type }, \ + { "recvMatchOctets", &ng_parse_uint64_type }, \ + { "xmitFrames", &ng_parse_uint64_type }, \ + { "xmitOctets", &ng_parse_uint64_type }, \ { NULL }, \ } \ } diff --git a/sys/netgraph/ng_cisco.h b/sys/netgraph/ng_cisco.h index be390afa0094..53b3cf484455 100644 --- a/sys/netgraph/ng_cisco.h +++ b/sys/netgraph/ng_cisco.h @@ -84,8 +84,8 @@ struct ng_cisco_stats { /* Keep this in sync with the above structure definition */ #define NG_CISCO_STATS_TYPE_INFO { \ { \ - { "seqRetries", &ng_parse_int32_type }, \ - { "keepAlivePeriod", &ng_parse_int32_type }, \ + { "seqRetries", &ng_parse_uint32_type }, \ + { "keepAlivePeriod", &ng_parse_uint32_type }, \ { NULL }, \ } \ } diff --git a/sys/netgraph/ng_ksocket.c b/sys/netgraph/ng_ksocket.c index 4a64090095b8..3b6c3e07bd43 100644 --- a/sys/netgraph/ng_ksocket.c +++ b/sys/netgraph/ng_ksocket.c @@ -161,8 +161,8 @@ static const struct ng_parse_type ng_ksocket_generic_sockdata_type = { /* Type for a generic struct sockaddr */ static const struct ng_parse_struct_info ng_parse_generic_sockaddr_type_info = { { - { "len", &ng_parse_int8_type }, - { "family", &ng_parse_int8_type }, + { "len", &ng_parse_uint8_type }, + { "family", &ng_parse_uint8_type }, { "data", &ng_ksocket_generic_sockdata_type }, { NULL } } diff --git a/sys/netgraph/ng_message.h b/sys/netgraph/ng_message.h index 6b3c1ab008c4..6848eb84a9f5 100644 --- a/sys/netgraph/ng_message.h +++ b/sys/netgraph/ng_message.h @@ -69,13 +69,13 @@ struct ng_mesg { /* Keep this in sync with the above structure definition */ #define NG_GENERIC_NG_MESG_INFO(dtype) { \ { \ - { "version", &ng_parse_int8_type }, \ - { "spare", &ng_parse_int8_type }, \ - { "arglen", &ng_parse_int16_type }, \ - { "flags", &ng_parse_int32_type }, \ - { "token", &ng_parse_int32_type }, \ - { "typecookie", &ng_parse_int32_type }, \ - { "cmd", &ng_parse_int32_type }, \ + { "version", &ng_parse_uint8_type }, \ + { "spare", &ng_parse_uint8_type }, \ + { "arglen", &ng_parse_uint16_type }, \ + { "flags", &ng_parse_hint32_type }, \ + { "token", &ng_parse_uint32_type }, \ + { "typecookie", &ng_parse_uint32_type }, \ + { "cmd", &ng_parse_uint32_type }, \ { "cmdstr", &ng_parse_cmdbuf_type }, \ { "data", (dtype) }, \ { NULL }, \ @@ -189,8 +189,8 @@ struct nodeinfo { { \ { "name", &ng_parse_nodebuf_type }, \ { "type", &ng_parse_typebuf_type }, \ - { "id", &ng_parse_int32_type }, \ - { "hooks", &ng_parse_int32_type }, \ + { "id", &ng_parse_hint32_type }, \ + { "hooks", &ng_parse_uint32_type }, \ { NULL }, \ } \ } @@ -235,7 +235,7 @@ struct namelist { /* Keep this in sync with the above structure definition */ #define NG_GENERIC_LISTNODES_INFO(niarraytype) { \ { \ - { "numnames", &ng_parse_int32_type }, \ + { "numnames", &ng_parse_uint32_type }, \ { "nodeinfo", (niarraytype) }, \ { NULL }, \ } \ @@ -251,7 +251,7 @@ struct typeinfo { #define NG_GENERIC_TYPEINFO_INFO() { \ { \ { "typename", &ng_parse_typebuf_type }, \ - { "typeinfo", &ng_parse_int32_type }, \ + { "numnodes", &ng_parse_uint32_type }, \ { NULL }, \ } \ } @@ -264,7 +264,7 @@ struct typelist { /* Keep this in sync with the above structure definition */ #define NG_GENERIC_TYPELIST_INFO(tiarraytype) { \ { \ - { "numtypes", &ng_parse_int32_type }, \ + { "numtypes", &ng_parse_uint32_type }, \ { "typeinfo", (tiarraytype) }, \ { NULL }, \ } \ diff --git a/sys/netgraph/ng_ppp.h b/sys/netgraph/ng_ppp.h index a2cc80d19859..ce05881b0857 100644 --- a/sys/netgraph/ng_ppp.h +++ b/sys/netgraph/ng_ppp.h @@ -96,12 +96,12 @@ struct ng_ppp_link_conf { /* Keep this in sync with the above structure definition */ #define NG_PPP_LINK_TYPE_INFO { \ { \ - { "enableLink", &ng_parse_int8_type }, \ - { "enableProtoComp", &ng_parse_int8_type }, \ - { "enableACFComp", &ng_parse_int8_type }, \ - { "mru", &ng_parse_int16_type }, \ - { "latency", &ng_parse_int32_type }, \ - { "bandwidth", &ng_parse_int32_type }, \ + { "enableLink", &ng_parse_uint8_type }, \ + { "enableProtoComp", &ng_parse_uint8_type }, \ + { "enableACFComp", &ng_parse_uint8_type }, \ + { "mru", &ng_parse_uint16_type }, \ + { "latency", &ng_parse_uint32_type }, \ + { "bandwidth", &ng_parse_uint32_type }, \ { NULL }, \ } \ } @@ -128,21 +128,21 @@ struct ng_ppp_bund_conf { /* Keep this in sync with the above structure definition */ #define NG_PPP_BUND_TYPE_INFO { \ { \ - { "mrru", &ng_parse_int16_type }, \ - { "enableMultilink", &ng_parse_int8_type }, \ - { "recvShortSeq", &ng_parse_int8_type }, \ - { "xmitShortSeq", &ng_parse_int8_type }, \ - { "enableRoundRobin", &ng_parse_int8_type }, \ - { "enableIP", &ng_parse_int8_type }, \ - { "enableIPv6", &ng_parse_int8_type }, \ - { "enableAtalk", &ng_parse_int8_type }, \ - { "enableIPX", &ng_parse_int8_type }, \ - { "enableCompression", &ng_parse_int8_type }, \ - { "enableDecompression", &ng_parse_int8_type }, \ - { "enableEncryption", &ng_parse_int8_type }, \ - { "enableDecryption", &ng_parse_int8_type }, \ - { "enableVJCompression", &ng_parse_int8_type }, \ - { "enableVJDecompression", &ng_parse_int8_type }, \ + { "mrru", &ng_parse_uint16_type }, \ + { "enableMultilink", &ng_parse_uint8_type }, \ + { "recvShortSeq", &ng_parse_uint8_type }, \ + { "xmitShortSeq", &ng_parse_uint8_type }, \ + { "enableRoundRobin", &ng_parse_uint8_type }, \ + { "enableIP", &ng_parse_uint8_type }, \ + { "enableIPv6", &ng_parse_uint8_type }, \ + { "enableAtalk", &ng_parse_uint8_type }, \ + { "enableIPX", &ng_parse_uint8_type }, \ + { "enableCompression", &ng_parse_uint8_type }, \ + { "enableDecompression", &ng_parse_uint8_type }, \ + { "enableEncryption", &ng_parse_uint8_type }, \ + { "enableDecryption", &ng_parse_uint8_type }, \ + { "enableVJCompression", &ng_parse_uint8_type }, \ + { "enableVJDecompression", &ng_parse_uint8_type }, \ { NULL } \ } \ } @@ -177,14 +177,14 @@ struct ng_ppp_link_stat { /* Keep this in sync with the above structure definition */ #define NG_PPP_STATS_TYPE_INFO { \ { \ - { "xmitFrames", &ng_parse_int32_type }, \ - { "xmitOctets", &ng_parse_int32_type }, \ - { "recvFrames", &ng_parse_int32_type }, \ - { "recvOctets", &ng_parse_int32_type }, \ - { "badProtos", &ng_parse_int32_type }, \ - { "runts", &ng_parse_int32_type }, \ - { "dupFragments", &ng_parse_int32_type }, \ - { "dropFragments", &ng_parse_int32_type }, \ + { "xmitFrames", &ng_parse_uint32_type }, \ + { "xmitOctets", &ng_parse_uint32_type }, \ + { "recvFrames", &ng_parse_uint32_type }, \ + { "recvOctets", &ng_parse_uint32_type }, \ + { "badProtos", &ng_parse_uint32_type }, \ + { "runts", &ng_parse_uint32_type }, \ + { "dupFragments", &ng_parse_uint32_type }, \ + { "dropFragments", &ng_parse_uint32_type }, \ { NULL } \ } \ } diff --git a/sys/netgraph/ng_sample.h b/sys/netgraph/ng_sample.h index faa539c3dda0..accce88e5660 100644 --- a/sys/netgraph/ng_sample.h +++ b/sys/netgraph/ng_sample.h @@ -68,8 +68,8 @@ enum { /* This structure is returned by the NGM_XXX_GET_STATUS command */ struct ngxxxstat { - u_int packets_in; /* packets in from downstream */ - u_int packets_out; /* packets out towards downstream */ + u_int32_t packets_in; /* packets in from downstream */ + u_int32_t packets_out; /* packets out towards downstream */ }; /* @@ -81,8 +81,8 @@ struct ngxxxstat { */ #define NG_XXX_STATS_TYPE_INFO { \ { \ - { "packets_in", &ng_parse_int32_type }, \ - { "packets_out", &ng_parse_int32_type }, \ + { "packets_in", &ng_parse_uint32_type }, \ + { "packets_out", &ng_parse_uint32_type }, \ { NULL }, \ } \ } |
