ppp.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:2k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* ppp.h - PPP global definitions header */
  2. /* Copyright 1995 Wind River Systems, Inc. */
  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. modification history
  22. --------------------
  23. 01a,16jan95,dzb  WRS-ize.
  24. */
  25. #ifndef __INCppph
  26. #define __INCppph
  27. #ifdef  __cplusplus
  28. extern "C" {
  29. #endif
  30. #define NPPP 16 /* One PPP interface supported (per process) */
  31. /*
  32.  * Data Link Layer header = Address, Control, Protocol.
  33.  */
  34. #define ALLSTATIONS     0xff    /* All-Stations Address */
  35. #define UI              0x03    /* Unnumbered Information */
  36. #define LCP             0xc021  /* Link Control Protocol */
  37. #define IPCP            0x8021  /* IP Control Protocol */
  38. #define UPAP            0xc023  /* User/Password Authentication Protocol */
  39. #define CHAP            0xc223  /* Crytpographic Handshake Protocol */
  40. #define LQR             0xc025  /* Link Quality Report protocol */
  41. #define IP_VJ_COMP      0x002d  /* VJ TCP compressed IP packet */
  42. #define DLLHEADERLEN    (sizeof (u_char) + sizeof (u_char) + sizeof (u_short))
  43. #define MTU             1500    /* Default MTU */
  44. #ifdef  __cplusplus
  45. }
  46. #endif
  47. #endif  /* __INCppph */