sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
ipcp.h
Go to the documentation of this file.
1
/*
2
* ipcp.h - IP Control Protocol definitions.
3
*
4
* Copyright (c) 1984-2000 Carnegie Mellon University. All rights reserved.
5
*
6
* Redistribution and use in source and binary forms, with or without
7
* modification, are permitted provided that the following conditions
8
* are met:
9
*
10
* 1. Redistributions of source code must retain the above copyright
11
* notice, this list of conditions and the following disclaimer.
12
*
13
* 2. Redistributions in binary form must reproduce the above copyright
14
* notice, this list of conditions and the following disclaimer in
15
* the documentation and/or other materials provided with the
16
* distribution.
17
*
18
* 3. The name "Carnegie Mellon University" must not be used to
19
* endorse or promote products derived from this software without
20
* prior written permission. For permission or any legal
21
* details, please contact
22
* Office of Technology Transfer
23
* Carnegie Mellon University
24
* 5000 Forbes Avenue
25
* Pittsburgh, PA 15213-3890
26
* (412) 268-4387, fax: (412) 268-7395
27
* tech-transfer@andrew.cmu.edu
28
*
29
* 4. Redistributions of any form whatsoever must retain the following
30
* acknowledgment:
31
* "This product includes software developed by Computing Services
32
* at Carnegie Mellon University (http://www.cmu.edu/computing/)."
33
*
34
* CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO
35
* THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
36
* AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE
37
* FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
38
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
39
* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
40
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
41
*
42
* $Id: ipcp.h,v 1.14 2002/12/04 23:03:32 paulus Exp $
43
*/
44
49
#include "
netif/ppp/ppp_opts.h
"
50
#if PPP_SUPPORT && PPP_IPV4_SUPPORT
/* don't build if not configured for use in lwipopts.h */
51
52
#ifndef IPCP_H
53
#define IPCP_H
54
55
#ifdef __cplusplus
56
extern
"C"
{
57
#endif
58
59
/*
60
* Options.
61
*/
62
#define CI_ADDRS 1
/* IP Addresses */
63
#if VJ_SUPPORT
64
#define CI_COMPRESSTYPE 2
/* Compression Type */
65
#endif
/* VJ_SUPPORT */
66
#define CI_ADDR 3
67
68
#if LWIP_DNS
69
#define CI_MS_DNS1 129
/* Primary DNS value */
70
#define CI_MS_DNS2 131
/* Secondary DNS value */
71
#endif
/* LWIP_DNS */
72
#if 0
/* UNUSED - WINS */
73
#define CI_MS_WINS1 130
/* Primary WINS value */
74
#define CI_MS_WINS2 132
/* Secondary WINS value */
75
#endif
/* UNUSED - WINS */
76
77
#if VJ_SUPPORT
78
#define MAX_STATES 16
/* from slcompress.h */
79
80
#define IPCP_VJMODE_OLD 1
/* "old" mode (option # = 0x0037) */
81
#define IPCP_VJMODE_RFC1172 2
/* "old-rfc"mode (option # = 0x002d) */
82
#define IPCP_VJMODE_RFC1332 3
/* "new-rfc"mode (option # = 0x002d, */
83
/* maxslot and slot number compression) */
84
85
#define IPCP_VJ_COMP 0x002d
/* current value for VJ compression option*/
86
#define IPCP_VJ_COMP_OLD 0x0037
/* "old" (i.e, broken) value for VJ */
87
/* compression option*/
88
#endif
/* VJ_SUPPORT */
89
90
typedef
struct
ipcp_options {
91
unsigned
int
neg_addr :1;
/* Negotiate IP Address? */
92
unsigned
int
old_addrs :1;
/* Use old (IP-Addresses) option? */
93
unsigned
int
req_addr :1;
/* Ask peer to send IP address? */
94
#if 0
/* UNUSED */
95
unsigned
int
default_route :1;
/* Assign default route through interface? */
96
unsigned
int
replace_default_route :1;
/* Replace default route through interface? */
97
#endif
/* UNUSED */
98
#if 0
/* UNUSED - PROXY ARP */
99
unsigned
int
proxy_arp :1;
/* Make proxy ARP entry for peer? */
100
#endif
/* UNUSED - PROXY ARP */
101
#if VJ_SUPPORT
102
unsigned
int
neg_vj :1;
/* Van Jacobson Compression? */
103
unsigned
int
old_vj :1;
/* use old (short) form of VJ option? */
104
unsigned
int
cflag :1;
105
#endif
/* VJ_SUPPORT */
106
unsigned
int
accept_local :1;
/* accept peer's value for ouraddr */
107
unsigned
int
accept_remote :1;
/* accept peer's value for hisaddr */
108
#if LWIP_DNS
109
unsigned
int
req_dns1 :1;
/* Ask peer to send primary DNS address? */
110
unsigned
int
req_dns2 :1;
/* Ask peer to send secondary DNS address? */
111
#endif
/* LWIP_DNS */
112
113
u32_t ouraddr, hisaddr;
/* Addresses in NETWORK BYTE ORDER */
114
#if LWIP_DNS
115
u32_t dnsaddr[2];
/* Primary and secondary MS DNS entries */
116
#endif
/* LWIP_DNS */
117
#if 0
/* UNUSED - WINS */
118
u32_t winsaddr[2];
/* Primary and secondary MS WINS entries */
119
#endif
/* UNUSED - WINS */
120
121
#if VJ_SUPPORT
122
u16_t vj_protocol;
/* protocol value to use in VJ option */
123
u8_t maxslotindex;
/* values for RFC1332 VJ compression neg. */
124
#endif
/* VJ_SUPPORT */
125
} ipcp_options;
126
127
#if 0
/* UNUSED, already defined by lwIP */
128
char
*ip_ntoa (u32_t);
129
#endif
/* UNUSED, already defined by lwIP */
130
131
extern
const
struct
protent ipcp_protent;
132
133
#ifdef __cplusplus
134
}
135
#endif
136
137
#endif
/* IPCP_H */
138
#endif
/* PPP_SUPPORT && PPP_IPV4_SUPPORT */
ppp_opts.h
core
ps2ip
include
lwip_include
netif
ppp
ipcp.h
Generated by
1.18.0