NetworkPkg/Ip6Dxe: Fix various typos

Fix various typos in comments and documentation.

Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>
Cc: Maciej Rabeda <maciej.rabeda@intel.com>
Signed-off-by: Antoine Coeur <coeur@gmx.fr>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Reviewed-by: Maciej Rabeda <maciej.rabeda@intel.com>
Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
Message-Id: <20200207010831.9046-41-philmd@redhat.com>
This commit is contained in:
Antoine Coeur 2020-02-07 02:07:53 +01:00 committed by mergify[bot]
parent 6c585b52e5
commit 7de8045a09
20 changed files with 73 additions and 73 deletions

View File

@ -214,7 +214,7 @@ Ip6CreateLinkLocalAddr (
} }
// //
// Get the interface id if it is manully configured. // Get the interface id if it is manually configured.
// //
Ip6Config = &IpSb->Ip6ConfigInstance.Ip6Config; Ip6Config = &IpSb->Ip6ConfigInstance.Ip6Config;
DataSize = sizeof (EFI_IP6_CONFIG_INTERFACE_ID); DataSize = sizeof (EFI_IP6_CONFIG_INTERFACE_ID);

View File

@ -101,7 +101,7 @@ Ip6ConfigOnPolicyChanged (
} }
// //
// All IPv6 children that use global unicast address as it's source address // All IPv6 children that use global unicast address as its source address
// should be destroyed now. The survivers are those use the link-local address // should be destroyed now. The survivers are those use the link-local address
// or the unspecified address as the source address. // or the unspecified address as the source address.
// TODO: Conduct a check here. // TODO: Conduct a check here.
@ -335,7 +335,7 @@ Ip6ConfigSignalEvent (
/** /**
Read the configuration data from variable storage according to the VarName and Read the configuration data from variable storage according to the VarName and
gEfiIp6ConfigProtocolGuid. It checks the integrity of variable data. If the gEfiIp6ConfigProtocolGuid. It checks the integrity of variable data. If the
data is corrupted, it clears the variable data to ZERO. Othewise, it outputs the data is corrupted, it clears the variable data to ZERO. Otherwise, it outputs the
configuration data to IP6_CONFIG_INSTANCE. configuration data to IP6_CONFIG_INSTANCE.
@param[in] VarName The pointer to the variable name @param[in] VarName The pointer to the variable name
@ -612,7 +612,7 @@ Ip6ConfigGetIfInfo (
} }
/** /**
The work function for EfiIp6ConfigSetData() to set the alternative inteface ID The work function for EfiIp6ConfigSetData() to set the alternative interface ID
for the communication device managed by this IP6Config instance, if the link local for the communication device managed by this IP6Config instance, if the link local
IPv6 addresses generated from the interface ID based on the default source the IPv6 addresses generated from the interface ID based on the default source the
EFI IPv6 Protocol uses is a duplicate address. EFI IPv6 Protocol uses is a duplicate address.
@ -915,7 +915,7 @@ Ip6ManualAddrDadCallback (
under the current policy. under the current policy.
@retval EFI_INVALID_PARAMETER One or more fields in Data is invalid. @retval EFI_INVALID_PARAMETER One or more fields in Data is invalid.
@retval EFI_OUT_OF_RESOURCES Fail to allocate resource to complete the operation. @retval EFI_OUT_OF_RESOURCES Fail to allocate resource to complete the operation.
@retval EFI_NOT_READY An asynchrous process is invoked to set the specified @retval EFI_NOT_READY An asynchronous process is invoked to set the specified
configuration data, and the process is not finished. configuration data, and the process is not finished.
@retval EFI_ABORTED The manual addresses to be set equal current @retval EFI_ABORTED The manual addresses to be set equal current
configuration. configuration.
@ -2034,7 +2034,7 @@ EfiIp6ConfigSetData (
} }
} else { } else {
// //
// Another asynchornous process is on the way. // Another asynchronous process is on the way.
// //
Status = EFI_ACCESS_DENIED; Status = EFI_ACCESS_DENIED;
} }

View File

@ -1,5 +1,5 @@
/** @file /** @file
Definitions for EFI IPv6 Configuartion Protocol implementation. Definitions for EFI IPv6 Configuration Protocol implementation.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR> Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
@ -210,7 +210,7 @@ struct _IP6_CONFIG_INSTANCE {
/** /**
Read the configuration data from variable storage according to the VarName and Read the configuration data from variable storage according to the VarName and
gEfiIp6ConfigProtocolGuid. It checks the integrity of variable data. If the gEfiIp6ConfigProtocolGuid. It checks the integrity of variable data. If the
data is corrupted, it clears the variable data to ZERO. Othewise, it outputs the data is corrupted, it clears the variable data to ZERO. Otherwise, it outputs the
configuration data to IP6_CONFIG_INSTANCE. configuration data to IP6_CONFIG_INSTANCE.
@param[in] VarName The pointer to the variable name @param[in] VarName The pointer to the variable name

View File

@ -407,7 +407,7 @@ Exit:
/** /**
This function converts the different format of address list to string format and This function converts the different format of address list to string format and
then generates the corresponding text opcode to illustarate the address info in then generates the corresponding text opcode to illustrate the address info in
IP6 configuration page. Currently, the following formats are supported: IP6 configuration page. Currently, the following formats are supported:
EFI_IP6_ADDRESS_INFO AddressType: Ip6ConfigNvHostAddress; EFI_IP6_ADDRESS_INFO AddressType: Ip6ConfigNvHostAddress;
EFI_IPv6_ADDRESS AddressType: Ip6ConfigNvGatewayAddress and Ip6ConfigNvDnsAddress; EFI_IPv6_ADDRESS AddressType: Ip6ConfigNvGatewayAddress and Ip6ConfigNvDnsAddress;
@ -1470,7 +1470,7 @@ Exit:
@param[out] Progress A pointer to a string filled in with the @param[out] Progress A pointer to a string filled in with the
offset of the most recent '&' before the offset of the most recent '&' before the
first failing name / value pair (or the first failing name / value pair (or the
beginn ing of the string if the failure beginning of the string if the failure
is in the first name / value pair) or is in the first name / value pair) or
the terminating NULL if all was the terminating NULL if all was
successful. successful.
@ -1622,7 +1622,7 @@ Ip6GetCurrentSetting (
} }
// //
// Get gateway adderss list. // Get gateway address list.
// //
if (Data != NULL) { if (Data != NULL) {
FreePool (Data); FreePool (Data);

View File

@ -498,7 +498,7 @@ ON_ERROR:
@param[in] RemainingDevicePath Optional parameter used to pick a specific child @param[in] RemainingDevicePath Optional parameter used to pick a specific child
device to start. device to start.
@retval EFI_SUCCES This driver is added to ControllerHandle. @retval EFI_SUCCESS This driver is added to ControllerHandle.
@retval EFI_ALREADY_STARTED This driver is already running on ControllerHandle. @retval EFI_ALREADY_STARTED This driver is already running on ControllerHandle.
@retval other This driver does not support this device. @retval other This driver does not support this device.
@ -547,7 +547,7 @@ Ip6DriverBindingStart (
Ip6Cfg = &IpSb->Ip6ConfigInstance.Ip6Config; Ip6Cfg = &IpSb->Ip6ConfigInstance.Ip6Config;
// //
// Install the Ip6ServiceBinding Protocol onto ControlerHandle // Install the Ip6ServiceBinding Protocol onto ControllerHandle
// //
Status = gBS->InstallMultipleProtocolInterfaces ( Status = gBS->InstallMultipleProtocolInterfaces (
&ControllerHandle, &ControllerHandle,
@ -823,7 +823,7 @@ Exit:
is not NULL, then the I/O services are added to is not NULL, then the I/O services are added to
the existing child handle. the existing child handle.
@retval EFI_SUCCES The child handle was created with the I/O services. @retval EFI_SUCCESS The child handle was created with the I/O services.
@retval EFI_OUT_OF_RESOURCES There are not enough resources available to create @retval EFI_OUT_OF_RESOURCES There are not enough resources available to create
the child. the child.
@retval other The child handle was not created. @retval other The child handle was not created.
@ -925,7 +925,7 @@ ON_ERROR:
@param[in] This Protocol instance pointer. @param[in] This Protocol instance pointer.
@param[in] ChildHandle Handle of the child to destroy. @param[in] ChildHandle Handle of the child to destroy.
@retval EFI_SUCCES The I/O services were removed from the child @retval EFI_SUCCESS The I/O services were removed from the child
handle. handle.
@retval EFI_UNSUPPORTED The child handle does not support the I/O services @retval EFI_UNSUPPORTED The child handle does not support the I/O services
that are being removed. that are being removed.
@ -1005,14 +1005,14 @@ Ip6ServiceBindingDestroyChild (
// Uninstall the IP6 protocol first. Many thing happens during // Uninstall the IP6 protocol first. Many thing happens during
// this: // this:
// 1. The consumer of the IP6 protocol will be stopped if it // 1. The consumer of the IP6 protocol will be stopped if it
// opens the protocol BY_DRIVER. For eaxmple, if MNP driver is // opens the protocol BY_DRIVER. For example, if MNP driver is
// stopped, IP driver's stop function will be called, and uninstall // stopped, IP driver's stop function will be called, and uninstall
// EFI_IP6_PROTOCOL will trigger the UDP's stop function. This // EFI_IP6_PROTOCOL will trigger the UDP's stop function. This
// makes it possible to create the network stack bottom up, and // makes it possible to create the network stack bottom up, and
// stop it top down. // stop it top down.
// 2. the upper layer will recycle the received packet. The recycle // 2. the upper layer will recycle the received packet. The recycle
// event's TPL is higher than this function. The recycle events // event's TPL is higher than this function. The recycle events
// will be called back before preceeding. If any packets not recycled, // will be called back before preceding. If any packets not recycled,
// that means there is a resource leak. // that means there is a resource leak.
// //
gBS->RestoreTPL (OldTpl); gBS->RestoreTPL (OldTpl);

View File

@ -66,7 +66,7 @@ Ip6DriverEntryPoint (
); );
// //
// Function prototypes for the Drivr Binding Protocol // Function prototypes for the Driver Binding Protocol
// //
/** /**
@ -98,7 +98,7 @@ Ip6DriverBindingSupported (
@param[in] RemainingDevicePath Optional parameter used to pick a specific child @param[in] RemainingDevicePath Optional parameter used to pick a specific child
device to start. device to start.
@retval EFI_SUCCES This driver is added to ControllerHandle. @retval EFI_SUCCESS This driver is added to ControllerHandle.
@retval EFI_ALREADY_STARTED This driver is already running on ControllerHandle. @retval EFI_ALREADY_STARTED This driver is already running on ControllerHandle.
@retval other This driver does not support this device. @retval other This driver does not support this device.
@ -147,7 +147,7 @@ Ip6DriverBindingStop (
is not NULL, then the I/O services are added to is not NULL, then the I/O services are added to
the existing child handle. the existing child handle.
@retval EFI_SUCCES The child handle was created with the I/O services. @retval EFI_SUCCESS The child handle was created with the I/O services.
@retval EFI_OUT_OF_RESOURCES There are not enough resources available to create @retval EFI_OUT_OF_RESOURCES There are not enough resources available to create
the child. the child.
@retval other The child handle was not created. @retval other The child handle was not created.
@ -166,7 +166,7 @@ Ip6ServiceBindingCreateChild (
@param[in] This Protocol instance pointer. @param[in] This Protocol instance pointer.
@param[in] ChildHandle Handle of the child to destroy. @param[in] ChildHandle Handle of the child to destroy.
@retval EFI_SUCCES The I/O services were removed from the child @retval EFI_SUCCESS The I/O services were removed from the child
handle. handle.
@retval EFI_UNSUPPORTED The child handle does not support the I/O services @retval EFI_UNSUPPORTED The child handle does not support the I/O services
that are being removed. that are being removed.

View File

@ -300,7 +300,7 @@ Ip6ProcessIcmpError (
} }
// //
// Notify the upper-layer process that an ICMPv6 eror message is received. // Notify the upper-layer process that an ICMPv6 error message is received.
// //
IP6_GET_CLIP_INFO (Packet)->Status = EFI_ICMP_ERROR; IP6_GET_CLIP_INFO (Packet)->Status = EFI_ICMP_ERROR;
return Ip6Demultiplex (IpSb, Head, Packet); return Ip6Demultiplex (IpSb, Head, Packet);

View File

@ -1,5 +1,5 @@
/** @file /** @file
Implement IP6 pesudo interface. Implement IP6 pseudo interface.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR> Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
@ -160,7 +160,7 @@ Ip6SetAddress (
// //
// Node should delay joining the solicited-node mulitcast address by a random delay // Node should delay joining the solicited-node multicast address by a random delay
// between 0 and MAX_RTR_SOLICITATION_DELAY (1 second). // between 0 and MAX_RTR_SOLICITATION_DELAY (1 second).
// Thus queue the address to be processed in Duplicate Address Detection module // Thus queue the address to be processed in Duplicate Address Detection module
// after the delay time (in milliseconds). // after the delay time (in milliseconds).
@ -497,7 +497,7 @@ Ip6OnFrameReceivedDpc (
} }
// //
// Wrap the frame in a net buffer then deliever it to IP input. // Wrap the frame in a net buffer then deliver it to IP input.
// IP will reassemble the packet, and deliver it to upper layer // IP will reassemble the packet, and deliver it to upper layer
// //
Netfrag.Len = MnpRxData->DataLength; Netfrag.Len = MnpRxData->DataLength;
@ -548,7 +548,7 @@ Ip6OnFrameReceived (
@retval EFI_ALREADY_STARTED There is already a pending receive request. @retval EFI_ALREADY_STARTED There is already a pending receive request.
@retval EFI_OUT_OF_RESOURCES Failed to allocate resource to receive. @retval EFI_OUT_OF_RESOURCES Failed to allocate resource to receive.
@retval EFI_SUCCESS The recieve request has been started. @retval EFI_SUCCESS The receive request has been started.
**/ **/
EFI_STATUS EFI_STATUS
@ -575,7 +575,7 @@ Ip6ReceiveFrame (
} }
/** /**
Callback funtion when frame transmission is finished. It will Callback function when frame transmission is finished. It will
call the frame owner's callback function to tell it the result. call the frame owner's callback function to tell it the result.
@param[in] Context Context which points to the token. @param[in] Context Context which points to the token.

View File

@ -1,5 +1,5 @@
/** @file /** @file
Definition for IP6 pesudo interface structure. Definition for IP6 pseudo interface structure.
Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR> Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
@ -203,7 +203,7 @@ Ip6OnFrameReceived (
@retval EFI_ALREADY_STARTED There is already a pending receive request. @retval EFI_ALREADY_STARTED There is already a pending receive request.
@retval EFI_OUT_OF_RESOURCES Failed to allocate resources to receive. @retval EFI_OUT_OF_RESOURCES Failed to allocate resources to receive.
@retval EFI_SUCCESS The recieve request has been started. @retval EFI_SUCCESS The receive request has been started.
**/ **/
EFI_STATUS EFI_STATUS

