PxeDhcpv6IsValid function

Validates that a packet is a valid DHCPv6 packet.

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

Syntax


DWORD PXEAPI PxeDhcpv6IsValid(
  _In_   PVOID pPacket,
  _In_   ULONG uPacketLen,
  _In_   BOOL bRequestPacket,
  _Out_  PBOOL pbPxeOptionPresent
);

Parameters

pPacket [in]

Pointer to a reply packet allocated with the PxePacketAllocate function.

uPacketLen [in]

Length of the packet pointed to by the pPacket parameter.

bRequestPacket [in]

Indicates whether the packet is a request packet. The following table lists the possible values.

ValueMeaning
TRUE
1

Packet to be validated is a request packet from the client.

FALSE
0

Packet to be validated is a packet generated by the server.

 

pbPxeOptionPresent [out]

Address of a BOOL that is set to TRUE if the packet is a valid DHCPv6 packet.

Return value

If the function succeeds, the return value is ERROR_SUCCESS.

Remarks

Providers use this function when the filter set with the PxeProviderSetAttribute function is set to receive all packets to determine if a specified packet is a valid DHCPv6 packet. Providers can also use this function to validate reply packets; typically this is done only for debug or test builds of the provider.

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