Home
last modified time | relevance | path

Searched refs:IcmpErrHdr (Results 1 – 2 of 2) sorted by relevance

/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Udp4Dxe/
DUdp4Impl.c1706 IP4_ICMP_ERROR_HEAD *IcmpErrHdr; in Udp4SendPortUnreach() local
1740 IcmpErrHdr = (IP4_ICMP_ERROR_HEAD *) NetbufAllocSpace (Packet, Len, FALSE); in Udp4SendPortUnreach()
1741 ASSERT (IcmpErrHdr != NULL); in Udp4SendPortUnreach()
1746 IcmpErrHdr->Head.Type = ICMP_TYPE_UNREACH; in Udp4SendPortUnreach()
1747 IcmpErrHdr->Head.Code = ICMP_CODE_UNREACH_PORT; in Udp4SendPortUnreach()
1748 IcmpErrHdr->Head.Checksum = 0; in Udp4SendPortUnreach()
1749 IcmpErrHdr->Fourth = 0; in Udp4SendPortUnreach()
1754 CopyMem (&IcmpErrHdr->IpHead, IpHdr, EFI_IP4_HEADER_LEN (IpHdr)); in Udp4SendPortUnreach()
1759 Ptr = (UINT8 *) &IcmpErrHdr->IpHead + EFI_IP4_HEADER_LEN (IpHdr); in Udp4SendPortUnreach()
1765 IcmpErrHdr->Head.Checksum = (UINT16) ~(NetbufChecksum (Packet)); in Udp4SendPortUnreach()
/device/linaro/bootloader/edk2/NetworkPkg/Udp6Dxe/
DUdp6Impl.c1691 IP6_ICMP_ERROR_HEAD *IcmpErrHdr; in Udp6SendPortUnreach() local
1767 IcmpErrHdr = (IP6_ICMP_ERROR_HEAD *) NetbufAllocSpace (Packet, Len, FALSE); in Udp6SendPortUnreach()
1768 ASSERT (IcmpErrHdr != NULL); in Udp6SendPortUnreach()
1773 IcmpErrHdr->Head.Type = ICMP_V6_DEST_UNREACHABLE; in Udp6SendPortUnreach()
1774 IcmpErrHdr->Head.Code = ICMP_V6_PORT_UNREACHABLE; in Udp6SendPortUnreach()
1775 IcmpErrHdr->Head.Checksum = 0; in Udp6SendPortUnreach()
1776 IcmpErrHdr->Fourth = 0; in Udp6SendPortUnreach()
1784 Ptr = (VOID *) &IcmpErrHdr->Head; in Udp6SendPortUnreach()
1796 IcmpErrHdr->Head.Checksum = 0; in Udp6SendPortUnreach()