View File

@ -288,7 +288,7 @@ Ip6IsIllegalProtocol (
} }
/** /**
Intiialize the IP6_PROTOCOL structure to the unconfigured states. Initialize the IP6_PROTOCOL structure to the unconfigured states.
@param[in] IpSb The IP6 service instance. @param[in] IpSb The IP6 service instance.
@param[in, out] IpInstance The IP6 child instance. @param[in, out] IpInstance The IP6 child instance.
@ -604,7 +604,7 @@ Ip6ServiceConfigMnp (
@retval EFI_DEVICE_ERROR An unexpected system or network error occurred. The EFI IPv6 @retval EFI_DEVICE_ERROR An unexpected system or network error occurred. The EFI IPv6
Protocol driver instance was not opened. Protocol driver instance was not opened.
@retval EFI_UNSUPPORTED Default protocol specified through @retval EFI_UNSUPPORTED Default protocol specified through
Ip6ConfigData.DefaulProtocol isn't supported. Ip6ConfigData.DefaultProtocol isn't supported.
**/ **/
EFI_STATUS EFI_STATUS
@ -787,7 +787,7 @@ ON_EXIT:
the destination IPv6 address arithmetically. The gateway address must be on the same subnet as the the destination IPv6 address arithmetically. The gateway address must be on the same subnet as the
configured station address. configured station address.
The default route is added with Destination and PrefixLegth both set to all zeros. The The default route is added with Destination and PrefixLength both set to all zeros. The
default route matches all destination IPv6 addresses that do not match any other routes. default route matches all destination IPv6 addresses that do not match any other routes.
All EFI IPv6 Protocol instances share a routing table. All EFI IPv6 Protocol instances share a routing table.
@ -1001,7 +1001,7 @@ Exit:
@param[in] Map The container of either user's transmit or receive @param[in] Map The container of either user's transmit or receive
token. token.
@param[in] Item Current item to check against. @param[in] Item Current item to check against.
@param[in] Context The Token to check againist. @param[in] Context The Token to check against.
@retval EFI_ACCESS_DENIED The token or event has already been enqueued in IP @retval EFI_ACCESS_DENIED The token or event has already been enqueued in IP
@retval EFI_SUCCESS The current item isn't the same token/event as the @retval EFI_SUCCESS The current item isn't the same token/event as the
@ -1449,7 +1449,7 @@ Exit:
is signaled. is signaled.
Current Udp implementation creates an IP child for each Udp child. Current Udp implementation creates an IP child for each Udp child.
It initates a asynchronous receive immediately no matter whether It initiates a asynchronous receive immediately no matter whether
there is no mapping or not. Therefore, disable the returning EFI_NO_MAPPING for now. there is no mapping or not. Therefore, disable the returning EFI_NO_MAPPING for now.
To enable it, the following check must be performed: To enable it, the following check must be performed:

