diff options
author | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-08-23 02:19:41 +0000 |
---|---|---|
committer | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-08-23 02:19:41 +0000 |
commit | 687a2e5f6902fa26c7a1d7a7705e0747c4095125 (patch) | |
tree | bcdcba327f17dd1fe3306d8ed04a98ca1e18f1cf /MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.c | |
parent | 4a8f7cceccde9f40f55cae415e10d80906a84919 (diff) | |
download | edk2-platforms-687a2e5f6902fa26c7a1d7a7705e0747c4095125.tar.xz |
1. Enable Network stack to pass SCT, currently MNP, ARP, IP4, TCP4 and DHCP4 have passed SCT.
2. Enable Network stack to pass ICC build.
3. Sync Network library instances' module names with their filenames.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3692 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.c')
-rw-r--r-- | MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.c | 53 |
1 files changed, 41 insertions, 12 deletions
diff --git a/MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.c b/MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.c index f377138a19..4b8a699aea 100644 --- a/MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.c +++ b/MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.c @@ -1272,18 +1272,47 @@ IpIoGetIcmpErrStatus ( OUT BOOLEAN *Notify OPTIONAL
)
{
- ICMP_ERROR_INFO IcmpErrMap[] = {
- { EFI_NETWORK_UNREACHABLE, FALSE, TRUE }, // ICMP_ERR_UNREACH_NET
- { EFI_HOST_UNREACHABLE, FALSE, TRUE }, // ICMP_ERR_UNREACH_HOST
- { EFI_PROTOCOL_UNREACHABLE, TRUE, TRUE }, // ICMP_ERR_UNREACH_PROTOCOL
- { EFI_PORT_UNREACHABLE, TRUE, TRUE }, // ICMP_ERR_UNREACH_PORT
- { EFI_ICMP_ERROR, TRUE, TRUE }, // ICMP_ERR_MSGSIZE
- { EFI_ICMP_ERROR, FALSE, TRUE }, // ICMP_ERR_UNREACH_SRCFAIL
- { EFI_HOST_UNREACHABLE, FALSE, TRUE }, // ICMP_ERR_TIMXCEED_INTRANS
- { EFI_HOST_UNREACHABLE, FALSE, TRUE }, // ICMP_ERR_TIMEXCEED_REASS
- { EFI_ICMP_ERROR, FALSE, FALSE }, // ICMP_ERR_QUENCH
- { EFI_ICMP_ERROR, FALSE, TRUE } // ICMP_ERR_PARAMPROB
- };
+ ICMP_ERROR_INFO IcmpErrMap[10];
+
+ IcmpErrMap[0].Error = EFI_NETWORK_UNREACHABLE;
+ IcmpErrMap[0].IsHard = FALSE;
+ IcmpErrMap[0].Notify = TRUE;
+
+ IcmpErrMap[1].Error = EFI_HOST_UNREACHABLE;
+ IcmpErrMap[1].IsHard = FALSE;
+ IcmpErrMap[1].Notify = TRUE;
+
+ IcmpErrMap[2].Error = EFI_PROTOCOL_UNREACHABLE;
+ IcmpErrMap[2].IsHard = TRUE;
+ IcmpErrMap[2].Notify = TRUE;
+
+ IcmpErrMap[3].Error = EFI_PORT_UNREACHABLE;
+ IcmpErrMap[3].IsHard = TRUE;
+ IcmpErrMap[3].Notify = TRUE;
+
+ IcmpErrMap[4].Error = EFI_ICMP_ERROR;
+ IcmpErrMap[4].IsHard = TRUE;
+ IcmpErrMap[4].Notify = TRUE;
+
+ IcmpErrMap[5].Error = EFI_ICMP_ERROR;
+ IcmpErrMap[5].IsHard = FALSE;
+ IcmpErrMap[5].Notify = TRUE;
+
+ IcmpErrMap[6].Error = EFI_HOST_UNREACHABLE;
+ IcmpErrMap[6].IsHard = FALSE;
+ IcmpErrMap[6].Notify = TRUE;
+
+ IcmpErrMap[7].Error = EFI_HOST_UNREACHABLE;
+ IcmpErrMap[7].IsHard = FALSE;
+ IcmpErrMap[7].Notify = TRUE;
+
+ IcmpErrMap[8].Error = EFI_ICMP_ERROR;
+ IcmpErrMap[8].IsHard = FALSE;
+ IcmpErrMap[8].Notify = FALSE;
+
+ IcmpErrMap[9].Error = EFI_ICMP_ERROR;
+ IcmpErrMap[9].IsHard = FALSE;
+ IcmpErrMap[9].Notify = TRUE;
ASSERT ((IcmpError >= ICMP_ERR_UNREACH_NET) && (IcmpError <= ICMP_ERR_PARAMPROB));
|