OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [libnetworking/] [pppd/] [ipcp.h] - Blame information for rev 373

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*
2
 * ipcp.h - IP Control Protocol definitions.
3
 *
4
 * Copyright (c) 1989 Carnegie Mellon University.
5
 * All rights reserved.
6
 *
7
 * Redistribution and use in source and binary forms are permitted
8
 * provided that the above copyright notice and this paragraph are
9
 * duplicated in all such forms and that any documentation,
10
 * advertising materials, and other materials related to such
11
 * distribution and use acknowledge that the software was developed
12
 * by Carnegie Mellon University.  The name of the
13
 * University may not be used to endorse or promote products derived
14
 * from this software without specific prior written permission.
15
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
16
 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
17
 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
18
 *
19
 * $Id: ipcp.h,v 1.2 2001-09-27 12:01:57 chris Exp $
20
 */
21
 
22
/*
23
 * Options.
24
 */
25
#define CI_ADDRS        1       /* IP Addresses */
26
#define CI_COMPRESSTYPE 2       /* Compression Type */
27
#define CI_ADDR         3
28
 
29
#define CI_MS_DNS1      129     /* Primary DNS value */
30
#define CI_MS_WINS1     130     /* Primary WINS value */
31
#define CI_MS_DNS2      131     /* Secondary DNS value */
32
#define CI_MS_WINS2     132     /* Secondary WINS value */
33
 
34
#define MAX_STATES 16           /* from slcompress.h */
35
 
36
#define IPCP_VJMODE_OLD 1       /* "old" mode (option # = 0x0037) */
37
#define IPCP_VJMODE_RFC1172 2   /* "old-rfc"mode (option # = 0x002d) */
38
#define IPCP_VJMODE_RFC1332 3   /* "new-rfc"mode (option # = 0x002d, */
39
                                /*  maxslot and slot number compression) */
40
 
41
#define IPCP_VJ_COMP 0x002d     /* current value for VJ compression option*/
42
#define IPCP_VJ_COMP_OLD 0x0037 /* "old" (i.e, broken) value for VJ */
43
                                /* compression option*/
44
 
45
typedef struct ipcp_options {
46
    int neg_addr : 1;           /* Negotiate IP Address? */
47
    int old_addrs : 1;          /* Use old (IP-Addresses) option? */
48
    int req_addr : 1;           /* Ask peer to send IP address? */
49
    int default_route : 1;      /* Assign default route through interface? */
50
    int proxy_arp : 1;          /* Make proxy ARP entry for peer? */
51
    int neg_vj : 1;             /* Van Jacobson Compression? */
52
    int old_vj : 1;             /* use old (short) form of VJ option? */
53
    int accept_local : 1;       /* accept peer's value for ouraddr */
54
    int accept_remote : 1;      /* accept peer's value for hisaddr */
55
    u_short vj_protocol;        /* protocol value to use in VJ option */
56
    u_char maxslotindex, cflag; /* values for RFC1332 VJ compression neg. */
57
    u_int32_t ouraddr, hisaddr; /* Addresses in NETWORK BYTE ORDER */
58
    u_int32_t dnsaddr[2];       /* Primary and secondary MS DNS entries */
59
    u_int32_t winsaddr[2];      /* Primary and secondary MS WINS entries */
60
} ipcp_options;
61
 
62
extern fsm ipcp_fsm[];
63
extern ipcp_options ipcp_wantoptions[];
64
extern ipcp_options ipcp_gotoptions[];
65
extern ipcp_options ipcp_allowoptions[];
66
extern ipcp_options ipcp_hisoptions[];
67
 
68
char *ip_ntoa __P((u_int32_t));
69
 
70
extern struct protent ipcp_protent;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.