Deleted Added
full compact
ng_sample.h (53997) ng_sample.h (64508)
1
2/*
3 * ng_sample.h
4 *
5 * Copyright (c) 1996-1999 Whistle Communications, Inc.
6 * All rights reserved.
7 *
8 * Subject to the following obligations and disclaimer of warranty, use and

--- 22 unchanged lines hidden (view full) ---

31 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
35 * OF SUCH DAMAGE.
36 *
37 * Author: Julian Elischer <julian@whistle.com>
38 *
1
2/*
3 * ng_sample.h
4 *
5 * Copyright (c) 1996-1999 Whistle Communications, Inc.
6 * All rights reserved.
7 *
8 * Subject to the following obligations and disclaimer of warranty, use and

--- 22 unchanged lines hidden (view full) ---

31 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
35 * OF SUCH DAMAGE.
36 *
37 * Author: Julian Elischer <julian@whistle.com>
38 *
39 * $FreeBSD: head/sys/netgraph/ng_sample.h 53997 1999-12-01 19:40:37Z archie $
39 * $FreeBSD: head/sys/netgraph/ng_sample.h 64508 2000-08-10 22:45:54Z archie $
40 * $Whistle: ng_sample.h,v 1.3 1999/01/20 00:22:14 archie Exp $
41 */
42
43#ifndef _NETGRAPH_SAMPLE_H_
44#define _NETGRAPH_SAMPLE_H_
45
46/* Node type name. This should be unique among all netgraph node types */
47#define NG_XXX_NODE_TYPE "sample"

--- 15 unchanged lines hidden (view full) ---

63/* Netgraph commands understood by this node type */
64enum {
65 NGM_XXX_SET_FLAG = 1,
66 NGM_XXX_GET_STATUS,
67};
68
69/* This structure is returned by the NGM_XXX_GET_STATUS command */
70struct ngxxxstat {
40 * $Whistle: ng_sample.h,v 1.3 1999/01/20 00:22:14 archie Exp $
41 */
42
43#ifndef _NETGRAPH_SAMPLE_H_
44#define _NETGRAPH_SAMPLE_H_
45
46/* Node type name. This should be unique among all netgraph node types */
47#define NG_XXX_NODE_TYPE "sample"

--- 15 unchanged lines hidden (view full) ---

63/* Netgraph commands understood by this node type */
64enum {
65 NGM_XXX_SET_FLAG = 1,
66 NGM_XXX_GET_STATUS,
67};
68
69/* This structure is returned by the NGM_XXX_GET_STATUS command */
70struct ngxxxstat {
71 u_int packets_in; /* packets in from downstream */
72 u_int packets_out; /* packets out towards downstream */
71 u_int32_t packets_in; /* packets in from downstream */
72 u_int32_t packets_out; /* packets out towards downstream */
73};
74
75/*
76 * This is used to define the 'parse type' for a struct ngxxxstat, which
77 * is bascially a description of how to convert a binary struct ngxxxstat
78 * to an ASCII string and back. See ng_parse.h for more info.
79 *
80 * This needs to be kept in sync with the above structure definition
81 */
82#define NG_XXX_STATS_TYPE_INFO { \
83 { \
73};
74
75/*
76 * This is used to define the 'parse type' for a struct ngxxxstat, which
77 * is bascially a description of how to convert a binary struct ngxxxstat
78 * to an ASCII string and back. See ng_parse.h for more info.
79 *
80 * This needs to be kept in sync with the above structure definition
81 */
82#define NG_XXX_STATS_TYPE_INFO { \
83 { \
84 { "packets_in", &ng_parse_int32_type }, \
85 { "packets_out", &ng_parse_int32_type }, \
84 { "packets_in", &ng_parse_uint32_type }, \
85 { "packets_out", &ng_parse_uint32_type }, \
86 { NULL }, \
87 } \
88}
89
90#endif /* _NETGRAPH_SAMPLE_H_ */
86 { NULL }, \
87 } \
88}
89
90#endif /* _NETGRAPH_SAMPLE_H_ */