Jump to main content

##

# 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

Parameters | Description
--- | ---
pNetIf | The interface for the outgoing packet.
localIP | The local address that should be used for this packet.
remoteIP | The packet's destination address
type | Echo Request or Echo Reply
identifier | The Echo Request id.
sequenceNumber | The Echo request sequence number