summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/Network/PxeBcDxe
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2008-02-14 09:40:22 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2008-02-14 09:40:22 +0000
commite48e37fce2611df7a52aff271835ff72ee396d9b (patch)
treef6427ba11251479c615da9b5a3e38aa8c7b0f943 /MdeModulePkg/Universal/Network/PxeBcDxe
parentbb8ffffd1c0ff0ee697c26d377fd9767097cc02b (diff)
downloadedk2-platforms-e48e37fce2611df7a52aff271835ff72ee396d9b.tar.xz
Use Mde library and definition instead of some native definitions in NetLib, to simply network library.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4693 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network/PxeBcDxe')
-rw-r--r--MdeModulePkg/Universal/Network/PxeBcDxe/Bc.c10
-rw-r--r--MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_mtftp.c8
-rw-r--r--MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_udp.c8
3 files changed, 4 insertions, 22 deletions
diff --git a/MdeModulePkg/Universal/Network/PxeBcDxe/Bc.c b/MdeModulePkg/Universal/Network/PxeBcDxe/Bc.c
index a59f189f92..fbdeba5d52 100644
--- a/MdeModulePkg/Universal/Network/PxeBcDxe/Bc.c
+++ b/MdeModulePkg/Universal/Network/PxeBcDxe/Bc.c
@@ -1201,7 +1201,6 @@ BcStart (
return EFI_ALREADY_STARTED;
}
-#if !SUPPORT_IPV6
//
// Fail if IPv6 is requested and not supported.
//
@@ -1210,7 +1209,6 @@ BcStart (
EfiReleaseLock (&Private->Lock);
return EFI_UNSUPPORTED;
}
-#endif
//
// Setup shortcuts to SNP protocol and data structure.
//
@@ -2174,7 +2172,7 @@ PxeBcDriverStart (
if (EFI_ERROR (Status)) {
goto PxeBcError;
}
-
+
//
// Get the Snp interface
//
@@ -2223,12 +2221,8 @@ PxeBcDriverStart (
// implementation supports IPv6.
//
Private->EfiBc.Mode->Ipv6Supported = SUPPORT_IPV6;
-
-#if SUPPORT_IPV6
- Private->EfiBc.Mode->Ipv6Available = Private->NiiPtr->Ipv6Supported;
-#else
Private->EfiBc.Mode->Ipv6Available = FALSE;
-#endif
+
//
// Set to TRUE by the BC constructor if this BC
// implementation supports BIS.
diff --git a/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_mtftp.c b/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_mtftp.c
index d9fa36896d..108c2c987e 100644
--- a/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_mtftp.c
+++ b/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_mtftp.c
@@ -1127,11 +1127,7 @@ MtftpDownload (
// test of MTFTP server to make sure it handles mulitple opens correctly.
// This code should NOT be enabled normally.
//
-#ifdef SpecialNowaitVersion
-#pragma message ("This is special version for MTFTP regression test")
- if (StartBlock || !LastBlock)
-#endif
- if (((Status = MtftpListen (
+ if (((Status = MtftpListen (
Private,
&BufferSize,
BufferPtrLocal,
@@ -1148,7 +1144,7 @@ MtftpDownload (
//
// failed
//
- }
+ }
//
// if none were received, start block is not reset
//
diff --git a/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_udp.c b/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_udp.c
index eb2951abd8..76594f56d7 100644
--- a/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_udp.c
+++ b/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_udp.c
@@ -320,14 +320,6 @@ UdpRead (
CopyMem (&TmpDestIp, &Private->EfiBc.Mode->StationIp, sizeof (EFI_IP_ADDRESS));
}
-#if SUPPORT_IPV6
- if (Private->EfiBc.Mode->UsingIpv6) {
- //
- // %%TBD
- //
- }
-#endif
-
for (;;) {
*BufferSizeptr = BufferSize;