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

VxWorks

开发平台:

C/C++

  1. /* rdiscLib.h - support for router discovery RFC 1256 */
  2. /* Copyright 2000 - 2001 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01a,29mar01,spm  file creation: copied from version 01b of tor2_0.open_stack
  7.                  branch (wpwr VOB) for unified code base
  8. */
  9. #ifndef __INCrdiscLibh
  10. #define __INCrdiscLibh
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. /* cmd-types for the rdCtl-function */
  15. #define SET_ADVERT_LIFETIME 0
  16. #define SET_MIN_ADVERT_INT 1
  17. #define SET_MAX_ADVERT_INT 2
  18. #define SET_MODE         3
  19. #define SET_FLAG 4
  20. #define SET_ADVERT_PREF 5
  21. #define SET_ADVERT_ADDRESS 6
  22. #define GET_FLAG 7
  23. #define GET_ADVERT_LIFETIME 8
  24. #define GET_ADVERT_PREF 9
  25. #define GET_ADVERT_ADDRESS 10
  26. #define GET_MIN_ADVERT_INT 11
  27. #define GET_MAX_ADVERT_INT 12
  28. /* Modes for the rdCtl routine, valid if cmd=SET_MODE. */
  29. #define MODE_DEBUG_OFF          0    /* Turn debugging off. */
  30. #define MODE_DEBUG_ON           1    /* Turn debugging on. */
  31. #define MODE_STOP               2    /* Stop rdisc */
  32. extern void rdiscLibInit (int priority, int options, int stackSize);
  33. extern void rdisc ();
  34. extern STATUS rdiscIfReset ();
  35. /* value may be an int (set-cmds) or an int* (get-cmds) */
  36. extern STATUS rdCtl (char *ifName, int cmd, void* value);
  37. #ifdef __cplusplus
  38. }
  39. #endif
  40. #endif /* __INCrdiscLibh */