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

VxWorks

开发平台:

C/C++

  1. /* arpLib.h - VxWorks ARP table manipulation header file */
  2. /* Copyright 1990 - 2001 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 02k,09oct01,rae  merge from truestack
  7. 02j,07feb01,spm  added merge record for 30jan01 update from version 02i of
  8.                  tor2_0_x branch (base version 02h) and fixed modification
  9.                  history; replaced printed error message with errno value
  10. 02i,30jan01,ijm  merged ARP automatic linking fix (SPR #7576)
  11. 02h,22sep92,rrr  added support for c++
  12. 02g,07sep92,smb  added include netinet/in.h to remove ANSI warnings
  13. 02f,04jul92,jcf  cleaned up.
  14. 02e,11jun92,elh  changed parameter to arpCmd.
  15. 02d,26may92,rrr  the tree shuffle
  16. 02c,04apr92,elh  added arpFlush.
  17. 02b,06jan92,elh  passed through the ansification filter
  18.   -fixed #else and #endif
  19.   -changed copyright notice
  20. 02a,18nov91,elh  written.
  21. */
  22. #ifndef __INCarpLibh
  23. #define __INCarpLibh
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. #include "vwModNum.h"
  28. #include "netinet/in.h"
  29. #if defined(__STDC__) || defined(__cplusplus)
  30. extern void  arpLibInit (void);
  31. extern STATUS  arpAdd (char *host, char *eaddr, int flags);
  32. extern STATUS  arpDelete (char *host);
  33. extern STATUS  arpCmd (int cmd, struct in_addr * pIpAddr, u_char *pHwAddr,
  34. int *pFlags);
  35. extern void  arpFlush (void);
  36. #else /* __STDC__ */
  37. extern void  arpLibInit ();
  38. extern STATUS  arpAdd ();
  39. extern STATUS  arpDelete ();
  40. extern STATUS  arpCmd ();
  41. extern void  arpFlush ();
  42. #endif /* __STDC__ */
  43. /* error values */
  44. #define S_arpLib_INVALID_ARGUMENT (M_arpLib | 1)
  45. #define S_arpLib_INVALID_HOST  (M_arpLib | 2)
  46. #define S_arpLib_INVALID_ENET_ADDRESS  (M_arpLib | 3)
  47. #define S_arpLib_INVALID_FLAG (M_arpLib | 4)
  48. #ifdef __cplusplus
  49. }
  50. #endif
  51. #endif /* __INCarpLibh */