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

VxWorks

开发平台:

C/C++

  1. /* ipProto.h - defines for the bsd protocol pseudo-device driver */
  2. /* Copyright 1984 - 2001 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01p,10oct01,rae  merge from truestack (SPRs 29668, 65773)
  7. 01o,07nov00,spm  moved nptFlag from END_OBJ for T2 END binary compatibility
  8. 01n,17oct00,spm  merged from version 01m of tor3_x branch (base version 01i):
  9.                  added backward compatibility for END devices
  10. 01m,02aug99,pul  adding #include if_ether.h
  11. 01l,29apr99,pul  Upgraded NPT phase3 code to tor2.0.0
  12. 01k,02mar99,pul  protoType for ipAttach(), SPR# 24253
  13. 01j,08aug98,ann  Included if_ether.h to reference idr
  14. 01i,08dec97,gnn  END code review fixes.
  15. 01h,25sep97,gnn  SENS beta feedback fixes
  16. 01g,19aug97,gnn  changes due to new buffering scheme.
  17. 01f,12aug97,gnn  changes necessitated by MUX/END update.
  18. 01e,02jun97,gnn  Added added memWidth to structure.
  19. 01d,21mar97,map  Added pRefCntHead, removed nLoan from BSD_DRV_CTRL.
  20. 01c,22jan97,gnn  Added new private flags that is seperate from if flags.
  21. 01b,21jan97,gnn  Removed buffer loaning stuff.
  22.                  Added reference count information.
  23.                  Added minFirstBuf for scatter/gather.
  24. 01a,17dec96,gnn  written.
  25. */
  26.  
  27. #ifndef __INCipProtoh
  28. #define __INCipProtoh
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif
  32. /* includes */
  33. #include "netinet/if_ether.h"
  34. /* defints */
  35. /* typedefs */
  36. typedef struct ip_drv_ctrl
  37.     {
  38.     struct arpcom idr;                /* Interface Data Record */
  39.     void*  pArpCookie;
  40.     void*  pIpCookie;
  41.     int attached;
  42.     BOOL  nptFlag;  /* Indicates type of interface: END or NPT. */
  43.     M_BLK_ID  pSrc;  /* source address and type (for END device). */
  44.     M_BLK_ID    pDst;  /* dest. address and type (for END device). */
  45.     char *  pDstAddr;  /* cluster containing dest. address */
  46.     } IP_DRV_CTRL;
  47. /* The array of driver control structures */
  48. extern IP_DRV_CTRL ipDrvCtrl[];
  49. /* forward declarations */
  50. /* globals */
  51. IMPORT int ipAttach (int unit, char *pDevice);
  52. IMPORT STATUS ipDetach (int unit, char *pDevice);
  53. IMPORT void *ipMuxCookieGet (unsigned short ifIndex);
  54. /* locals */
  55. /* forward declarations */
  56. #ifdef __cplusplus
  57. }
  58. #endif
  59. #endif /* __INCipProtoh */