Lines Matching full:name

12  *  3. Neither the name of the copyright holder nor the
309 SuccessOrExit(Name::ParseName(*mMessage, offset)); in ParseQuestions()
341 SuccessOrExit(Name::CompareName(*mMessage, offset, *mMessage, sizeof(Header))); in ParseQuestions()
374 // Read the name from `aRequest.mMessage` and append it as is to in AddQuestionsFrom()
375 // the response message. This ensures all name formats, including in AddQuestionsFrom()
379 SuccessOrExit(Name(*aRequest.mMessage, sizeof(Header)).AppendTo(*mMessage)); in AddQuestionsFrom()
381 // Check the name to include the correct domain name and determine in AddQuestionsFrom()
382 // the domain name offset (for DNS name compression). in AddQuestionsFrom()
397 IgnoreError(Name::ParseName(*aRequest.mMessage, offset)); in AddQuestionsFrom()
417 // Parses and validates the query name and updates in ParseQueryName()
418 // the name compression offsets. in ParseQueryName()
421 Name::Buffer name; in ParseQueryName() local
425 SuccessOrExit(error = Name::ReadName(*mMessage, offset, name)); in ParseQueryName()
431 // determine that the query name is a sub-type service. in ParseQueryName()
447 // Read the query name labels one by one to check if the name is in ParseQueryName()
449 // default domain name and determine its offset in ParseQueryName()
455 Name::LabelBuffer label; in ParseQueryName()
459 SuccessOrExit(error = Name::ReadLabel(*mMessage, offset, label, labelLength)); in ParseQueryName()
468 if (Name::CompareName(*mMessage, comapreOffset, kDefaultDomainName) == kErrorNone) in ParseQueryName()
481 void Server::Response::ReadQueryName(Name::Buffer &aName) const { Server::ReadQueryName(*mMessage, … in ReadQueryName()
485 Error Server::Response::AppendQueryName(void) { return Name::AppendPointerLabel(sizeof(Header), *mM… in AppendQueryName()
502 SuccessOrExit(error = Name::AppendLabel(aInstanceLabel, *mMessage)); in AppendPtrRecord()
503 SuccessOrExit(error = Name::AppendPointerLabel(mOffsets.mServiceName, *mMessage)); in AppendPtrRecord()
538 Name::Buffer hostLabels; in AppendSrvRecord()
540 SuccessOrExit(error = Name::ExtractLabels(aHostName, kDefaultDomainName, hostLabels)); in AppendSrvRecord()
548 SuccessOrExit(error = Name::AppendPointerLabel(mOffsets.mInstanceName, *mMessage)); in AppendSrvRecord()
554 SuccessOrExit(error = Name::AppendMultipleLabels(hostLabels, *mMessage)); in AppendSrvRecord()
555 SuccessOrExit(error = Name::AppendPointerLabel(mOffsets.mDomainName, *mMessage)); in AppendSrvRecord()
628 SuccessOrExit(error = Name::AppendPointerLabel(mOffsets.mHostName, *mMessage)); in AppendAaaaRecord()
648 SuccessOrExit(error = Name::AppendPointerLabel(mOffsets.mHostName, *mMessage)); in AppendARecord()
685 SuccessOrExit(error = Name::AppendPointerLabel(mOffsets.mInstanceName, *mMessage)); in AppendTxtRecord()
723 Name::Buffer name; in Log() local
725 ReadQueryName(name); in Log()
726 LogInfo("%s query for '%s'", QueryTypeToString(mType), name); in Log()
864 // Check if the query name matches the base service name or any in QueryNameMatchesService()
888 Name::Buffer name; in ShouldForwardToUpstream() local
895 SuccessOrExit(Name::ReadName(*aRequest.mMessage, readOffset, name)); in ShouldForwardToUpstream()
898 VerifyOrExit(!Name::IsSubDomainOf(name, kDefaultDomainName)); in ShouldForwardToUpstream()
902 VerifyOrExit(!Name::IsSameDomain(name, blockedDomain)); in ShouldForwardToUpstream()
1015 Name::Buffer name; in ResolveByProxy() local
1017 ReadQueryName(*query, name); in ResolveByProxy()
1018 mQuerySubscribe.Invoke(name); in ResolveByProxy()
1031 void Server::ReadQueryName(const Message &aQuery, Name::Buffer &aName) in ReadQueryName()
1035 IgnoreError(Name::ReadName(aQuery, offset, aName)); in ReadQueryName()
1042 return (Name::CompareName(aQuery, offset, aName) == kErrorNone); in QueryNameMatches()
1045 void Server::ReadQueryInstanceName(const ProxyQuery &aQuery, const ProxyQueryInfo &aInfo, Name::Buf… in ReadQueryInstanceName()
1049 IgnoreError(Name::ReadName(aQuery, offset, aName, sizeof(aName))); in ReadQueryInstanceName()
1054 Name::LabelBuffer &aInstanceLabel, in ReadQueryInstanceName()
1055 Name::Buffer &aServiceType) in ReadQueryInstanceName()
1058 // name stripped. in ReadQueryInstanceName()
1063 IgnoreError(Dns::Name::ReadLabel(aQuery, offset, aInstanceLabel, labelLength)); in ReadQueryInstanceName()
1064 IgnoreError(Dns::Name::ReadName(aQuery, offset, aServiceType)); in ReadQueryInstanceName()
1072 return (Name::CompareName(aQuery, offset, aName) == kErrorNone); in QueryInstanceNameMatches()
1075 void Server::ReadQueryHostName(const ProxyQuery &aQuery, const ProxyQueryInfo &aInfo, Name::Buffer … in ReadQueryHostName()
1079 IgnoreError(Name::ReadName(aQuery, offset, aName, sizeof(aName))); in ReadQueryHostName()
1086 return (Name::CompareName(aQuery, offset, aName) == kErrorNone); in QueryHostNameMatches()
1089 Error Server::StripDomainName(Name::Buffer &aName) in StripDomainName()
1091 // In-place removes the domain name from `aName`. in StripDomainName()
1093 return Name::StripName(aName, kDefaultDomainName); in StripDomainName()
1096 Error Server::StripDomainName(const char *aFullName, Name::Buffer &aLabels) in StripDomainName()
1098 // Remove the domain name from `aFullName` and copies in StripDomainName()
1101 return Name::ExtractLabels(aFullName, kDefaultDomainName, aLabels, sizeof(aLabels)); in StripDomainName()
1104 void Server::ConstructFullName(const char *aLabels, Name::Buffer &aFullName) in ConstructFullName()
1106 // Construct a full name by appending the default domain name in ConstructFullName()
1114 void Server::ConstructFullInstanceName(const char *aInstanceLabel, const char *aServiceType, Name::… in ConstructFullInstanceName()
1123 Name::Buffer &aFullName) in ConstructFullServiceSubTypeName()
1130 Error Server::Response::ExtractServiceInstanceLabel(const char *aInstanceName, Name::LabelBuffer &a… in ExtractServiceInstanceLabel()
1133 Name::Buffer serviceName; in ExtractServiceInstanceLabel()
1136 IgnoreError(Name::ReadName(*mMessage, offset, serviceName)); in ExtractServiceInstanceLabel()
1138 return Name::ExtractLabels(aInstanceName, serviceName, aLabel); in ExtractServiceInstanceLabel()
1152 Name::Buffer name; in RemoveQueryAndPrepareResponse() local
1154 ReadQueryName(aQuery, name); in RemoveQueryAndPrepareResponse()
1155 mQueryUnsubscribe.Invoke(name); in RemoveQueryAndPrepareResponse()
1179 Name::LabelBuffer instanceLabel; in Answer()
1244 OT_ASSERT(StringEndsWith(aServiceFullName, Name::kLabelSeparatorChar)); in HandleDiscoveredServiceInstance()
1245 OT_ASSERT(StringEndsWith(aInstanceInfo.mFullName, Name::kLabelSeparatorChar)); in HandleDiscoveredServiceInstance()
1246 OT_ASSERT(StringEndsWith(aInstanceInfo.mHostName, Name::kLabelSeparatorChar)); in HandleDiscoveredServiceInstance()
1287 OT_ASSERT(StringEndsWith(aHostFullName, Name::kLabelSeparatorChar)); in HandleDiscoveredHost()
1322 Server::DnsQueryType Server::GetQueryTypeAndName(const otDnssdQuery *aQuery, Dns::Name::Buffer &aNa… in GetQueryTypeAndName()
1539 Name::Buffer name; in Perform() local
1544 // name associated with the action. Then we check if another in Perform()
1545 // query has an active browser/resolver for the same name. This in Perform()
1553 ReadNameFor(aAction, aQuery, aInfo, name); in Perform()
1555 shouldStart = !HasActive(aAction, name); in Perform()
1561 UpdateProxy(kStart, aAction, aQuery, aInfo, name); in Perform()
1570 Name::Buffer &aName) const in ReadNameFor()
1572 // Read the name corresponding to `aAction` from `aQuery`. in ReadNameFor()
1599 Name::Buffer name; in CancelAction() local
1609 ReadNameFor(action, aQuery, aInfo, name); in CancelAction()
1614 VerifyOrExit(!HasActive(action, name)); in CancelAction()
1615 UpdateProxy(kStop, action, aQuery, aInfo, name); in CancelAction()
1625 Name::Buffer &aName) in UpdateProxy()
1652 void Server::DiscoveryProxy::StartOrStopBrowser(Command aCommand, Name::Buffer &aServiceName) in StartOrStopBrowser()
1666 // Check if the service name is a sub-type with name in StartOrStopBrowser()
1707 Name::LabelBuffer instanceLabel; in StartOrStopSrvResolver()
1708 Name::Buffer serviceType; in StartOrStopSrvResolver()
1738 Name::LabelBuffer instanceLabel; in StartOrStopTxtResolver()
1739 Name::Buffer serviceType; in StartOrStopTxtResolver()
1762 void Server::DiscoveryProxy::StartOrStopIp6Resolver(Command aCommand, Name::Buffer &aHostName) in StartOrStopIp6Resolver()
1764 // Start or stop an IPv6 address resolver for a given host name. in StartOrStopIp6Resolver()
1786 void Server::DiscoveryProxy::StartOrStopIp4Resolver(Command aCommand, Name::Buffer &aHostName) in StartOrStopIp4Resolver()
1788 // Start or stop an IPv4 address resolver for a given host name. in StartOrStopIp4Resolver()
1813 const Name::Buffer &aName) const in QueryMatches()
1816 // its name matches `aName`. in QueryMatches()
1845 bool Server::DiscoveryProxy::HasActive(ProxyAction aAction, const Name::Buffer &aName) const in HasActive()
1875 Name::Buffer serviceName; in HandleBrowseResult()
1903 Name::Buffer instanceName; in HandleSrvResult()
1923 Name::Buffer instanceName; in HandleTxtResult()
1944 Name::Buffer fullHostName; in HandleIp6AddressResult()
1983 Name::Buffer fullHostName; in HandleIp4AddressResult()
2015 const Name::Buffer &aName, in HandleResult()
2182 Name::Buffer fullHostName; in AppendSrvRecord()