/** @file\r
Driver Binding functions and Service Binding functions for the Network driver module.\r
\r
- Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
);\r
if (EFI_ERROR (Status)) {\r
Udp6CleanService (Udp6Service);\r
- goto EXIT;\r
}\r
\r
EXIT:\r
@param[in] Entry The entry to be removed.\r
@param[in] Context Pointer to the callback context corresponds to the Context in NetDestroyLinkList.\r
\r
- @retval EFI_SUCCESS The entry has been removed successfully.\r
- @retval Others Fail to remove the entry.\r
+ @retval EFI_INVALID_PARAMETER Entry is NULL or Context is NULL.\r
+ @retval EFI_SUCCESS The entry has been removed successfully.\r
+ @retval Others Fail to remove the entry.\r
\r
**/\r
EFI_STATUS\r
IN EFI_HANDLE *ChildHandleBuffer OPTIONAL\r
)\r
{\r
- EFI_STATUS Status;\r
- EFI_HANDLE NicHandle;\r
- EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;\r
- UDP6_SERVICE_DATA *Udp6Service;\r
- LIST_ENTRY *List;\r
- UDP6_DESTROY_CHILD_IN_HANDLE_BUF_CONTEXT Context;\r
+ EFI_STATUS Status;\r
+ EFI_HANDLE NicHandle;\r
+ EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;\r
+ UDP6_SERVICE_DATA *Udp6Service;\r
+ LIST_ENTRY *List;\r
+ UDP6_DESTROY_CHILD_IN_HANDLE_BUF_CONTEXT Context;\r
\r
//\r
// Find the NicHandle where UDP6 ServiceBinding Protocol is installed.\r
@param[in] RxData Pointer to the EFI_UDP6_RECEIVE_DATA of this\r
datagram.\r
\r
- @return Pointer to the structure wrapping the RxData and the Packet.\r
+ @return Pointer to the structure wrapping the RxData and the Packet. NULL will\r
+ be returned if any error occurs.\r
\r
**/\r
UDP6_RXDATA_WRAP *\r
@param[in] RxData Pointer to the EFI_UDP6_RECEIVE_DATA of this\r
datagram.\r
\r
- @return Pointer to the structure wrapping the RxData and the Packet.\r
+ @return Pointer to the structure wrapping the RxData and the Packet. NULL will\r
+ be returned if any error occurs.\r
\r
**/\r
UDP6_RXDATA_WRAP *\r
EFI_UDP6_SESSION_DATA *Udp6Session;\r
UINTN Enqueued;\r
\r
- if (Packet->TotalSize < sizeof (EFI_UDP_HEADER)) {\r
+ if (Packet->TotalSize < UDP6_HEADER_SIZE) {\r
NetbufFree (Packet);\r
return;\r
}\r
LIST_ENTRY *Entry;\r
UDP6_INSTANCE_DATA *Instance;\r
\r
- if (Packet->TotalSize < sizeof (EFI_UDP_HEADER)) {\r
+ if (Packet->TotalSize < UDP6_HEADER_SIZE) {\r
NetbufFree (Packet);\r
return;\r
}\r