TianoCore EDK2 master
|
Go to the source code of this file.
Data Structures | |
struct | IP4_ICMP_CLASS |
Functions | |
EFI_STATUS | Ip4IcmpHandle (IN IP4_SERVICE *IpSb, IN IP4_HEAD *Head, IN NET_BUF *Packet) |
Variables | |
IP4_ICMP_CLASS | mIcmpClass [] |
EFI_IP4_ICMP_TYPE | mIp4SupportedIcmp [] |
Header file for ICMP protocol.
Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Ip4Icmp.h.
EFI_STATUS Ip4IcmpHandle | ( | IN IP4_SERVICE * | IpSb, |
IN IP4_HEAD * | Head, | ||
IN NET_BUF * | Packet | ||
) |
Handle the ICMP packet. First validate the message format, then according to the message types, process it as query or error packet.
[in] | IpSb | The IP4 service that receivd the packet. |
[in] | Head | The IP4 head of the ICMP query packet. |
[in] | Packet | The content of the ICMP query with IP4 head removed. |
EFI_INVALID_PARAMETER | The packet is malformatted. |
EFI_SUCCESS | The ICMP message is successfully processed. |
Others | Failed to handle ICMP packet. |
|
extern |
|
extern |