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.3 KiB

  1. //================================================================================
  2. // Copyright (C) 1997 Microsoft Corporation
  3. // Author: RameshV
  4. // All dealings with the stack and other non-Dhcp components go through the API
  5. // given here
  6. //================================================================================
  7. #ifndef STACK_H_INCLUDED
  8. #define STACK_H_INCLUDED
  9. //================================================================================
  10. // Exported API's
  11. //================================================================================
  12. DWORD // win32 status
  13. DhcpClearAllStackParameters( // undo the effects
  14. IN PDHCP_CONTEXT DhcpContext // the adapter to undo
  15. );
  16. DWORD // win32 status
  17. DhcpSetAllStackParameters( // set all stack details
  18. IN PDHCP_CONTEXT DhcpContext, // the context to set stuff
  19. IN PDHCP_FULL_OPTIONS DhcpOptions // pick up the configuration from off here
  20. );
  21. #endif STACK_H_INCLUDED
  22. #ifndef SYSSTACK_H_INCLUDED
  23. #define SYSSTACK_H_INCLUDED
  24. //================================================================================
  25. // imported api's
  26. //================================================================================
  27. DWORD // return interface index or -1
  28. DhcpIpGetIfIndex( // get the IF index for this adapter
  29. IN PDHCP_CONTEXT DhcpContext // context of adapter to get IfIndex for
  30. );
  31. DWORD // win32 status
  32. DhcpSetRoute( // set a route with the stack
  33. IN DWORD Dest, // network order destination
  34. IN DWORD DestMask, // network order destination mask
  35. IN DWORD IfIndex, // interface index to route
  36. IN DWORD NextHop, // next hop n/w order address
  37. IN BOOL IsLocal, // is this a local address? (IRE_DIRECT)
  38. IN BOOL IsDelete // is this route being deleted?
  39. );
  40. #endif SYSSTACK_H_INCLUDED