//\r
// The return status should be recognized as EFI_ICMP_ERROR.\r
//\r
- gBS->SignalEvent (RxData->RecycleSignal);\r
- goto ON_EXIT;\r
+ goto ON_RECYCLE;\r
}\r
\r
if (EFI_IP4 (RxData->Header->SourceAddress) != 0 &&\r
//\r
// The source address of the received packet should be a valid unicast address.\r
//\r
- gBS->SignalEvent (RxData->RecycleSignal);\r
- goto ON_EXIT;\r
+ goto ON_RECYCLE;\r
}\r
\r
if (!EFI_IP4_EQUAL (&RxData->Header->DestinationAddress, &Mode->StationIp.v4)) {\r
//\r
// The destination address of the received packet should be equal to the host address.\r
//\r
- gBS->SignalEvent (RxData->RecycleSignal);\r
- goto ON_EXIT;\r
+ goto ON_RECYCLE;\r
}\r
\r
//\r
//\r
// The type of the receveid ICMP message should be ICMP_ERROR_MESSAGE.\r
//\r
- gBS->SignalEvent (RxData->RecycleSignal);\r
- goto ON_EXIT;\r
+ goto ON_RECYCLE;\r
}\r
\r
//\r
IcmpError += CopiedLen;\r
}\r
\r
+ON_RECYCLE:\r
+ gBS->SignalEvent (RxData->RecycleSignal);\r
+\r
ON_EXIT:\r
Private->IcmpToken.Status = EFI_NOT_READY;\r
Ip4->Receive (Ip4, &Private->IcmpToken);\r
//\r
// The return status should be recognized as EFI_ICMP_ERROR.\r
//\r
- gBS->SignalEvent (RxData->RecycleSignal);\r
- goto ON_EXIT;\r
+ goto ON_RECYCLE;\r
}\r
\r
if (!NetIp6IsValidUnicast (&RxData->Header->SourceAddress)) {\r
//\r
// The source address of the received packet should be a valid unicast address.\r
//\r
- gBS->SignalEvent (RxData->RecycleSignal);\r
- goto ON_EXIT;\r
+ goto ON_RECYCLE;\r
}\r
\r
if (!NetIp6IsUnspecifiedAddr (&Mode->StationIp.v6) &&\r
//\r
// The destination address of the received packet should be equal to the host address.\r
//\r
- gBS->SignalEvent (RxData->RecycleSignal);\r
- goto ON_EXIT;\r
+ goto ON_RECYCLE;\r
}\r
\r
//\r
//\r
// The type of the receveid packet should be an ICMP6 error message.\r
//\r
- gBS->SignalEvent (RxData->RecycleSignal);\r
- goto ON_EXIT;\r
+ goto ON_RECYCLE;\r
}\r
\r
//\r
Icmp6Error += CopiedLen;\r
}\r
\r
+ON_RECYCLE:\r
+ gBS->SignalEvent (RxData->RecycleSignal);\r
+ \r
ON_EXIT:\r
Private->Icmp6Token.Status = EFI_NOT_READY;\r
Ip6->Receive (Ip6, &Private->Icmp6Token);\r