View File

@ -139,7 +139,7 @@ struct _IP6_PROTOCOL {
UINT8 PrefixLength; // PrefixLength of the configured station address. UINT8 PrefixLength; // PrefixLength of the configured station address.
// //
// User's transmit/receive tokens, and received/deliverd packets // User's transmit/receive tokens, and received/delivered packets
// //
NET_MAP RxTokens; NET_MAP RxTokens;
NET_MAP TxTokens; // map between (User's Token, IP6_TXTOKE_WRAP) NET_MAP TxTokens; // map between (User's Token, IP6_TXTOKE_WRAP)
@ -412,7 +412,7 @@ EfiIp6GetModeData (
@retval EFI_DEVICE_ERROR An unexpected system or network error occurred. The EFI IPv6 @retval EFI_DEVICE_ERROR An unexpected system or network error occurred. The EFI IPv6
Protocol driver instance was not opened. Protocol driver instance was not opened.
@retval EFI_UNSUPPORTED Default protocol specified through @retval EFI_UNSUPPORTED Default protocol specified through
Ip6ConfigData.DefaulProtocol isn't supported. Ip6ConfigData.DefaultProtocol isn't supported.
**/ **/
EFI_STATUS EFI_STATUS
@ -470,7 +470,7 @@ EfiIp6Groups (
the destination IPv6 address arithmetically. The gateway address must be on the same subnet as the the destination IPv6 address arithmetically. The gateway address must be on the same subnet as the
configured station address. configured station address.
The default route is added with Destination and PrefixLegth both set to all zeros. The The default route is added with Destination and PrefixLength both set to all zeros. The
default route matches all destination IPv6 addresses that do not match any other routes. default route matches all destination IPv6 addresses that do not match any other routes.
All EFI IPv6 Protocol instances share a routing table. All EFI IPv6 Protocol instances share a routing table.
@ -642,7 +642,7 @@ EfiIp6Transmit (
is signaled. is signaled.
Current Udp implementation creates an IP child for each Udp child. Current Udp implementation creates an IP child for each Udp child.
It initates a asynchronous receive immediately whether or not It initiates a asynchronous receive immediately whether or not
there is no mapping. Therefore, disable the returning EFI_NO_MAPPING for now. there is no mapping. Therefore, disable the returning EFI_NO_MAPPING for now.
To enable it, the following check must be performed: To enable it, the following check must be performed:

View File

@ -319,7 +319,7 @@ Ip6Reassemble (
} }
// //
// Backup the first fragment in case the reasembly of that packet fail. // Backup the first fragment in case the reassembly of that packet fail.
// //
Duplicate = NetbufDuplicate (Packet, NULL, sizeof (EFI_IP6_HEADER)); Duplicate = NetbufDuplicate (Packet, NULL, sizeof (EFI_IP6_HEADER));
if (Duplicate == NULL) { if (Duplicate == NULL) {
@ -371,7 +371,7 @@ Ip6Reassemble (
// //
// Deliver the whole packet if all the fragments received. // Deliver the whole packet if all the fragments received.
// All fragments received if: // All fragments received if:
// 1. received the last one, so, the totoal length is know // 1. received the last one, so, the total length is known
// 2. received all the data. If the last fragment on the // 2. received all the data. If the last fragment on the
// queue ends at the total length, all data is received. // queue ends at the total length, all data is received.
// //
@ -380,7 +380,7 @@ Ip6Reassemble (
RemoveEntryList (&Assemble->Link); RemoveEntryList (&Assemble->Link);
// //
// If the packet is properly formated, the last fragment's End // If the packet is properly formatted, the last fragment's End
// equals to the packet's total length. Otherwise, the packet // equals to the packet's total length. Otherwise, the packet
// is a fake, drop it now. // is a fake, drop it now.
// //
@ -396,7 +396,7 @@ Ip6Reassemble (
// //
// This TmpPacket is used to hold the unfragmentable part, i.e., // This TmpPacket is used to hold the unfragmentable part, i.e.,
// the IPv6 header and the unfragmentable extension headers. Be noted that // the IPv6 header and the unfragmentable extension headers. Be noted that
// the Fragment Header is exluded. // the Fragment Header is excluded.
// //
TmpPacket = NetbufGetFragment (Fragment, 0, This->HeadLen, 0); TmpPacket = NetbufGetFragment (Fragment, 0, This->HeadLen, 0);
ASSERT (TmpPacket != NULL); ASSERT (TmpPacket != NULL);
@ -489,7 +489,7 @@ Ip6IpSecFree (
@retval EFI_SUCCESS The packet was bypassed, and all buffers remain the same. @retval EFI_SUCCESS The packet was bypassed, and all buffers remain the same.
@retval EFI_SUCCESS The packet was protected. @retval EFI_SUCCESS The packet was protected.
@retval EFI_ACCESS_DENIED The packet was discarded. @retval EFI_ACCESS_DENIED The packet was discarded.
@retval EFI_OUT_OF_RESOURCES There are not suffcient resources to complete the operation. @retval EFI_OUT_OF_RESOURCES There are not sufficient resources to complete the operation.
@retval EFI_BUFFER_TOO_SMALL The number of non-empty blocks is bigger than the @retval EFI_BUFFER_TOO_SMALL The number of non-empty blocks is bigger than the
number of input data blocks when building a fragment table. number of input data blocks when building a fragment table.
@ -718,7 +718,7 @@ ON_EXIT:
@param[in, out] Packet The received IP6 packet to be processed. @param[in, out] Packet The received IP6 packet to be processed.
@param[in] Flag The link layer flag for the packet received, such @param[in] Flag The link layer flag for the packet received, such
as multicast. as multicast.
@param[out] Payload The pointer to the payload of the recieved packet. @param[out] Payload The pointer to the payload of the received packet.
it starts from the first byte of the extension header. it starts from the first byte of the extension header.
@param[out] LastHead The pointer of NextHeader of the last extension @param[out] LastHead The pointer of NextHeader of the last extension
header processed by IP6. header processed by IP6.
@ -1070,7 +1070,7 @@ Ip6AcceptFrame (
// //
// Packet may have been changed. The ownership of the packet // Packet may have been changed. The ownership of the packet
// is transfered to the packet process logic. // is transferred to the packet process logic.
// //
Head = Packet->Ip.Ip6; Head = Packet->Ip.Ip6;
IP6_GET_CLIP_INFO (Packet)->Status = EFI_SUCCESS; IP6_GET_CLIP_INFO (Packet)->Status = EFI_SUCCESS;
@ -1283,7 +1283,7 @@ Ip6InstanceFrameAcceptable (
Proto = NULL; Proto = NULL;
// //
// Dirty trick for the Tiano UEFI network stack implmentation. If // Dirty trick for the Tiano UEFI network stack implementation. If
// ReceiveTimeout == -1, the receive of the packet for this instance // ReceiveTimeout == -1, the receive of the packet for this instance
// is disabled. The UEFI spec don't have such captibility. We add // is disabled. The UEFI spec don't have such captibility. We add
// this to improve the performance because IP will make a copy of // this to improve the performance because IP will make a copy of
@ -1428,7 +1428,7 @@ Ip6InstanceEnquePacket (
} }
// //
// Enque a shared copy of the packet. // Enqueue a shared copy of the packet.
// //
Clone = NetbufClone (Packet); Clone = NetbufClone (Packet);
@ -1661,7 +1661,7 @@ Ip6Demultiplex (
INTN Enqueued; INTN Enqueued;
// //
// Two pass delivery: first, enque a shared copy of the packet // Two pass delivery: first, enqueue a shared copy of the packet
// to each instance that accept the packet. // to each instance that accept the packet.
// //
Enqueued = 0; Enqueued = 0;

View File

@ -149,7 +149,7 @@ Ip6InstanceDeliverPacket (
@retval EFI_SUCCESS The packet was bypassed, and all buffers remain the same. @retval EFI_SUCCESS The packet was bypassed, and all buffers remain the same.
@retval EFI_SUCCESS The packet was protected. @retval EFI_SUCCESS The packet was protected.
@retval EFI_ACCESS_DENIED The packet was discarded. @retval EFI_ACCESS_DENIED The packet was discarded.
@retval EFI_OUT_OF_RESOURCES There are not suffcient resources to complete the operation. @retval EFI_OUT_OF_RESOURCES There are not sufficient resources to complete the operation.
@retval EFI_BUFFER_TOO_SMALL The number of non-empty blocks is bigger than the @retval EFI_BUFFER_TOO_SMALL The number of non-empty blocks is bigger than the
number of input data blocks when building a fragment table. number of input data blocks when building a fragment table.
@ -192,11 +192,11 @@ Ip6CleanAssembleTable (
/** /**
Demultiple the packet. the packet delivery is processed in two Demultiple the packet. the packet delivery is processed in two
passes. The first pass will enque a shared copy of the packet passes. The first pass will enqueue a shared copy of the packet
to each IP6 child that accepts the packet. The second pass will to each IP6 child that accepts the packet. The second pass will
deliver a non-shared copy of the packet to each IP6 child that deliver a non-shared copy of the packet to each IP6 child that
has pending receive requests. Data is copied if more than one has pending receive requests. Data is copied if more than one
child wants to consume the packet bacause each IP child need child wants to consume the packet because each IP child need
its own copy of the packet to make changes. its own copy of the packet to make changes.
@param[in] IpSb The IP6 service instance that received the packet. @param[in] IpSb The IP6 service instance that received the packet.

View File

@ -383,7 +383,7 @@ ERROR:
@retval EFI_OUT_OF_RESOURCES There are not sufficient resources to complete @retval EFI_OUT_OF_RESOURCES There are not sufficient resources to complete
the operation. the operation.
@retval EFI_SUCESS The address is added to the group address array. @retval EFI_SUCCESS The address is added to the group address array.
**/ **/
EFI_STATUS EFI_STATUS
@ -496,8 +496,8 @@ Ip6JoinGroup (
} }
// //
// Repeat the report once or twcie after short delays [Unsolicited Report Interval] (default:10s) // Repeat the report once or twice after short delays [Unsolicited Report Interval] (default:10s)
// Simulate this operation as a Multicast-Address-Specific Query was received for that addresss. // Simulate this operation as a Multicast-Address-Specific Query was received for that address.
// //
Group = Ip6CreateMldEntry (IpSb, Address, IP6_UNSOLICITED_REPORT_INTERVAL); Group = Ip6CreateMldEntry (IpSb, Address, IP6_UNSOLICITED_REPORT_INTERVAL);
if (Group == NULL) { if (Group == NULL) {
@ -604,7 +604,7 @@ Ip6LeaveGroup (
@retval EFI_ALREADY_STARTED Wants to join the group, but is already a member of it @retval EFI_ALREADY_STARTED Wants to join the group, but is already a member of it
@retval EFI_OUT_OF_RESOURCES Failed to allocate sufficient resources. @retval EFI_OUT_OF_RESOURCES Failed to allocate sufficient resources.
@retval EFI_DEVICE_ERROR Failed to set the group configuraton. @retval EFI_DEVICE_ERROR Failed to set the group configuration.
@retval EFI_SUCCESS Successfully updated the group setting. @retval EFI_SUCCESS Successfully updated the group setting.
@retval EFI_NOT_FOUND Try to leave the group which it isn't a member. @retval EFI_NOT_FOUND Try to leave the group which it isn't a member.

View File

@ -124,7 +124,7 @@ Ip6LeaveGroup (
@retval EFI_ALREADY_STARTED Wants to join the group, but is already a member of it. @retval EFI_ALREADY_STARTED Wants to join the group, but is already a member of it.
@retval EFI_OUT_OF_RESOURCES Failed to allocate some resources. @retval EFI_OUT_OF_RESOURCES Failed to allocate some resources.
@retval EFI_DEVICE_ERROR Failed to set the group configuraton. @retval EFI_DEVICE_ERROR Failed to set the group configuration.
@retval EFI_SUCCESS Successfully updated the group setting. @retval EFI_SUCCESS Successfully updated the group setting.
@retval EFI_NOT_FOUND Tried to leave a group of whom it isn't a member. @retval EFI_NOT_FOUND Tried to leave a group of whom it isn't a member.

View File

@ -1645,7 +1645,7 @@ Ip6ProcessNeighborSolicit (
// //
// Sends a Neighbor Advertisement as response. // Sends a Neighbor Advertisement as response.
// Set the Router flag to zero since the node is a host. // Set the Router flag to zero since the node is a host.
// If the source address of the solicitation is unspeicifed, and target address // If the source address of the solicitation is unspecified, and target address
// is one of the maintained address, reply a unsolicited multicast advertisement. // is one of the maintained address, reply a unsolicited multicast advertisement.
// //
if (IsDAD && IsMaintained) { if (IsDAD && IsMaintained) {
@ -2087,7 +2087,7 @@ Ip6ProcessRouterAdvertise (
} }
// //
// If an valid router advertisment is received, stops router solicitation. // If an valid router advertisement is received, stops router solicitation.
// //
IpSb->RouterAdvertiseReceived = TRUE; IpSb->RouterAdvertiseReceived = TRUE;
@ -2251,7 +2251,7 @@ Ip6ProcessRouterAdvertise (
// //
if (!Ip6IsOneOfSetAddress (IpSb, &StatelessAddress, NULL, NULL)) { if (!Ip6IsOneOfSetAddress (IpSb, &StatelessAddress, NULL, NULL)) {
// //
// And also not in the DAD process, check its uniqeness firstly. // And also not in the DAD process, check its uniqueness firstly.
// //
if (Ip6FindDADEntry (IpSb, &StatelessAddress, NULL) == NULL) { if (Ip6FindDADEntry (IpSb, &StatelessAddress, NULL) == NULL) {
Status = Ip6SetAddress ( Status = Ip6SetAddress (
@ -2303,7 +2303,7 @@ Ip6ProcessRouterAdvertise (
} else if (PrefixList->ValidLifetime <= 7200) { } else if (PrefixList->ValidLifetime <= 7200) {
// //
// If RemainingLifetime is less than or equls to 2 hours, ignore the // If RemainingLifetime is less than or equals to 2 hours, ignore the
// Prefix Information option with regards to the valid lifetime. // Prefix Information option with regards to the valid lifetime.
// TODO: If this option has been authenticated, set the valid lifetime. // TODO: If this option has been authenticated, set the valid lifetime.
// //
@ -2365,7 +2365,7 @@ Exit:
the IP head removed. the IP head removed.
@retval EFI_INVALID_PARAMETER The parameter is invalid. @retval EFI_INVALID_PARAMETER The parameter is invalid.
@retval EFI_OUT_OF_RESOURCES Insuffcient resources to complete the @retval EFI_OUT_OF_RESOURCES Insufficient resources to complete the
operation. operation.
@retval EFI_SUCCESS Successfully updated the route caches. @retval EFI_SUCCESS Successfully updated the route caches.
@ -3069,7 +3069,7 @@ Ip6NdFasterTimerTicking (
/** /**
The heartbeat timer of ND module in 1 second. This time routine handles following The heartbeat timer of ND module in 1 second. This time routine handles following
things: 1) maitain default router list; 2) maintain prefix options; things: 1) maintain default router list; 2) maintain prefix options;
3) maintain route caches. 3) maintain route caches.
@param[in] IpSb The IP6 service binding instance. @param[in] IpSb The IP6 service binding instance.

View File

@ -587,7 +587,7 @@ Ip6ProcessRouterAdvertise (
the IP head removed. the IP head removed.
@retval EFI_INVALID_PARAMETER The parameter is invalid. @retval EFI_INVALID_PARAMETER The parameter is invalid.
@retval EFI_OUT_OF_RESOURCES Insuffcient resources to complete the @retval EFI_OUT_OF_RESOURCES Insufficient resources to complete the
operation. operation.
@retval EFI_SUCCESS Successfully updated the route caches. @retval EFI_SUCCESS Successfully updated the route caches.
@ -705,7 +705,7 @@ Ip6NdFasterTimerTicking (
/** /**
The heartbeat timer of ND module in 1 second. This time routine handles following The heartbeat timer of ND module in 1 second. This time routine handles following
things: 1) maitain default router list; 2) maintain prefix options; things: 1) maintain default router list; 2) maintain prefix options;
3) maintain route caches. 3) maintain route caches.
@param[in] IpSb The IP6 service binding instance. @param[in] IpSb The IP6 service binding instance.

View File

@ -870,7 +870,7 @@ Ip6Output (
for (Index = 0, Offset = 0, PacketLen = Mtu; Index < Num; Index++) { for (Index = 0, Offset = 0, PacketLen = Mtu; Index < Num; Index++) {
// //
// Get fragment from the Packet, append UnFragnmentLen spare buffer // Get fragment from the Packet, append UnFragmentLen spare buffer
// before the fragmented data, the corresponding data is filled in later. // before the fragmented data, the corresponding data is filled in later.
// //
Fragment = NetbufGetFragment (Packet, Offset, PacketLen, UnFragmentLen); Fragment = NetbufGetFragment (Packet, Offset, PacketLen, UnFragmentLen);

View File

@ -44,7 +44,7 @@ Ip6RouteCacheHash (
@param[in] GatewayAddress The next hop address. This is an optional parameter @param[in] GatewayAddress The next hop address. This is an optional parameter
that may be NULL. that may be NULL.
@return NULL if failed to allocate memeory; otherwise, the newly created route entry. @return NULL if failed to allocate memory; otherwise, the newly created route entry.
**/ **/
IP6_ROUTE_ENTRY * IP6_ROUTE_ENTRY *
@ -105,7 +105,7 @@ Ip6FreeRouteEntry (
2. The local route entries have precedence over the default route entry. 2. The local route entries have precedence over the default route entry.
@param[in] RtTable The route table to search from. @param[in] RtTable The route table to search from.
@param[in] Destination The destionation address to search. If NULL, search @param[in] Destination The destination address to search. If NULL, search
the route table by NextHop. the route table by NextHop.
@param[in] NextHop The next hop address. If NULL, search the route table @param[in] NextHop The next hop address. If NULL, search the route table
by Destination. by Destination.
@ -210,7 +210,7 @@ Ip6FreeRouteCacheEntry (
/** /**
Find a route cache with the destination and source address. This is Find a route cache with the destination and source address. This is
used by the ICMPv6 redirect messasge process. used by the ICMPv6 redirect message process.
@param[in] RtTable The route table to search the cache for. @param[in] RtTable The route table to search the cache for.
@param[in] Dest The destination address. @param[in] Dest The destination address.

View File

@ -1,5 +1,5 @@
/** @file /** @file
EFI IP6 route table and route cache table defintions. EFI IP6 route table and route cache table definitions.
Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR> Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
@ -110,7 +110,7 @@ Ip6FreeRouteCacheEntry (
/** /**
Find a route cache with the destination and source address. This is Find a route cache with the destination and source address. This is
used by the ICMPv6 redirect messasge process. used by the ICMPv6 redirect message process.
@param[in] RtTable The route table to search the cache for. @param[in] RtTable The route table to search the cache for.
@param[in] Dest The destination address. @param[in] Dest The destination address.
@ -181,7 +181,7 @@ Ip6CleanRouteTable (
@param[in] GatewayAddress The next hop address. This is optional parameter @param[in] GatewayAddress The next hop address. This is optional parameter
that may be NULL. that may be NULL.
@return NULL if it failed to allocate memeory. Otherwise, the newly created route entry. @return NULL if it failed to allocate memory. Otherwise, the newly created route entry.
**/ **/
IP6_ROUTE_ENTRY * IP6_ROUTE_ENTRY *
@ -201,7 +201,7 @@ Ip6CreateRouteEntry (
2. The local route entries have precedence over the default route entry. 2. The local route entries have precedence over the default route entry.
@param[in] RtTable The route table to search from. @param[in] RtTable The route table to search from.
@param[in] Destination The destionation address to search. If NULL, search @param[in] Destination The destination address to search. If NULL, search
the route table by NextHop. the route table by NextHop.
@param[in] NextHop The next hop address. If NULL, search the route table @param[in] NextHop The next hop address. If NULL, search the route table
by Destination. by Destination.
@ -260,7 +260,7 @@ Ip6AddRoute (
@retval EFI_SUCCESS Successfully removed the route entry. @retval EFI_SUCCESS Successfully removed the route entry.
@retval EFI_NOT_FOUND There is no route entry in the table with that @retval EFI_NOT_FOUND There is no route entry in the table with that
properity. property.
**/ **/
EFI_STATUS EFI_STATUS