PxeDhcpv6Initialize function

Initializes a response packet as a DHCPv6 reply packet.

For RELAY-FORW messages, this function initializes the message type, hop count, link address and peer address. For other DHCPv6 request types, this function initializes the message type and transaction ID. In all cases, the option payload of the produced packet will be empty.

For more information about RELAY-FORW messages, developers should refer to the Dynamic Host Configuration Protocol for IPv6 (RFC 3315) maintained by The Internet Engineering Task Force (IETF).

Syntax


DWORD PXEAPI PxeDhcpv6Initialize(
  _In_     PVOID pRequest,
  _In_     ULONG cbRequest,
  _Inout_  PVOID pReply,
  _In_     ULONG cbReply,
  _Out_    PULONG pcbReplyUsed
);

Parameters

pRequest [in]

Address of a valid DHCPv6 packet received from the client in the PxeProviderRecvRequest callback.

cbRequest [in]

Length of the packet pointed to by the pRequest parameter.

pReply [in, out]

Pointer to a reply packet allocated with the PxePacketAllocate function.

cbReply [in]

Allocated length of the packet pointed to by the pReply parameter.

pcbReplyUsed [out]

Address of a ULONG that on successful completion will receive the length of the packet pointed to by the pReply parameter.

Return value

If the function succeeds, the return value is ERROR_SUCCESS.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

WdsPxe.h

Library

WdsPxe.lib

DLL

WdsPxe.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft