Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

93 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. wanarp\rcv.h
  5. Abstract:
  6. Function prototypes for rcv.h
  7. Revision History:
  8. AmritanR
  9. --*/
  10. #ifndef __WANARP_RCV_H__
  11. #define __WANARP_RCV_H__
  12. #define PORT137_NBO (WORD)0x8900
  13. INT
  14. WanNdisReceivePacket(
  15. IN NDIS_HANDLE nhProtocolContext,
  16. IN PNDIS_PACKET pnpPacket
  17. );
  18. NDIS_STATUS
  19. WanNdisReceive(
  20. NDIS_HANDLE nhProtocolContext,
  21. NDIS_HANDLE nhXferContext,
  22. VOID UNALIGNED *pvHdr,
  23. UINT uiHdrLen,
  24. VOID UNALIGNED *pvData,
  25. UINT uiDataLen,
  26. UINT uiTotalLen
  27. );
  28. NDIS_STATUS
  29. WanReceiveCommon(
  30. NDIS_HANDLE nhProtocolContext,
  31. NDIS_HANDLE nhXferContext,
  32. VOID UNALIGNED *pvHeader,
  33. UINT uiHeaderLen,
  34. VOID UNALIGNED *pvData,
  35. UINT uiDataLen,
  36. UINT uiTotalLen,
  37. PMDL pMdl,
  38. PINT piClientCount
  39. );
  40. VOID
  41. WanNdisReceiveComplete(
  42. NDIS_HANDLE nhProtocolContext
  43. );
  44. VOID
  45. WanNdisTransferDataComplete(
  46. NDIS_HANDLE nhProtocolContext,
  47. PNDIS_PACKET pnpPacket,
  48. NDIS_STATUS nsStatus,
  49. UINT uiBytesCopied
  50. );
  51. NDIS_STATUS
  52. WanIpTransferData(
  53. PVOID pvContext,
  54. NDIS_HANDLE nhMacContext,
  55. UINT uiProtoOffset,
  56. UINT uiTransferOffset,
  57. UINT uiTransferLength,
  58. PNDIS_PACKET pnpPacket,
  59. PUINT puiTransferred
  60. );
  61. UINT
  62. WanIpReturnPacket(
  63. PVOID pvContext,
  64. PNDIS_PACKET pnpPacket
  65. );
  66. BOOLEAN
  67. WanpDropNetbiosPacket(
  68. PBYTE pbyBuffer,
  69. ULONG ulBufferLen
  70. );
  71. #endif // __WANARP_RCV_H__