dhcp.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /*++
  2. Copyright (c) 2013 Minoca Corp. All Rights Reserved
  3. Module Name:
  4. dhcp.h
  5. Abstract:
  6. This header contains public definitions for the Dynamic Host Configuration
  7. Protocol (DHCP).
  8. Author:
  9. Evan Green 5-Apr-2013
  10. --*/
  11. //
  12. // ------------------------------------------------------------------- Includes
  13. //
  14. //
  15. // ---------------------------------------------------------------- Definitions
  16. //
  17. //
  18. // ------------------------------------------------------ Data Type Definitions
  19. //
  20. //
  21. // -------------------------------------------------------------------- Globals
  22. //
  23. //
  24. // -------------------------------------------------------- Function Prototypes
  25. //
  26. KSTATUS
  27. NetpDhcpBeginAssignment (
  28. PNET_LINK Link,
  29. PNET_LINK_ADDRESS_ENTRY LinkAddress
  30. );
  31. /*++
  32. Routine Description:
  33. This routine kicks off the process of assigning a network address to this
  34. link address entry by using DHCP.
  35. Arguments:
  36. Link - Supplies a pointer to the link to send the discovery request out on.
  37. LinkAddress - Supplies a pointer to the address structure to bind to.
  38. Return Value:
  39. Status code indicating whether or not the process was successfully
  40. initiated.
  41. --*/
  42. KSTATUS
  43. NetpDhcpCancelLease (
  44. PNET_LINK Link,
  45. PNET_LINK_ADDRESS_ENTRY LinkAddress
  46. );
  47. /*++
  48. Routine Description:
  49. This routine attempts to cancel a DHCP lease.
  50. Arguments:
  51. Link - Supplies a pointer to the network link to which the lease was
  52. provided.
  53. LinkAddress - Supplies a pointer to the network link address that was
  54. leased.
  55. Return Value:
  56. Status code.
  57. --*/