home *** CD-ROM | disk | FTP | other *** search
- /*
- * ipcp.h - IP Control Protocol definitions.
- *
- * Copyright (c) 1989 Carnegie Mellon University.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms are permitted
- * provided that the above copyright notice and this paragraph are
- * duplicated in all such forms and that any documentation,
- * advertising materials, and other materials related to such
- * distribution and use acknowledge that the software was developed
- * by Carnegie Mellon University. The name of the
- * University may not be used to endorse or promote products derived
- * from this software without specific prior written permission.
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
- * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
- */
-
- /*
- * Options.
- */
- #define CI_ADDRS 1 /* IP Addresses */
- #define CI_COMPRESSTYPE 2 /* Compression Type */
-
- #define IPCP_VJHDR 1 /* Van Jacobson header compression */
-
- typedef struct ipcp_options {
- int neg_addrs : 1; /* Negotiate IP Addresses? */
- u_long ouraddr, hisaddr; /* Addresses in NETWORK BYTE ORDER */
- int neg_vj : 1; /* Van Jacobson Compression? */
- } ipcp_options;
-
- extern fsm ipcp_fsm[];
- extern ipcp_options ipcp_wantoptions[];
- extern ipcp_options ipcp_gotoptions[];
- extern ipcp_options ipcp_allowoptions[];
- extern ipcp_options ipcp_hisoptions[];
-
- void ipcp_init();
- void ipcp_activeopen();
- void ipcp_passiveopen();
- void ipcp_close();
- void ipcp_lowerup();
- void ipcp_lowerdown();
- void ipcp_input();
- void ipcp_protrej();
-