2 Implementation of Managed Network Protocol public services.
4 Copyright (c) 2005 - 2016, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
12 Returns the operational parameters for the current MNP child driver. May also
13 support returning the underlying SNP driver mode data.
15 The GetModeData() function is used to read the current mode data (operational
16 parameters) from the MNP or the underlying SNP.
18 @param[in] This Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.
19 @param[out] MnpConfigData Pointer to storage for MNP operational parameters. Type
20 EFI_MANAGED_NETWORK_CONFIG_DATA is defined in "Related
22 @param[out] SnpModeData Pointer to storage for SNP operational parameters. This
23 feature may be unsupported. Type EFI_SIMPLE_NETWORK_MODE
24 is defined in the EFI_SIMPLE_NETWORK_PROTOCOL.
26 @retval EFI_SUCCESS The operation completed successfully.
27 @retval EFI_INVALID_PARAMETER This is NULL.
28 @retval EFI_UNSUPPORTED The requested feature is unsupported in this
30 @retval EFI_NOT_STARTED This MNP child driver instance has not been
31 configured. The default values are returned in
32 MnpConfigData if it is not NULL.
33 @retval Others The mode data could not be read.
39 IN EFI_MANAGED_NETWORK_PROTOCOL
*This
,
40 OUT EFI_MANAGED_NETWORK_CONFIG_DATA
*MnpConfigData OPTIONAL
,
41 OUT EFI_SIMPLE_NETWORK_MODE
*SnpModeData OPTIONAL
44 MNP_INSTANCE_DATA
*Instance
;
45 EFI_SIMPLE_NETWORK_PROTOCOL
*Snp
;
48 UINT32 InterruptStatus
;
51 return EFI_INVALID_PARAMETER
;
54 Instance
= MNP_INSTANCE_DATA_FROM_THIS (This
);
56 OldTpl
= gBS
->RaiseTPL (TPL_CALLBACK
);
58 if (MnpConfigData
!= NULL
) {
60 // Copy the instance configuration data.
62 CopyMem (MnpConfigData
, &Instance
->ConfigData
, sizeof (*MnpConfigData
));
65 if (SnpModeData
!= NULL
) {
67 // Copy the underlayer Snp mode data.
69 Snp
= Instance
->MnpServiceData
->MnpDeviceData
->Snp
;
72 // Upon successful return of GetStatus(), the Snp->Mode->MediaPresent
73 // will be updated to reflect any change of media status
75 Snp
->GetStatus (Snp
, &InterruptStatus
, NULL
);
76 CopyMem (SnpModeData
, Snp
->Mode
, sizeof (*SnpModeData
));
79 if (!Instance
->Configured
) {
80 Status
= EFI_NOT_STARTED
;
85 gBS
->RestoreTPL (OldTpl
);
91 Sets or clears the operational parameters for the MNP child driver.
93 The Configure() function is used to set, change, or reset the operational
94 parameters for the MNP child driver instance. Until the operational parameters
95 have been set, no network traffic can be sent or received by this MNP child
96 driver instance. Once the operational parameters have been reset, no more
97 traffic can be sent or received until the operational parameters have been set
99 Each MNP child driver instance can be started and stopped independently of
100 each other by setting or resetting their receive filter settings with the
101 Configure() function.
102 After any successful call to Configure(), the MNP child driver instance is
103 started. The internal periodic timer (if supported) is enabled. Data can be
104 transmitted and may be received if the receive filters have also been enabled.
105 Note: If multiple MNP child driver instances will receive the same packet
106 because of overlapping receive filter settings, then the first MNP child
107 driver instance will receive the original packet and additional instances will
108 receive copies of the original packet.
109 Note: Warning: Receive filter settings that overlap will consume extra
110 processor and/or DMA resources and degrade system and network performance.
112 @param[in] This Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.
113 @param[in] MnpConfigData Pointer to configuration data that will be assigned
114 to the MNP child driver instance. If NULL, the MNP
115 child driver instance is reset to startup defaults
116 and all pending transmit and receive requests are
117 flushed. Type EFI_MANAGED_NETWORK_CONFIG_DATA is
118 defined in EFI_MANAGED_NETWORK_PROTOCOL.GetModeData().
120 @retval EFI_SUCCESS The operation completed successfully.
121 @retval EFI_INVALID_PARAMETER One or more of the following conditions is
124 * MnpConfigData.ProtocolTypeFilter is not
126 The operational data for the MNP child driver
127 instance is unchanged.
128 @retval EFI_OUT_OF_RESOURCES Required system resources (usually memory)
129 could not be allocated.
130 The MNP child driver instance has been reset to
132 @retval EFI_UNSUPPORTED The requested feature is unsupported in
133 this [MNP] implementation. The operational data
134 for the MNP child driver instance is unchanged.
135 @retval EFI_DEVICE_ERROR An unexpected network or system error
136 occurred. The MNP child driver instance has
137 been reset to startup defaults.
138 @retval Others The MNP child driver instance has been reset to
145 IN EFI_MANAGED_NETWORK_PROTOCOL
*This
,
146 IN EFI_MANAGED_NETWORK_CONFIG_DATA
*MnpConfigData OPTIONAL
149 MNP_INSTANCE_DATA
*Instance
;
153 if ((This
== NULL
) ||
154 ((MnpConfigData
!= NULL
) &&
155 (MnpConfigData
->ProtocolTypeFilter
> 0) &&
156 (MnpConfigData
->ProtocolTypeFilter
<= 1500))
159 return EFI_INVALID_PARAMETER
;
162 Instance
= MNP_INSTANCE_DATA_FROM_THIS (This
);
164 OldTpl
= gBS
->RaiseTPL (TPL_CALLBACK
);
166 if ((MnpConfigData
== NULL
) && (!Instance
->Configured
)) {
168 // If the instance is not configured and a reset is requested, just return.
170 Status
= EFI_SUCCESS
;
175 // Configure the instance.
177 Status
= MnpConfigureInstance (Instance
, MnpConfigData
);
180 gBS
->RestoreTPL (OldTpl
);
186 Translates an IP multicast address to a hardware (MAC) multicast address. This
187 function may be unsupported in some MNP implementations.
189 The McastIpToMac() function translates an IP multicast address to a hardware
190 (MAC) multicast address. This function may be implemented by calling the
191 underlying EFI_SIMPLE_NETWORK. MCastIpToMac() function, which may also be
192 unsupported in some MNP implementations.
194 @param[in] This Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.
195 @param[in] Ipv6Flag Set to TRUE to if IpAddress is an IPv6 multicast address.
196 Set to FALSE if IpAddress is an IPv4 multicast address.
197 @param[in] IpAddress Pointer to the multicast IP address (in network byte
199 @param[out] MacAddress Pointer to the resulting multicast MAC address.
201 @retval EFI_SUCCESS The operation completed successfully.
202 @retval EFI_INVALID_PARAMETER One of the following conditions is TRUE:
205 * IpAddress is not a valid multicast IP
207 * MacAddress is NULL.
208 @retval EFI_NOT_STARTED This MNP child driver instance has not been
210 @retval EFI_UNSUPPORTED The requested feature is unsupported in this
212 @retval EFI_DEVICE_ERROR An unexpected network or system error occurred.
213 @retval Others The address could not be converted.
218 IN EFI_MANAGED_NETWORK_PROTOCOL
*This
,
220 IN EFI_IP_ADDRESS
*IpAddress
,
221 OUT EFI_MAC_ADDRESS
*MacAddress
225 MNP_INSTANCE_DATA
*Instance
;
226 EFI_SIMPLE_NETWORK_PROTOCOL
*Snp
;
228 EFI_IPv6_ADDRESS
*Ip6Address
;
230 if ((This
== NULL
) || (IpAddress
== NULL
) || (MacAddress
== NULL
)) {
231 return EFI_INVALID_PARAMETER
;
234 Ip6Address
= &IpAddress
->v6
;
236 if ((Ipv6Flag
&& !IP6_IS_MULTICAST (Ip6Address
)) ||
237 (!Ipv6Flag
&& !IP4_IS_MULTICAST (EFI_NTOHL (*IpAddress
)))
241 // The IP address passed in is not a multicast address.
243 return EFI_INVALID_PARAMETER
;
246 Instance
= MNP_INSTANCE_DATA_FROM_THIS (This
);
248 OldTpl
= gBS
->RaiseTPL (TPL_CALLBACK
);
250 if (!Instance
->Configured
) {
251 Status
= EFI_NOT_STARTED
;
255 Snp
= Instance
->MnpServiceData
->MnpDeviceData
->Snp
;
256 ASSERT (Snp
!= NULL
);
258 ZeroMem (MacAddress
, sizeof (EFI_MAC_ADDRESS
));
260 if (Snp
->Mode
->IfType
== NET_IFTYPE_ETHERNET
) {
263 // Translate the IPv4 address into a multicast MAC address if the NIC is an
264 // ethernet NIC according to RFC1112..
266 MacAddress
->Addr
[0] = 0x01;
267 MacAddress
->Addr
[1] = 0x00;
268 MacAddress
->Addr
[2] = 0x5E;
269 MacAddress
->Addr
[3] = (UINT8
)(IpAddress
->v4
.Addr
[1] & 0x7F);
270 MacAddress
->Addr
[4] = IpAddress
->v4
.Addr
[2];
271 MacAddress
->Addr
[5] = IpAddress
->v4
.Addr
[3];
274 // Translate the IPv6 address into a multicast MAC address if the NIC is an
275 // ethernet NIC according to RFC2464.
278 MacAddress
->Addr
[0] = 0x33;
279 MacAddress
->Addr
[1] = 0x33;
280 MacAddress
->Addr
[2] = Ip6Address
->Addr
[12];
281 MacAddress
->Addr
[3] = Ip6Address
->Addr
[13];
282 MacAddress
->Addr
[4] = Ip6Address
->Addr
[14];
283 MacAddress
->Addr
[5] = Ip6Address
->Addr
[15];
286 Status
= EFI_SUCCESS
;
289 // Invoke Snp to translate the multicast IP address.
291 Status
= Snp
->MCastIpToMac (
300 gBS
->RestoreTPL (OldTpl
);
306 Enables and disables receive filters for multicast address. This function may
307 be unsupported in some MNP implementations.
309 The Groups() function only adds and removes multicast MAC addresses from the
310 filter list. The MNP driver does not transmit or process Internet Group
311 Management Protocol (IGMP) packets. If JoinFlag is FALSE and MacAddress is
312 NULL, then all joined groups are left.
314 @param[in] This Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.
315 @param[in] JoinFlag Set to TRUE to join this multicast group.
316 Set to FALSE to leave this multicast group.
317 @param[in] MacAddress Pointer to the multicast MAC group (address) to join or
320 @retval EFI_SUCCESS The requested operation completed successfully.
321 @retval EFI_INVALID_PARAMETER One or more of the following conditions is TRUE:
323 * JoinFlag is TRUE and MacAddress is NULL.
324 * MacAddress is not a valid multicast MAC
326 * The MNP multicast group settings are
328 @retval EFI_NOT_STARTED This MNP child driver instance has not been
330 @retval EFI_ALREADY_STARTED The supplied multicast group is already joined.
331 @retval EFI_NOT_FOUND The supplied multicast group is not joined.
332 @retval EFI_DEVICE_ERROR An unexpected network or system error occurred.
333 The MNP child driver instance has been reset to
335 @retval EFI_UNSUPPORTED The requested feature is unsupported in this MNP
337 @retval Others The requested operation could not be completed.
338 The MNP multicast group settings are unchanged.
344 IN EFI_MANAGED_NETWORK_PROTOCOL
*This
,
346 IN EFI_MAC_ADDRESS
*MacAddress OPTIONAL
349 MNP_INSTANCE_DATA
*Instance
;
350 EFI_SIMPLE_NETWORK_MODE
*SnpMode
;
351 MNP_GROUP_CONTROL_BLOCK
*GroupCtrlBlk
;
352 MNP_GROUP_ADDRESS
*GroupAddress
;
353 LIST_ENTRY
*ListEntry
;
354 BOOLEAN AddressExist
;
358 if ((This
== NULL
) || (JoinFlag
&& (MacAddress
== NULL
))) {
360 // This is NULL, or it's a join operation but MacAddress is NULL.
362 return EFI_INVALID_PARAMETER
;
365 Instance
= MNP_INSTANCE_DATA_FROM_THIS (This
);
366 SnpMode
= Instance
->MnpServiceData
->MnpDeviceData
->Snp
->Mode
;
368 OldTpl
= gBS
->RaiseTPL (TPL_CALLBACK
);
370 if (!Instance
->Configured
) {
371 Status
= EFI_NOT_STARTED
;
375 if ((!Instance
->ConfigData
.EnableMulticastReceive
) ||
376 ((MacAddress
!= NULL
) && !NET_MAC_IS_MULTICAST (MacAddress
, &SnpMode
->BroadcastAddress
, SnpMode
->HwAddressSize
)))
379 // The instance isn't configured to do multicast receive. OR
380 // the passed in MacAddress is not a multicast mac address.
382 Status
= EFI_INVALID_PARAMETER
;
386 Status
= EFI_SUCCESS
;
387 AddressExist
= FALSE
;
390 if (MacAddress
!= NULL
) {
392 // Search the instance's GroupCtrlBlkList to find the specific address.
394 NET_LIST_FOR_EACH (ListEntry
, &Instance
->GroupCtrlBlkList
) {
395 GroupCtrlBlk
= NET_LIST_USER_STRUCT (
397 MNP_GROUP_CONTROL_BLOCK
,
400 GroupAddress
= GroupCtrlBlk
->GroupAddress
;
401 if (0 == CompareMem (
403 &GroupAddress
->Address
,
404 SnpMode
->HwAddressSize
408 // There is already the same multicast mac address configured.
415 if (JoinFlag
&& AddressExist
) {
417 // The multicast mac address to join already exists.
419 Status
= EFI_ALREADY_STARTED
;
422 if (!JoinFlag
&& !AddressExist
) {
424 // The multicast mac address to leave doesn't exist in this instance.
426 Status
= EFI_NOT_FOUND
;
429 if (EFI_ERROR (Status
)) {
432 } else if (IsListEmpty (&Instance
->GroupCtrlBlkList
)) {
434 // The MacAddress is NULL and there is no configured multicast mac address,
441 // OK, it is time to take action.
443 Status
= MnpGroupOp (Instance
, JoinFlag
, MacAddress
, GroupCtrlBlk
);
446 gBS
->RestoreTPL (OldTpl
);
452 Places asynchronous outgoing data packets into the transmit queue.
454 The Transmit() function places a completion token into the transmit packet
455 queue. This function is always asynchronous.
456 The caller must fill in the Token.Event and Token.TxData fields in the
457 completion token, and these fields cannot be NULL. When the transmit operation
458 completes, the MNP updates the Token.Status field and the Token.Event is
460 Note: There may be a performance penalty if the packet needs to be
461 defragmented before it can be transmitted by the network device. Systems in
462 which performance is critical should review the requirements and features of
463 the underlying communications device and drivers.
466 @param[in] This Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.
467 @param[in] Token Pointer to a token associated with the transmit data
468 descriptor. Type EFI_MANAGED_NETWORK_COMPLETION_TOKEN
469 is defined in "Related Definitions" below.
471 @retval EFI_SUCCESS The transmit completion token was cached.
472 @retval EFI_NOT_STARTED This MNP child driver instance has not been
474 @retval EFI_INVALID_PARAMETER One or more of the following conditions is
478 * Token.Event is NULL.
479 * Token.TxData is NULL.
480 * Token.TxData.DestinationAddress is not
481 NULL and Token.TxData.HeaderLength is zero.
482 * Token.TxData.FragmentCount is zero.
483 * (Token.TxData.HeaderLength +
484 Token.TxData.DataLength) is not equal to the
486 Token.TxData.FragmentTable[].FragmentLength
489 Token.TxData.FragmentTable[].FragmentLength
492 Token.TxData.FragmentTable[].FragmentBufferfields
494 * Token.TxData.DataLength is greater than MTU.
495 @retval EFI_ACCESS_DENIED The transmit completion token is already in the
497 @retval EFI_OUT_OF_RESOURCES The transmit data could not be queued due to a
498 lack of system resources (usually memory).
499 @retval EFI_DEVICE_ERROR An unexpected system or network error occurred.
500 The MNP child driver instance has been reset to
502 @retval EFI_NOT_READY The transmit request could not be queued because
503 the transmit queue is full.
509 IN EFI_MANAGED_NETWORK_PROTOCOL
*This
,
510 IN EFI_MANAGED_NETWORK_COMPLETION_TOKEN
*Token
514 MNP_INSTANCE_DATA
*Instance
;
515 MNP_SERVICE_DATA
*MnpServiceData
;
520 if ((This
== NULL
) || (Token
== NULL
)) {
521 return EFI_INVALID_PARAMETER
;
524 Instance
= MNP_INSTANCE_DATA_FROM_THIS (This
);
526 OldTpl
= gBS
->RaiseTPL (TPL_CALLBACK
);
528 if (!Instance
->Configured
) {
529 Status
= EFI_NOT_STARTED
;
533 if (!MnpIsValidTxToken (Instance
, Token
)) {
535 // The Token is invalid.
537 Status
= EFI_INVALID_PARAMETER
;
541 MnpServiceData
= Instance
->MnpServiceData
;
542 NET_CHECK_SIGNATURE (MnpServiceData
, MNP_SERVICE_DATA_SIGNATURE
);
545 // Build the tx packet
547 Status
= MnpBuildTxPacket (MnpServiceData
, Token
->Packet
.TxData
, &PktBuf
, &PktLen
);
548 if (EFI_ERROR (Status
)) {
553 // OK, send the packet synchronously.
555 Status
= MnpSyncSendPacket (MnpServiceData
, PktBuf
, PktLen
, Token
);
558 gBS
->RestoreTPL (OldTpl
);
564 Places an asynchronous receiving request into the receiving queue.
566 The Receive() function places a completion token into the receive packet
567 queue. This function is always asynchronous.
568 The caller must fill in the Token.Event field in the completion token, and
569 this field cannot be NULL. When the receive operation completes, the MNP
570 updates the Token.Status and Token.RxData fields and the Token.Event is
573 @param[in] This Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.
574 @param[in] Token Pointer to a token associated with the receive
575 data descriptor. Type
576 EFI_MANAGED_NETWORK_COMPLETION_TOKEN is defined in
577 EFI_MANAGED_NETWORK_PROTOCOL.Transmit().
579 @retval EFI_SUCCESS The receive completion token was cached.
580 @retval EFI_NOT_STARTED This MNP child driver instance has not been
582 @retval EFI_INVALID_PARAMETER One or more of the following conditions is
586 * Token.Event is NULL
587 @retval EFI_OUT_OF_RESOURCES The transmit data could not be queued due to a
588 lack of system resources (usually memory).
589 @retval EFI_DEVICE_ERROR An unexpected system or network error occurred.
590 The MNP child driver instance has been reset to
592 @retval EFI_ACCESS_DENIED The receive completion token was already in the
594 @retval EFI_NOT_READY The receive request could not be queued because
595 the receive queue is full.
601 IN EFI_MANAGED_NETWORK_PROTOCOL
*This
,
602 IN EFI_MANAGED_NETWORK_COMPLETION_TOKEN
*Token
606 MNP_INSTANCE_DATA
*Instance
;
609 if ((This
== NULL
) || (Token
== NULL
) || (Token
->Event
== NULL
)) {
610 return EFI_INVALID_PARAMETER
;
613 Instance
= MNP_INSTANCE_DATA_FROM_THIS (This
);
615 OldTpl
= gBS
->RaiseTPL (TPL_CALLBACK
);
617 if (!Instance
->Configured
) {
618 Status
= EFI_NOT_STARTED
;
623 // Check whether this token(event) is already in the rx token queue.
625 Status
= NetMapIterate (&Instance
->RxTokenMap
, MnpTokenExist
, (VOID
*)Token
);
626 if (EFI_ERROR (Status
)) {
631 // Insert the Token into the RxTokenMap.
633 Status
= NetMapInsertTail (&Instance
->RxTokenMap
, (VOID
*)Token
, NULL
);
634 if (!EFI_ERROR (Status
)) {
636 // Try to deliver any buffered packets.
638 Status
= MnpInstanceDeliverPacket (Instance
);
641 // Dispatch the DPC queued by the NotifyFunction of Token->Event.
647 gBS
->RestoreTPL (OldTpl
);
653 Aborts an asynchronous transmit or receive request.
655 The Cancel() function is used to abort a pending transmit or receive request.
656 If the token is in the transmit or receive request queues, after calling this
657 function, Token.Status will be set to EFI_ABORTED and then Token.Event will be
658 signaled. If the token is not in one of the queues, which usually means that
659 the asynchronous operation has completed, this function will not signal the
660 token and EFI_NOT_FOUND is returned.
662 @param[in] This Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.
663 @param[in] Token Pointer to a token that has been issued by
664 EFI_MANAGED_NETWORK_PROTOCOL.Transmit() or
665 EFI_MANAGED_NETWORK_PROTOCOL.Receive(). If NULL, all
666 pending tokens are aborted.
668 @retval EFI_SUCCESS The asynchronous I/O request was aborted and
669 Token.Event was signaled. When Token is NULL,
670 all pending requests were aborted and their
671 events were signaled.
672 @retval EFI_NOT_STARTED This MNP child driver instance has not been
674 @retval EFI_INVALID_PARAMETER This is NULL.
675 @retval EFI_NOT_FOUND When Token is not NULL, the asynchronous I/O
676 request was not found in the transmit or
677 receive queue. It has either completed or was
678 not issued by Transmit() and Receive().
684 IN EFI_MANAGED_NETWORK_PROTOCOL
*This
,
685 IN EFI_MANAGED_NETWORK_COMPLETION_TOKEN
*Token OPTIONAL
689 MNP_INSTANCE_DATA
*Instance
;
693 return EFI_INVALID_PARAMETER
;
696 Instance
= MNP_INSTANCE_DATA_FROM_THIS (This
);
698 OldTpl
= gBS
->RaiseTPL (TPL_CALLBACK
);
700 if (!Instance
->Configured
) {
701 Status
= EFI_NOT_STARTED
;
706 // Iterate the RxTokenMap to cancel the specified Token.
708 Status
= NetMapIterate (&Instance
->RxTokenMap
, MnpCancelTokens
, (VOID
*)Token
);
710 Status
= (Status
== EFI_ABORTED
) ? EFI_SUCCESS
: EFI_NOT_FOUND
;
714 // Dispatch the DPC queued by the NotifyFunction of the canceled token's events.
719 gBS
->RestoreTPL (OldTpl
);
725 Polls for incoming data packets and processes outgoing data packets.
727 The Poll() function can be used by network drivers and applications to
728 increase the rate that data packets are moved between the communications
729 device and the transmit and receive queues.
730 Normally, a periodic timer event internally calls the Poll() function. But, in
731 some systems, the periodic timer event may not call Poll() fast enough to
732 transmit and/or receive all data packets without missing packets. Drivers and
733 applications that are experiencing packet loss should try calling the Poll()
736 @param[in] This Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.
738 @retval EFI_SUCCESS Incoming or outgoing data was processed.
739 @retval EFI_NOT_STARTED This MNP child driver instance has not been
741 @retval EFI_DEVICE_ERROR An unexpected system or network error occurred. The
742 MNP child driver instance has been reset to startup
744 @retval EFI_NOT_READY No incoming or outgoing data was processed. Consider
745 increasing the polling rate.
746 @retval EFI_TIMEOUT Data was dropped out of the transmit and/or receive
747 queue. Consider increasing the polling rate.
753 IN EFI_MANAGED_NETWORK_PROTOCOL
*This
757 MNP_INSTANCE_DATA
*Instance
;
761 return EFI_INVALID_PARAMETER
;
764 Instance
= MNP_INSTANCE_DATA_FROM_THIS (This
);
766 OldTpl
= gBS
->RaiseTPL (TPL_CALLBACK
);
768 if (!Instance
->Configured
) {
769 Status
= EFI_NOT_STARTED
;
774 // Try to receive packets.
776 Status
= MnpReceivePacket (Instance
->MnpServiceData
->MnpDeviceData
);
779 // Dispatch the DPC queued by the NotifyFunction of rx token's events.
784 gBS
->RestoreTPL (OldTpl
);