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

VxWorks

开发平台:

C/C++

  1. /* dhcpcStateLib.h - DHCP runtime client interface to state machine */
  2. /* Copyright 1984 - 2001 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. ____________________
  6. 01f,10oct01,rae  merge from truestack
  7. 01e,13jun00,spm  increased size of function pointer array for new state
  8. 01d,24nov99,spm  upgraded to RFC 2131 and removed direct link-level access
  9. 01c,06oct97,spm  added relative paths to #include statements
  10. 01b,06aug97,spm  added definitions for C++ compilation
  11. 01a,03oct96,spm  created by modifying WIDE project DHCP implementation
  12. */
  13. #ifndef __INCdhcpcStateLibh
  14. #define __INCdhcpcStateLibh
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. #include "dhcp/copyright_dhcp.h"
  19. /* DHCP client states */
  20. #define  INIT         0
  21. #define  WAIT_OFFER   1
  22. #define  SELECTING    2
  23. #define  REQUESTING   3
  24. #define  BOUND        4
  25. #define  RENEWING     5
  26. #define  REBINDING    6
  27. #define  INIT_REBOOT  7
  28. #define  VERIFY       8
  29. #define  REBOOTING    9
  30. #define  VERIFYING   10
  31. #define  INFORMING   11
  32. #define  MAX_STATES  INFORMING + 1
  33. IMPORT int (*fsm[MAX_STATES])();
  34. IMPORT STATUS dhcp_client_setup (int, int, int);
  35. IMPORT int dhcp_client (void *, BOOL);
  36. #ifdef __cplusplus
  37. }
  38. #endif
  39. #endif