source: rtems/cpukit/pppd/ipcp.h @ 58ce601

4.104.114.84.9
Last change on this file since 58ce601 was 2f1b930, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 16, 2001 at 8:42:09 PM

2001-08-16 Mike Siers <mikes@…>

  • Update of PPPD to 2.3.11 from 2.3.5 and addition of an example application. Mike's notes on the modifications:
    • renamed error() function because of namespace problems
    • removed calls to the exit() funciton
    • removed extra files from the pppd source directory
    • defined pppd task constant values in rtemspppd.h
    • modifyied example code to get actual tick per second value
    • placed the pppd 2.3.11 man page file (pppd.8) into the pppd directory
  • pppd/cbcp.c, pppd/cbcp.h, pppd/main.c, pppd/ppp_tty.c, pppd/pppmain.c, pppd/rtems-ppp.c, pppd/rtems-ppp.c: Deleted.
  • pppd/pppd.8, pppd/rtemsmain.c, pppd/rtemspppd.c, pppd/rtemspppd.h, pppd/sys-rtems.c, pppd/utils.c, pppd/example/Makefile, pppd/example/README, pppd/example/init.c, pppd/example/netconfig.h, pppd/example/ppp.conf, pppd/example/pppdapp.c, pppd/example/system.h: New files.
  • modem/ppp_tty.c, net/if_ppp.h, pppd/Makefile.am, pppd/README, pppd/STATUS, pppd/auth.c, pppd/ccp.c, pppd/ccp.h, pppd/chap.c, pppd/chap.h, pppd/chap_ms.c, pppd/chap_ms.h, pppd/chat.c, pppd/demand.c, pppd/fsm.c, pppd/fsm.h, pppd/ipcp.c, pppd/ipcp.h, pppd/ipxcp.c, pppd/ipxcp.h, pppd/lcp.c, pppd/lcp.h, pppd/magic.c, pppd/magic.h, pppd/options.c, pppd/patchlevel.h, pppd/pathnames.h, pppd/pppd.h, pppd/upap.c, pppd/upap.h: Modified.
  • Property mode set to 100644
File size: 2.9 KB
Line 
1/*
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$
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
45typedef struct ipcp_options {
46    bool neg_addr;              /* Negotiate IP Address? */
47    bool old_addrs;             /* Use old (IP-Addresses) option? */
48    bool req_addr;              /* Ask peer to send IP address? */
49    bool default_route;         /* Assign default route through interface? */
50    bool proxy_arp;             /* Make proxy ARP entry for peer? */
51    bool neg_vj;                /* Van Jacobson Compression? */
52    bool old_vj;                /* use old (short) form of VJ option? */
53    bool accept_local;          /* accept peer's value for ouraddr */
54    bool accept_remote;         /* accept peer's value for hisaddr */
55    bool req_dns1;              /* Ask peer to send primary DNS address? */
56    bool req_dns2;              /* Ask peer to send secondary DNS address? */
57    int  vj_protocol;           /* protocol value to use in VJ option */
58    int  maxslotindex;          /* values for RFC1332 VJ compression neg. */
59    bool cflag;
60    u_int32_t ouraddr, hisaddr; /* Addresses in NETWORK BYTE ORDER */
61    u_int32_t dnsaddr[2];       /* Primary and secondary MS DNS entries */
62    u_int32_t winsaddr[2];      /* Primary and secondary MS WINS entries */
63} ipcp_options;
64
65extern fsm ipcp_fsm[];
66extern ipcp_options ipcp_wantoptions[];
67extern ipcp_options ipcp_gotoptions[];
68extern ipcp_options ipcp_allowoptions[];
69extern ipcp_options ipcp_hisoptions[];
70
71char *ip_ntoa __P((u_int32_t));
72
73extern struct protent ipcp_protent;
Note: See TracBrowser for help on using the repository browser.