Deleted Added
full compact
ng_ppp.h (59882) ng_ppp.h (64508)
1
2/*
3 * ng_ppp.h
4 *
5 * Copyright (c) 1996-2000 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: Archie Cobbs <archie@whistle.com>
38 *
1
2/*
3 * ng_ppp.h
4 *
5 * Copyright (c) 1996-2000 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: Archie Cobbs <archie@whistle.com>
38 *
39 * $FreeBSD: head/sys/netgraph/ng_ppp.h 59882 2000-05-02 00:09:18Z archie $
39 * $FreeBSD: head/sys/netgraph/ng_ppp.h 64508 2000-08-10 22:45:54Z archie $
40 * $Whistle: ng_ppp.h,v 1.8 1999/01/25 02:40:02 archie Exp $
41 */
42
43#ifndef _NETGRAPH_PPP_H_
44#define _NETGRAPH_PPP_H_
45
46/* Node type name and magic cookie */
47#define NG_PPP_NODE_TYPE "ppp"

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

91 u_int16_t mru; /* peer MRU */
92 u_int32_t latency; /* link latency (in milliseconds) */
93 u_int32_t bandwidth; /* link bandwidth (in bytes/second) */
94};
95
96/* Keep this in sync with the above structure definition */
97#define NG_PPP_LINK_TYPE_INFO { \
98 { \
40 * $Whistle: ng_ppp.h,v 1.8 1999/01/25 02:40:02 archie Exp $
41 */
42
43#ifndef _NETGRAPH_PPP_H_
44#define _NETGRAPH_PPP_H_
45
46/* Node type name and magic cookie */
47#define NG_PPP_NODE_TYPE "ppp"

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

91 u_int16_t mru; /* peer MRU */
92 u_int32_t latency; /* link latency (in milliseconds) */
93 u_int32_t bandwidth; /* link bandwidth (in bytes/second) */
94};
95
96/* Keep this in sync with the above structure definition */
97#define NG_PPP_LINK_TYPE_INFO { \
98 { \
99 { "enableLink", &ng_parse_int8_type }, \
100 { "enableProtoComp", &ng_parse_int8_type }, \
101 { "enableACFComp", &ng_parse_int8_type }, \
102 { "mru", &ng_parse_int16_type }, \
103 { "latency", &ng_parse_int32_type }, \
104 { "bandwidth", &ng_parse_int32_type }, \
99 { "enableLink", &ng_parse_uint8_type }, \
100 { "enableProtoComp", &ng_parse_uint8_type }, \
101 { "enableACFComp", &ng_parse_uint8_type }, \
102 { "mru", &ng_parse_uint16_type }, \
103 { "latency", &ng_parse_uint32_type }, \
104 { "bandwidth", &ng_parse_uint32_type }, \
105 { NULL }, \
106 } \
107}
108
109/* Bundle config structure */
110struct ng_ppp_bund_conf {
111 u_int16_t mrru; /* multilink peer MRRU */
112 u_char enableMultilink; /* enable multilink */

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

123 u_char enableDecryption; /* enable PPP decryption */
124 u_char enableVJCompression; /* enable VJ compression */
125 u_char enableVJDecompression; /* enable VJ decompression */
126};
127
128/* Keep this in sync with the above structure definition */
129#define NG_PPP_BUND_TYPE_INFO { \
130 { \
105 { NULL }, \
106 } \
107}
108
109/* Bundle config structure */
110struct ng_ppp_bund_conf {
111 u_int16_t mrru; /* multilink peer MRRU */
112 u_char enableMultilink; /* enable multilink */

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

123 u_char enableDecryption; /* enable PPP decryption */
124 u_char enableVJCompression; /* enable VJ compression */
125 u_char enableVJDecompression; /* enable VJ decompression */
126};
127
128/* Keep this in sync with the above structure definition */
129#define NG_PPP_BUND_TYPE_INFO { \
130 { \
131 { "mrru", &ng_parse_int16_type }, \
132 { "enableMultilink", &ng_parse_int8_type }, \
133 { "recvShortSeq", &ng_parse_int8_type }, \
134 { "xmitShortSeq", &ng_parse_int8_type }, \
135 { "enableRoundRobin", &ng_parse_int8_type }, \
136 { "enableIP", &ng_parse_int8_type }, \
137 { "enableIPv6", &ng_parse_int8_type }, \
138 { "enableAtalk", &ng_parse_int8_type }, \
139 { "enableIPX", &ng_parse_int8_type }, \
140 { "enableCompression", &ng_parse_int8_type }, \
141 { "enableDecompression", &ng_parse_int8_type }, \
142 { "enableEncryption", &ng_parse_int8_type }, \
143 { "enableDecryption", &ng_parse_int8_type }, \
144 { "enableVJCompression", &ng_parse_int8_type }, \
145 { "enableVJDecompression", &ng_parse_int8_type }, \
131 { "mrru", &ng_parse_uint16_type }, \
132 { "enableMultilink", &ng_parse_uint8_type }, \
133 { "recvShortSeq", &ng_parse_uint8_type }, \
134 { "xmitShortSeq", &ng_parse_uint8_type }, \
135 { "enableRoundRobin", &ng_parse_uint8_type }, \
136 { "enableIP", &ng_parse_uint8_type }, \
137 { "enableIPv6", &ng_parse_uint8_type }, \
138 { "enableAtalk", &ng_parse_uint8_type }, \
139 { "enableIPX", &ng_parse_uint8_type }, \
140 { "enableCompression", &ng_parse_uint8_type }, \
141 { "enableDecompression", &ng_parse_uint8_type }, \
142 { "enableEncryption", &ng_parse_uint8_type }, \
143 { "enableDecryption", &ng_parse_uint8_type }, \
144 { "enableVJCompression", &ng_parse_uint8_type }, \
145 { "enableVJDecompression", &ng_parse_uint8_type }, \
146 { NULL } \
147 } \
148}
149
150/* Total node config structure */
151struct ng_ppp_node_conf {
152 struct ng_ppp_bund_conf bund;
153 struct ng_ppp_link_conf links[NG_PPP_MAX_LINKS];

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

172 u_int32_t runts; /* Too short MP fragments */
173 u_int32_t dupFragments; /* MP frames with duplicate seq # */
174 u_int32_t dropFragments; /* MP fragments we had to drop */
175};
176
177/* Keep this in sync with the above structure definition */
178#define NG_PPP_STATS_TYPE_INFO { \
179 { \
146 { NULL } \
147 } \
148}
149
150/* Total node config structure */
151struct ng_ppp_node_conf {
152 struct ng_ppp_bund_conf bund;
153 struct ng_ppp_link_conf links[NG_PPP_MAX_LINKS];

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

172 u_int32_t runts; /* Too short MP fragments */
173 u_int32_t dupFragments; /* MP frames with duplicate seq # */
174 u_int32_t dropFragments; /* MP fragments we had to drop */
175};
176
177/* Keep this in sync with the above structure definition */
178#define NG_PPP_STATS_TYPE_INFO { \
179 { \
180 { "xmitFrames", &ng_parse_int32_type }, \
181 { "xmitOctets", &ng_parse_int32_type }, \
182 { "recvFrames", &ng_parse_int32_type }, \
183 { "recvOctets", &ng_parse_int32_type }, \
184 { "badProtos", &ng_parse_int32_type }, \
185 { "runts", &ng_parse_int32_type }, \
186 { "dupFragments", &ng_parse_int32_type }, \
187 { "dropFragments", &ng_parse_int32_type }, \
180 { "xmitFrames", &ng_parse_uint32_type }, \
181 { "xmitOctets", &ng_parse_uint32_type }, \
182 { "recvFrames", &ng_parse_uint32_type }, \
183 { "recvOctets", &ng_parse_uint32_type }, \
184 { "badProtos", &ng_parse_uint32_type }, \
185 { "runts", &ng_parse_uint32_type }, \
186 { "dupFragments", &ng_parse_uint32_type }, \
187 { "dropFragments", &ng_parse_uint32_type }, \
188 { NULL } \
189 } \
190}
191
192#endif /* _NETGRAPH_PPP_H_ */
188 { NULL } \
189 } \
190}
191
192#endif /* _NETGRAPH_PPP_H_ */