Lines Matching refs:domain
29 // -- domain labels have an initial length byte, not a terminating null character
330 #pragma mark - Domain Name Utility Functions
362 { debugf("Malformed domain name (more than 256 characters)"); return(mDNSfalse); }
389 const domainname *d1, *d2, *d3, *d4, *d5; // Top-level domain, second-level domain, etc.
417 // Returns length of a domain name INCLUDING the byte for the final null label
433 // CompressedDomainNameLength returns the length of a domain name INCLUDING the byte
437 // In the case where a parent domain name is provided, and the given name is a child
479 // If unable to construct a legal domain name (i.e. label more than 63 bytes, or total more than 256 bytes)
501 // If unable to construct a legal domain name (i.e. label more than 63 bytes, or total more than 256 bytes)
543 // If unable to construct a legal domain name (i.e. label more than 63 bytes, or total more than 256 bytes)
577 // MakeDomainLabelFromLiteralString makes a single domain label from a single literal C string (with no escaping).
579 // If unable to convert the whole string to a legal domain label (i.e. because length is more than 63 bytes) then
580 // MakeDomainLabelFromLiteralString makes a legal domain label from the first 63 bytes of the string and returns mDNSfalse.
597 // If unable to construct a legal domain name (i.e. label more than 63 bytes, or total more than 256 bytes)
601 name->c[0] = 0; // Make an empty domain name
607 const mDNSu8 * src = label->c; // Domain label we're reading
635 const mDNSu8 *src = name->c; // Domain name we're reading
640 while (*src) // While more characters in the domain name
686 const domainlabel *name, const domainname *type, const domainname *const domain)
729 src = name->c; // Put the service name into the domain name
737 src = type->c; // Put the service type into the domain name
742 "See <http://www.dns-sd.org/ServiceTypes.html>", name->c, type->c, domain->c);
748 if (len < 2 || len >= 0x40 || (len > 16 && !SameDomainName(domain, &localdomain))) return(mDNSNULL);
787 if (!domain->c[0]) { errormsg = "Service domain must be non-empty"; goto fail; }
788 if (SameDomainName(domain, (const domainname*)"\x05" "local" "\x04" "arpa"))
789 { errormsg = "Illegal domain \"local.arpa.\" Use \"local.\" (or empty string)"; goto fail; }
790 dst = AppendDomainName(fqdn, domain);
791 if (!dst) { errormsg = "Service domain too long"; goto fail; }
795 LogMsg("ConstructServiceName: %s: %#s.%##s%##s", errormsg, name->c, type->c, domain->c);
799 // A service name has the form: instance.application-protocol.transport-protocol.domain
801 // set or length limits for the protocol names, and the final domain is allowed to be empty.
805 domainlabel *const name, domainname *const type, domainname *const domain)
832 dst = domain->c; // Extract the service domain
837 { debugf("DeconstructServiceName: Label in service domain too long"); return(mDNSfalse); }
839 { debugf("DeconstructServiceName: Total service domain too long"); return(mDNSfalse); }
939 // in parentheses (rich text) or following two consecutive hyphens (RFC 1034 domain label).
1591 { LogMsg("Malformed domain name %##s (label more than 63 bytes)", name->c); return(mDNSNULL); }
1595 // Suppose our domain name is exactly 256 bytes long, including the final trailing root label.
1599 // six bytes, then exit the loop, write the final terminating root label, and the domain
1603 { LogMsg("Malformed domain name %##s (more than 256 bytes)", name->c); return(mDNSNULL); }
1828 // (actualLength can be less than rdlength when domain name compression is used)
1987 AppendDomainName (&hinfo.namestorage, &authInfo->domain);
2051 { debugf("skipDomainName: Malformed domain name (overruns packet end)"); return(mDNSNULL); }
2053 { debugf("skipDomainName: Malformed domain name (more than 256 characters)"); return(mDNSNULL); }
2088 { debugf("getDomainName: Malformed domain name (overruns packet end)"); return(mDNSNULL); }
2090 { debugf("getDomainName: Malformed domain name (more than 256 characters)"); return(mDNSNULL); }
2099 case 0x80: debugf("getDomainName: Illegal label length 0x%X in domain name %##s", len, name->c); return(mDNSNULL);
2404 if (!ptr) { debugf("skipQuestion: Malformed domain name in DNS question section"); return(mDNSNULL); }
2416 if (!ptr) { debugf("Malformed domain name in DNS question section"); return(mDNSNULL); }
2884 // generating decimal numbers, hexdecimal numbers, IP addresses, domain name strings, etc.
2885 // The size needs to be enough for a 256-byte domain name plus some error text.