1/*	$NetBSD: ipxcp.h,v 1.1.1.1 2005/02/20 10:28:49 cube Exp $	*/
2
3/*
4 * ipxcp.h - IPX Control Protocol definitions.
5 *
6 * Copyright (c) 1984-2000 Carnegie Mellon University. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
11 *
12 * 1. Redistributions of source code must retain the above copyright
13 *    notice, this list of conditions and the following disclaimer.
14 *
15 * 2. Redistributions in binary form must reproduce the above copyright
16 *    notice, this list of conditions and the following disclaimer in
17 *    the documentation and/or other materials provided with the
18 *    distribution.
19 *
20 * 3. The name "Carnegie Mellon University" must not be used to
21 *    endorse or promote products derived from this software without
22 *    prior written permission. For permission or any legal
23 *    details, please contact
24 *      Office of Technology Transfer
25 *      Carnegie Mellon University
26 *      5000 Forbes Avenue
27 *      Pittsburgh, PA  15213-3890
28 *      (412) 268-4387, fax: (412) 268-7395
29 *      tech-transfer@andrew.cmu.edu
30 *
31 * 4. Redistributions of any form whatsoever must retain the following
32 *    acknowledgment:
33 *    "This product includes software developed by Computing Services
34 *     at Carnegie Mellon University (http://www.cmu.edu/computing/)."
35 *
36 * CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO
37 * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
38 * AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE
39 * FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
40 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
41 * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
42 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
43 *
44 * Id: ipxcp.h,v 1.5 2002/12/04 23:03:32 paulus Exp
45 */
46
47/*
48 * Options.
49 */
50#define IPX_NETWORK_NUMBER        1   /* IPX Network Number */
51#define IPX_NODE_NUMBER           2
52#define IPX_COMPRESSION_PROTOCOL  3
53#define IPX_ROUTER_PROTOCOL       4
54#define IPX_ROUTER_NAME           5
55#define IPX_COMPLETE              6
56
57/* Values for the router protocol */
58#define IPX_NONE		  0
59#define RIP_SAP			  2
60#define NLSP			  4
61
62typedef struct ipxcp_options {
63    bool neg_node;		/* Negotiate IPX node number? */
64    bool req_node;		/* Ask peer to send IPX node number? */
65
66    bool neg_nn;		/* Negotiate IPX network number? */
67    bool req_nn;		/* Ask peer to send IPX network number */
68
69    bool neg_name;		/* Negotiate IPX router name */
70    bool neg_complete;		/* Negotiate completion */
71    bool neg_router;		/* Negotiate IPX router number */
72
73    bool accept_local;		/* accept peer's value for ournode */
74    bool accept_remote;		/* accept peer's value for hisnode */
75    bool accept_network;	/* accept network number */
76
77    bool tried_nlsp;		/* I have suggested NLSP already */
78    bool tried_rip;		/* I have suggested RIP/SAP already */
79
80    u_int32_t his_network;	/* base network number */
81    u_int32_t our_network;	/* our value for network number */
82    u_int32_t network;		/* the final network number */
83
84    u_char his_node[6];		/* peer's node number */
85    u_char our_node[6];		/* our node number */
86    u_char name [48];		/* name of the router */
87    int    router;		/* routing protocol */
88} ipxcp_options;
89
90extern fsm ipxcp_fsm[];
91extern ipxcp_options ipxcp_wantoptions[];
92extern ipxcp_options ipxcp_gotoptions[];
93extern ipxcp_options ipxcp_allowoptions[];
94extern ipxcp_options ipxcp_hisoptions[];
95
96extern struct protent ipxcp_protent;
97