dhcp.h 1.8 KB

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