Lines Matching refs:Instance
280 Cancel DNS4 tokens from the DNS4 instance.
282 @param[in] Instance Pointer to the DNS instance context data.
284 tokens in this instance will be cancelled.
293 IN DNS_INSTANCE *Instance,
303 Status = GetDns4TokenEntry (&Instance->Dns4TxTokens, Token, &TokenEntry);
314 Status = NetMapIterate (&Instance->Dns4TxTokens, Dns4CancelTokens, TokenEntry);
321 if (NetMapIsEmpty (&Instance->Dns4TxTokens)) {
322 Instance->UdpIo->Protocol.Udp4->Cancel (Instance->UdpIo->Protocol.Udp4, &Instance->UdpIo->RecvRequest->Token.Udp4);
327 ASSERT ((TokenEntry != NULL) || (0 == NetMapGetCount (&Instance->Dns4TxTokens)));
329 if (NetMapIsEmpty (&Instance->Dns4TxTokens)) {
330 Instance->UdpIo->Protocol.Udp4->Cancel (Instance->UdpIo->Protocol.Udp4, &Instance->UdpIo->RecvRequest->Token.Udp4);
337 Cancel DNS6 tokens from the DNS6 instance.
339 @param[in] Instance Pointer to the DNS instance context data.
341 tokens in this instance will be cancelled.
350 IN DNS_INSTANCE *Instance,
360 Status = GetDns6TokenEntry (&Instance->Dns6TxTokens, Token, &TokenEntry);
371 Status = NetMapIterate (&Instance->Dns6TxTokens, Dns6CancelTokens, TokenEntry);
378 if (NetMapIsEmpty (&Instance->Dns6TxTokens)) {
379 Instance->UdpIo->Protocol.Udp6->Cancel (Instance->UdpIo->Protocol.Udp6, &Instance->UdpIo->RecvRequest->Token.Udp6);
384 ASSERT ((TokenEntry != NULL) || (0 == NetMapGetCount (&Instance->Dns6TxTokens)));
386 if (NetMapIsEmpty (&Instance->Dns6TxTokens)) {
387 Instance->UdpIo->Protocol.Udp6->Cancel (Instance->UdpIo->Protocol.Udp6, &Instance->UdpIo->RecvRequest->Token.Udp6);
534 @param Instance The DNS instance
544 IN DNS_INSTANCE *Instance,
554 ASSERT (Instance->Dns4CfgData.UseDefaultSetting);
556 Service = Instance->Service;
583 Configure the opened Udp6 instance until the corresponding Ip6 instance
586 @param Instance The DNS instance
590 @retval TRUE Configure the Udp6 instance successfully.
596 IN DNS_INSTANCE *Instance,
606 Service = Instance->Service;
635 @param Instance The DNS session
636 @param UdpIo The UDP_IO instance
644 IN DNS_INSTANCE *Instance,
652 Config = &Instance->Dns4CfgData;
669 CopyMem (&UdpConfig.RemoteAddress, &Instance->SessionDnsServer.v4, sizeof (EFI_IPv4_ADDRESS));
673 if ((Status == EFI_NO_MAPPING) && Dns4GetMapping (Instance, UdpIo, &UdpConfig)) {
683 @param Instance The DNS session
684 @param UdpIo The UDP_IO instance
692 IN DNS_INSTANCE *Instance,
700 Config = &Instance->Dns6CfgData;
712 CopyMem (&UdpConfig.RemoteAddress, &Instance->SessionDnsServer.v6, sizeof (EFI_IPv6_ADDRESS));
716 if ((Status == EFI_NO_MAPPING) && Dns6GetMapping (Instance, UdpIo, &UdpConfig)) {
1129 @param Instance The DNS instance
1139 IN OUT DNS_INSTANCE *Instance,
1228 if (Instance->Service->IpVersion == IP_VERSION_4) {
1229 if (!IsValidDnsResponse (&Instance->Dns4TxTokens, DnsHeader->Identification, QuerySection->Type, &Item)) {
1237 if (!IsValidDnsResponse (&Instance->Dns6TxTokens, DnsHeader->Identification, QuerySection->Type, &Item)) {
1265 if (Instance->Service->IpVersion == IP_VERSION_4) {
1362 if (Instance->Service->IpVersion == IP_VERSION_4 && Dns4TokenEntry->GeneralLookUp) {
1387 } else if (Instance->Service->IpVersion == IP_VERSION_6 && Dns6TokenEntry->GeneralLookUp) {
1533 if (Instance->Service->IpVersion == IP_VERSION_4) {
1564 if (Instance->Service->IpVersion == IP_VERSION_4) {
1566 Dns4RemoveTokenEntry (&Instance->Dns4TxTokens, Dns4TokenEntry);
1574 Dns6RemoveTokenEntry (&Instance->Dns6TxTokens, Dns6TokenEntry);
1632 DNS_INSTANCE *Instance;
1638 Instance = (DNS_INSTANCE *) Context;
1639 NET_CHECK_SIGNATURE (Instance, DNS_INSTANCE_SIGNATURE);
1656 ParseDnsResponse (Instance, RcvString, &Completed);
1665 UdpIoRecvDatagram (InstanceInstance, 0);
1687 DNS_INSTANCE *Instance;
1696 Instance = (DNS_INSTANCE *) Context;
1697 NET_CHECK_SIGNATURE (Instance, DNS_INSTANCE_SIGNATURE);
1699 if (Instance->Service->IpVersion == IP_VERSION_4) {
1700 NET_LIST_FOR_EACH (Entry, &Instance->Dns4TxTokens.Used) {
1709 NET_LIST_FOR_EACH (Entry, &Instance->Dns6TxTokens.Used) {
1725 @param Instance The DNS instance
1734 IN DNS_INSTANCE *Instance,
1743 if (Instance->UdpIo->RecvRequest == NULL) {
1744 Status = UdpIoRecvDatagram (Instance->UdpIo, DnsOnPacketReceived, Instance, 0);
1755 Status = UdpIoSendDatagram (Instance->UdpIo, Packet, NULL, NULL, DnsOnPacketSent, Instance);
1763 @param Instance The DNS instance
1775 IN DNS_INSTANCE *Instance,
1844 *((UINTN *) &((*Packet)->ProtoData[0])) = (UINTN) (Instance->UdpIo);
1852 @param Instance The DNS instance
1861 IN DNS_INSTANCE *Instance,
1880 Instance->UdpIo,
1885 Instance
1899 @param Context The DNS service instance
1914 DNS_INSTANCE *Instance;
1928 // Iterate through all the children of the DNS service instance. Time
1932 Instance = NET_LIST_USER_STRUCT (Entry, DNS_INSTANCE, Link);
1934 EntryNetMap = Instance->Dns4TxTokens.Used.ForwardLink;
1935 while (EntryNetMap != &Instance->Dns4TxTokens.Used) {
1947 if (++Dns4TokenEntry->Token->RetryCount < Instance->MaxRetry) {
1948 DnsRetransmit (Instance, (NET_BUF *)ItemNetMap->Value);
1954 Dns4RemoveTokenEntry (&Instance->Dns4TxTokens, Dns4TokenEntry);
1966 EntryNetMap = Instance->Dns4TxTokens.Used.ForwardLink;
1972 // Iterate through all the children of the DNS service instance. Time
1976 Instance = NET_LIST_USER_STRUCT (Entry, DNS_INSTANCE, Link);
1978 EntryNetMap = Instance->Dns6TxTokens.Used.ForwardLink;
1979 while (EntryNetMap != &Instance->Dns6TxTokens.Used) {
1991 if (++Dns6TokenEntry->Token->RetryCount < Instance->MaxRetry) {
1992 DnsRetransmit (Instance, (NET_BUF *) ItemNetMap->Value);
1998 Dns6RemoveTokenEntry (&Instance->Dns6TxTokens, Dns6TokenEntry);
2010 EntryNetMap = Instance->Dns6TxTokens.Used.ForwardLink;