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.

48 lines
2.7 KiB

  1. /*
  2. * File: packet.h
  3. * Description: This file contains function prototypes for the packet
  4. * population utility functions for the NLB KD extensions.
  5. * History: Created by shouse, 12.20.01
  6. */
  7. /* Stores properties of a remote control packet for subsequent printing. */
  8. VOID PopulateRemoteControl(PUCHAR RawData, ULONG ulBufLen, ULONG ulStartRC, PNETWORK_DATA pnd);
  9. /* Stores properties of a remote control packet for subsequent printing. */
  10. VOID PopulateICMP(PUCHAR RawData, ULONG ulBufLen, ULONG ulStartICMP, PNETWORK_DATA pnd);
  11. /* Stores properties of a remote control packet for subsequent printing. */
  12. VOID PopulateIGMP(PUCHAR RawData, ULONG ulBufLen, ULONG ulStartIGMP, PNETWORK_DATA pnd);
  13. /* Description: Stores properties of a remote control packet for subsequent printing. */
  14. VOID PopulateTCP(PUCHAR RawData, ULONG ulBufLen, ULONG ulStartTCP, PNETWORK_DATA pnd);
  15. /* Description: Stores properties of a remote control packet for subsequent printing. */
  16. VOID PopulateUDP(PUCHAR RawData, ULONG ulBufLen, ULONG ulStartUDP, PNETWORK_DATA pnd);
  17. /* Description: Stores properties of a remote control packet for subsequent printing. */
  18. VOID PopulateGRE(PUCHAR RawData, ULONG ulBufLen, ULONG ulStartGRE, PNETWORK_DATA pnd);
  19. /* Description: Stores properties of a remote control packet for subsequent printing. */
  20. VOID PopulateIPSec(PUCHAR RawData, ULONG ulBufLen, ULONG ulStartIPSec, PNETWORK_DATA pnd);
  21. /* Description: Stores properties of a remote control packet for subsequent printing. */
  22. VOID PopulateIPSecControl(PUCHAR RawData, ULONG ulBufLen, ULONG ulStartIPSec, PNETWORK_DATA pnd);
  23. /* Description: Stores properties of a remote control packet for subsequent printing. */
  24. VOID PopulateIP(PUCHAR RawData, ULONG ulBufLen, ULONG ulStart, PNETWORK_DATA pnd);
  25. /* Description: Stores properties of a remote control packet for subsequent printing. */
  26. VOID PopulateARP(PUCHAR RawData, ULONG ulBufLen, ULONG ulStart, PNETWORK_DATA pnd);
  27. /* Description: Stores properties of a remote control packet for subsequent printing. */
  28. VOID PopulateNLBHeartbeat(ULONG64 pPkt, PUCHAR RawData, ULONG ulBufLen, ULONG ulStart, PNETWORK_DATA pnd);
  29. /* Description: Stores properties of a remote control packet for subsequent printing. */
  30. VOID PopulateConvoyHeartbeat(ULONG64 pPkt, PUCHAR RawData, ULONG ulBufLen, ULONG ulStart, PNETWORK_DATA pnd);
  31. /* Description: Determines what type of data is in ethernet frame and calls function. */
  32. VOID PopulateEthernet(ULONG64 pPkt, PUCHAR RawData, ULONG ulBufLen, PNETWORK_DATA pnd);
  33. /* This function walks the list of NDIS buffers in a packet and copies the packet data into a buffer supplied by the caller. */
  34. ULONG ParseNDISPacket (ULONG64 pPkt, PUCHAR pRawData, ULONG pBytesRemaining, PULONG64 ppHBData);