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

VxWorks

开发平台:

C/C++

  1. /* dhcprLib.h - DHCP relay agent include file for user interface */
  2. /* Copyright 1984 - 1997 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. ____________________
  6. 01d,04dec97,spm  added code review modifications
  7. 01c,06aug97,spm  added definitions for C++ compilation
  8. 01b,28apr97,spm  moved DHCP_MAX_HOPS to configAll.h
  9. 01a,07apr97,spm  created.
  10. */
  11. #ifndef __INCdhcprLibh
  12. #define __INCdhcprLibh
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. #if CPU_FAMILY==I960
  17. #pragma align 1                 /* tell gcc960 not to optimize alignments */
  18. #endif  /* CPU_FAMILY==I960 */
  19. typedef struct serverDesc
  20.     {
  21.     char *pAddress;             /* IP address of DHCP server target */
  22.     } DHCP_TARGET_DESC;
  23. typedef struct server 
  24.     {
  25.     struct in_addr ip;
  26.     struct server *next;
  27.     } DHCP_SERVER_DESC;
  28. IMPORT DHCP_TARGET_DESC *  pDhcpRelayTargetTbl;
  29. IMPORT int dhcpNumTargets;
  30. IMPORT DHCP_SERVER_DESC *  pDhcpTargetList;
  31. IMPORT struct msg dhcpMsgIn;
  32. #if CPU_FAMILY==I960
  33. #pragma align 0                 /* turn off alignment requirement */
  34. #endif  /* CPU_FAMILY==I960 */
  35. IMPORT int open_if();
  36. IMPORT void read_server_db (int);
  37. #ifdef __cplusplus
  38. }
  39. #endif
  40. #endif