summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4If.c
diff options
context:
space:
mode:
authorjgong5 <jgong5@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-11 02:44:30 +0000
committerjgong5 <jgong5@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-11 02:44:30 +0000
commit5405e9a66b5ecf9f8a7ba571ead43cbee45161ae (patch)
tree6cf3c5793fe5c1c2b36275cc43dd9d36e7eda2ac /MdeModulePkg/Universal/Network/Ip4Dxe/Ip4If.c
parent725c7e225784e2115c8a2edd2f4f12a09d63e54b (diff)
downloadedk2-5405e9a66b5ecf9f8a7ba571ead43cbee45161ae.zip
edk2-5405e9a66b5ecf9f8a7ba571ead43cbee45161ae.tar.gz
edk2-5405e9a66b5ecf9f8a7ba571ead43cbee45161ae.tar.bz2
Scrubbed some files for IP4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6447 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network/Ip4Dxe/Ip4If.c')
-rw-r--r--MdeModulePkg/Universal/Network/Ip4Dxe/Ip4If.c65
1 files changed, 27 insertions, 38 deletions
diff --git a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4If.c b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4If.c
index 083876a..dfd5840 100644
--- a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4If.c
+++ b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4If.c
@@ -80,7 +80,7 @@ Ip4CancelFrameArp (
/**
Wrap a transmit request into a newly allocated IP4_LINK_TX_TOKEN.
- @param Interface The interface to send out from
+ @param Interface The interface to send out to.
@param IpInstance The IpInstance that transmit the packet. NULL if
the packet is sent by the IP4 driver itself.
@param Packet The packet to transmit
@@ -511,9 +511,9 @@ Ip4CreateInterface (
**/
EFI_STATUS
Ip4SetAddress (
- IN IP4_INTERFACE *Interface,
- IN IP4_ADDR IpAddr,
- IN IP4_ADDR SubnetMask
+ IN OUT IP4_INTERFACE *Interface,
+ IN IP4_ADDR IpAddr,
+ IN IP4_ADDR SubnetMask
)
{
EFI_ARP_CONFIG_DATA ArpConfig;
@@ -613,7 +613,7 @@ ON_ERROR:
/**
- Fileter function to cancel all the frame related to an IP instance.
+ Filter function to cancel all the frame related to an IP instance.
@param Frame The transmit request to test whether to cancel
@param Context The context which is the Ip instance that issued
@@ -681,7 +681,7 @@ Ip4CancelReceive (
@param Interface The interface used by the IpInstance
@param IpInstance The Ip instance that free the interface. NULL if
- the Ip driver is releasing the default interface.
+ the Ip driver is releasing the default interface.
@retval EFI_SUCCESS The interface use IpInstance is freed.
@@ -815,28 +815,22 @@ Ip4OnArpResolvedDpc (
Ip4FreeArpQue (ArpQue, EFI_SUCCESS);
}
+/**
+ Request Ip4OnArpResolvedDpc as a DPC at TPL_CALLBACK.
+
+ @param Event The Arp request event.
+ @param Context The context of the callback, a point to the ARP
+ queue.
+
+ @return None
+
+**/
VOID
EFIAPI
Ip4OnArpResolved (
IN EFI_EVENT Event,
IN VOID *Context
)
-/*++
-
-Routine Description:
-
- Request Ip4OnArpResolvedDpc as a DPC at TPL_CALLBACK
-
-Arguments:
-
- Event - The Arp request event
- Context - The context of the callback, a point to the ARP queue
-
-Returns:
-
- None
-
---*/
{
//
// Request Ip4OnArpResolvedDpc as a DPC at TPL_CALLBACK
@@ -879,28 +873,21 @@ Ip4OnFrameSentDpc (
Ip4FreeLinkTxToken (Token);
}
+/**
+ Request Ip4OnFrameSentDpc as a DPC at TPL_CALLBACK.
+
+ @param Event The transmit token's event.
+ @param Context Context which is point to the token.
+
+ @return None
+
+**/
VOID
EFIAPI
Ip4OnFrameSent (
IN EFI_EVENT Event,
IN VOID *Context
)
-/*++
-
-Routine Description:
-
- Request Ip4OnFrameSentDpc as a DPC at TPL_CALLBACK
-
-Arguments:
-
- Event - The transmit token's event
- Context - Context which is point to the token.
-
-Returns:
-
- None.
-
---*/
{
//
// Request Ip4OnFrameSentDpc as a DPC at TPL_CALLBACK
@@ -929,6 +916,7 @@ Returns:
@retval EFI_OUT_OF_RESOURCES Failed to allocate resource to send the frame
@retval EFI_NO_MAPPING Can't resolve the MAC for the nexthop
@retval EFI_SUCCESS The packet is successfully transmitted.
+ @retval other Other error occurs.
**/
EFI_STATUS
@@ -1196,6 +1184,7 @@ Returns:
@retval EFI_ALREADY_STARTED There is already a pending receive request.
@retval EFI_OUT_OF_RESOURCES Failed to allocate resource to receive
@retval EFI_SUCCESS The recieve request has been started.
+ @retval other Other error occurs.
**/
EFI_STATUS