TCPIP_ICMPV6_HeaderEchoRequestPut Function

C

IPV6_PACKET * TCPIP_ICMPV6_HeaderEchoRequestPut(TCPIP_NET_HANDLE hNetIf, const IPV6_ADDR * localIP, const IPV6_ADDR * remoteIP, uint8_t type, uint16_t identifier, uint16_t sequenceNumber); 

Returns

IPV6_PACKET * - The constructed error packet or NULL

Description

This function allocates a packet using TCPIP_ICMPV6_Open() and updates local and remote addresses. Updates IPv6 Header with ICMPv6 type and upper-layer header for an ICMPv6 echo request.

Remarks

None.

Preconditions

IPv6 and ICMPv6 are initialized.

Parameters

ParametersDescription
pNetIfThe interface for the outgoing packet.
localIPThe local address that should be used for this packet.
remoteIPThe packet's destination address
typeEcho Request or Echo Reply
identifierThe Echo Request id.
sequenceNumberThe Echo request sequence number