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

VxWorks

开发平台:

C/C++

  1. /* routeLib.h - header file for the network routing library */
  2. /* Copyright 1984-1992 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 02f,26jun98,spm  added mRouteEntryDelete prototype
  7. 02e,10jul97,rjc  added flag param to mRouteDelete.
  8. 02d,11apr97,rjc  changed interface of m2RouteEntryAdd
  9. i02c,14feb97,rjc added mask versions of route add etc
  10. 02d,11jul94,dzb  added prototype for routeNetAdd() (SPR #3395).
  11. 02c,22sep92,rrr  added support for c++
  12. 02b,27jul92,elh  moved routeShow to netShow.
  13. 02a,04jul92,jcf  cleaned up.
  14. 01g,26may92,rrr  the tree shuffle
  15. 01f,02mar92,elh  added routeCmd.
  16. 01e,04oct91,rrr  passed through the ansification filter
  17.   -changed VOID to void
  18.   -changed copyright notice
  19. 01d,05oct90,shl  added ANSI function prototypes.
  20.                  added copyright notice.
  21. 01c,07aug90,shl  added IMPORT type to function declarations.
  22. 01b,16nov87,llk  documentation
  23. 01a,01nov87,llk  written
  24. */
  25. #ifndef __INCrouteLibh
  26. #define __INCrouteLibh
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30. #include "vwModNum.h"
  31. /* status codes */
  32. #define S_routeLib_ILLEGAL_INTERNET_ADDRESS (M_routeLib | 1)
  33. #define S_routeLib_ILLEGAL_NETWORK_NUMBER (M_routeLib | 2)
  34. /* function declarations */
  35. #if defined(__STDC__) || defined(__cplusplus)
  36. extern STATUS  routeAdd (char *destination, char *gateway);
  37. extern STATUS  routeDelete (char *destination, char *gateway);
  38. extern STATUS  routeNetAdd (char *destination, char *gateway);
  39. extern STATUS  routeCmd (int destInetAddr, int gateInetAddr, int ioctlCmd);
  40. extern STATUS   mRouteAdd (char *, char *, long, int, int);
  41. extern STATUS   mRouteEntryAdd (long , long, long, int, int, int);
  42. extern STATUS   mRouteEntryDelete (long , long, long, int, int, int);
  43. extern STATUS   mRouteDelete (char *, long, int, int);
  44. #else /* __STDC__ */
  45. extern STATUS  routeAdd ();
  46. extern STATUS  routeDelete ();
  47. extern STATUS  routeNetAdd ();
  48. extern STATUS  routeCmd ();
  49. extern STATUS   mRouteAdd ();
  50. extern STATUS   mRouteEntryAdd ();
  51. extern STATUS   mRouteEntryDelete ();
  52. extern STATUS   mRouteDelete ();
  53. #endif /* __STDC__ */
  54. #ifdef __cplusplus
  55. }
  56. #endif
  57. #endif /* __INCrouteLibh */