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

VxWorks

开发平台:

C/C++

  1. /* if_sl.h - Serial Line IP header  */
  2. /* Copyright 1984-1994 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01i,29jan96,gnn  added support for user configurable MTU
  7. 01h,22mar94,dzb  added CSLIP support.
  8. 01g,22sep92,rrr  added support for c++
  9. 01f,15sep92,jcf  added slip interface prototypes.
  10. 01e,04jul92,jcf  cleaned up.
  11. 01d,26may92,rrr  the tree shuffle
  12. 01c,04oct91,rrr  passed through the ansification filter
  13.   -changed copyright notice
  14. 01b,05oct90,shl  added copyright notice.
  15.                  made #endif ANSI style.
  16. 01a,18jul89,hjb  written.
  17. */
  18. #ifndef __INCif_slh
  19. #define __INCif_slh
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. #define S_if_sl_INVALID_UNIT_NUMBER (M_if_sl | 1)
  24. #define S_if_sl_UNIT_UNINITIALIZED (M_if_sl | 2)
  25. #define S_if_sl_UNIT_ALREADY_INITIALIZED (M_if_sl | 3)
  26. #if defined(__STDC__) || defined(__cplusplus)
  27. extern STATUS slipInit (int unit, char *devName, char *myAddr,
  28.     char *peerAddr, int baud, BOOL compressEnable,
  29.     BOOL compressAllow, int mtu);
  30. extern STATUS slipBaudSet (int unit, int baud);
  31. #else /* __STDC__ */
  32. extern STATUS slipInit ();
  33. extern STATUS slipBaudSet ();
  34. #endif /* __STDC__ */
  35. #ifdef __cplusplus
  36. }
  37. #endif
  38. #endif /* __INCif_slh */