home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / SUN / PPP / SUNOS_OL / DDP_PPP.TAR / ipcp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-01-03  |  1.5 KB  |  48 lines

  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.  
  20. /*
  21.  * Options.
  22.  */
  23. #define CI_ADDRS    1    /* IP Addresses */
  24. #define CI_COMPRESSTYPE    2    /* Compression Type */
  25.  
  26. #define IPCP_VJHDR    1    /* Van Jacobson header compression */
  27.  
  28. typedef struct ipcp_options {
  29.     int neg_addrs : 1;        /* Negotiate IP Addresses? */
  30.     u_long ouraddr, hisaddr;    /* Addresses in NETWORK BYTE ORDER */
  31.     int neg_vj : 1;        /* Van Jacobson Compression? */
  32. } ipcp_options;
  33.  
  34. extern fsm ipcp_fsm[];
  35. extern ipcp_options ipcp_wantoptions[];
  36. extern ipcp_options ipcp_gotoptions[];
  37. extern ipcp_options ipcp_allowoptions[];
  38. extern ipcp_options ipcp_hisoptions[];
  39.  
  40. void ipcp_init();
  41. void ipcp_activeopen();
  42. void ipcp_passiveopen();
  43. void ipcp_close();
  44. void ipcp_lowerup();
  45. void ipcp_lowerdown();
  46. void ipcp_input();
  47. void ipcp_protrej();
  48.