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

VxWorks

开发平台:

C/C++

  1. /* dhcpcLib.h - DHCP include file for user interface of runtime client */
  2. /* Copyright 1984 - 2000 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. ____________________
  6. 01h,05apr00,spm  removed entries shared with boot-time client
  7. 01g,24nov99,spm  upgraded to RFC 2131 and removed direct link-level access
  8. 01f,06oct97,spm  added prototypes for user-callable routines
  9. 01e,06aug97,spm  added definitions for C++ compilation
  10. 01d,30apr97,spm  changed dhcpcOptionGet() prototype to return length
  11. 01c,07apr97,spm  added prototypes for new functions
  12. 01b,29jan97,spm  added support for little-endian architectures
  13. 01a,03oct96,spm  created.
  14. */
  15. #ifndef __INCdhcpcLibh
  16. #define __INCdhcpcLibh
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. #include "dhcp/dhcpc.h"  /* DHCP client data structures */
  21. IMPORT void *  pDhcpcBootCookie;  /* User access to boot-time lease. */
  22. /* DHCP data structures for option requests and retrieval. */
  23. /* DHCP (runtime) client user interface routines */
  24. IMPORT STATUS dhcpcLibInit (int, int, int, int, int, int, int);
  25. IMPORT void * dhcpcInit (struct ifnet *, BOOL);
  26. IMPORT STATUS dhcpcEventHookAdd (void *, FUNCPTR);
  27. IMPORT STATUS dhcpcEventHookDelete (void *);
  28. IMPORT STATUS dhcpcCacheHookAdd (FUNCPTR);
  29. IMPORT STATUS dhcpcCacheHookDelete (void);
  30. IMPORT STATUS dhcpcOptionSet (void *, int);
  31. IMPORT STATUS dhcpcOptionAdd (void *, UCHAR, int, UCHAR *);
  32. IMPORT STATUS dhcpcBind (void *, BOOL);
  33. IMPORT STATUS dhcpcVerify (void *);
  34. IMPORT STATUS dhcpcOptionGet (void *, int, int *, char *);
  35. IMPORT STATUS dhcpcServerGet (void *, struct in_addr *);
  36. IMPORT STATUS dhcpcTimerGet (void *, int *, int *);
  37. IMPORT STATUS dhcpcParamsGet (void *, struct dhcp_param *);
  38. IMPORT STATUS dhcpcRelease (void *);
  39. IMPORT STATUS dhcpcShutdown (void);
  40. #ifdef __cplusplus
  41. }
  42. #endif
  43. #endif