Mercurial > illumos > onarm
annotate usr/src/cmd/cmd-inet/usr.bin/pppd/ipcp.h @ 4:1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
author | Koji Uno <koji.uno@sun.com> |
---|---|
date | Mon, 31 Aug 2009 14:38:03 +0900 |
parents | c9caec207d52 |
children |
rev | line source |
---|---|
0 | 1 /* |
2 * ipcp.h - IP Control Protocol definitions. | |
3 * | |
4 * Copyright (c) 2000 by Sun Microsystems, Inc. | |
5 * All rights reserved. | |
6 * | |
7 * Copyright (c) 1989 Carnegie Mellon University. | |
8 * All rights reserved. | |
9 * | |
10 * Redistribution and use in source and binary forms are permitted | |
11 * provided that the above copyright notice and this paragraph are | |
12 * duplicated in all such forms and that any documentation, | |
13 * advertising materials, and other materials related to such | |
14 * distribution and use acknowledge that the software was developed | |
15 * by Carnegie Mellon University. The name of the | |
16 * University may not be used to endorse or promote products derived | |
17 * from this software without specific prior written permission. | |
18 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
19 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
20 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
21 * | |
22 * $Id: ipcp.h,v 1.13 1999/03/02 05:35:09 paulus Exp $ | |
23 */ | |
24 | |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
25 #pragma ident "%Z%%M% %I% %E% SMI" |
0 | 26 |
27 /* | |
28 * Options. | |
29 */ | |
30 #define CI_ADDRS 1 /* IP Addresses */ | |
31 #define CI_COMPRESSTYPE 2 /* Compression Type */ | |
32 #define CI_ADDR 3 | |
33 | |
34 #define CI_MS_DNS1 129 /* Primary DNS value */ | |
35 #define CI_MS_WINS1 130 /* Primary WINS value */ | |
36 #define CI_MS_DNS2 131 /* Secondary DNS value */ | |
37 #define CI_MS_WINS2 132 /* Secondary WINS value */ | |
38 #define CI_SUBNET 144 /* Bogus subnet option */ | |
39 | |
40 #define MAX_STATES 16 /* from slcompress.h */ | |
41 | |
42 #define IPCP_VJMODE_OLD 1 /* "old" mode (option # = 0x0037) */ | |
43 #define IPCP_VJMODE_RFC1172 2 /* "old-rfc"mode (option # = 0x002d) */ | |
44 #define IPCP_VJMODE_RFC1332 3 /* "new-rfc"mode (option # = 0x002d, */ | |
45 /* maxslot and slot number compression) */ | |
46 | |
47 #define IPCP_VJ_COMP 0x002d /* current value for VJ compression option*/ | |
48 #define IPCP_VJ_COMP_OLD 0x0037 /* "old" (i.e, broken) value for VJ */ | |
49 /* compression option*/ | |
50 | |
51 typedef struct ipcp_options { | |
52 bool neg_addr; /* Negotiate IP Address? */ | |
53 bool old_addrs; /* Use old (IP-Addresses) option? */ | |
54 bool req_addr; /* Ask peer to send IP address? */ | |
55 bool default_route; /* Assign default route through interface? */ | |
56 bool proxy_arp; /* Make proxy ARP entry for peer? */ | |
57 bool neg_vj; /* Van Jacobson Compression? */ | |
58 bool old_vj; /* use old (short) form of VJ option? */ | |
59 bool accept_local; /* accept peer's value for ouraddr */ | |
60 bool accept_remote; /* accept peer's value for hisaddr */ | |
61 bool req_dns1; /* Ask peer to send primary DNS address? */ | |
62 bool req_dns2; /* Ask peer to send secondary DNS address? */ | |
63 bool cflag; /* VJ slot compression flag */ | |
64 int vj_protocol; /* protocol value to use in VJ option */ | |
65 int maxslotindex; /* values for RFC1332 VJ compression neg. */ | |
66 u_int32_t ouraddr, hisaddr; /* Addresses in NETWORK BYTE ORDER */ | |
67 u_int32_t dnsaddr[2]; /* Primary and secondary MS DNS entries */ | |
68 u_int32_t winsaddr[2]; /* Primary and secondary MS WINS entries */ | |
69 } ipcp_options; | |
70 | |
71 extern fsm ipcp_fsm[]; | |
72 extern ipcp_options ipcp_wantoptions[]; | |
73 extern ipcp_options ipcp_gotoptions[]; | |
74 extern ipcp_options ipcp_allowoptions[]; | |
75 extern ipcp_options ipcp_hisoptions[]; | |
76 | |
77 extern char *ip_ntoa __P((u_int32_t)); | |
78 | |
79 extern struct protent ipcp_protent; | |
80 extern bool ipcp_from_hostname; |