/external/jmdns/src/javax/jmdns/impl/ |
DNSMessage.java | 44 protected final List<DNSRecord> _answers; 46 protected final List<DNSRecord> _authoritativeAnswers; 48 protected final List<DNSRecord> _additionals; 61 _answers = Collections.synchronizedList(new LinkedList<DNSRecord>()); 62 _authoritativeAnswers = Collections.synchronizedList(new LinkedList<DNSRecord>()); 63 _additionals = Collections.synchronizedList(new LinkedList<DNSRecord>()); 134 public Collection<? extends DNSRecord> getAllAnswers() { 135 List<DNSRecord> aList = new ArrayList<DNSRecord>(_answers.size() + _authoritativeAnswers.size() + _additionals.size()); 145 public Collection<? extends DNSRecord> getAnswers() [all...] |
HostInfo.java | 161 public boolean conflictWithRecord(DNSRecord.Address record) { 162 DNSRecord.Address hostAddress = this.getDNSAddressRecord(record.getRecordType(), record.isUnique(), DNSConstants.DNS_TTL); 198 DNSRecord.Address getDNSAddressRecord(DNSRecordType type, boolean unique, int ttl) { 210 private DNSRecord.Address getDNS4AddressRecord(boolean unique, int ttl) { 212 return new DNSRecord.IPv4Address(this.getName(), DNSRecordClass.CLASS_IN, unique, ttl, this.getInetAddress()); 217 private DNSRecord.Address getDNS6AddressRecord(boolean unique, int ttl) { 219 return new DNSRecord.IPv6Address(this.getName(), DNSRecordClass.CLASS_IN, unique, ttl, this.getInetAddress()); 224 DNSRecord.Pointer getDNSReverseAddressRecord(DNSRecordType type, boolean unique, int ttl) { 236 private DNSRecord.Pointer getDNS4ReverseAddressRecord(boolean unique, int ttl) { 238 return new DNSRecord.Pointer(this.getInetAddress().getHostAddress() + ".in-addr.arpa.", DNSRecordClass.CLASS_IN, unique (…) [all...] |
DNSQuestion.java | 36 public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) { 37 DNSRecord answer = jmDNSImpl.getLocalHost().getDNSAddressRecord(this.getRecordType(), DNSRecordClass.UNIQUE, DNSConstants.DNS_TTL); 60 public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) { 61 DNSRecord answer = jmDNSImpl.getLocalHost().getDNSAddressRecord(this.getRecordType(), DNSRecordClass.UNIQUE, DNSConstants.DNS_TTL); 93 public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) { 101 answers.add(new DNSRecord.Pointer("_services._dns-sd._udp.local.", DNSRecordClass.CLASS_IN, DNSRecordClass.NOT_UNIQUE, DNSConstants.DNS_TTL, typeEntry.getType())); 133 public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) { 167 public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) { 194 public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) { 274 public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) [all...] |
DNSRecord.java | 32 public abstract class DNSRecord extends DNSEntry { 33 private static Logger logger = Logger.getLogger(DNSRecord.class.getName()); 43 * Create a DNSRecord with a name, type, class, and ttl. 45 DNSRecord(String name, DNSRecordType type, DNSRecordClass recordClass, boolean unique, int ttl) { 57 return (other instanceof DNSRecord) && super.equals(other) && sameValue((DNSRecord) other); 63 abstract boolean sameValue(DNSRecord other); 68 boolean sameType(DNSRecord other) { 96 for (DNSRecord answer : msg.getAllAnswers()) { 112 boolean suppressedBy(DNSRecord other) [all...] |
DNSOutgoing.java | 154 void writeRecord(DNSRecord rec, long now) { 261 public void addAnswer(DNSIncoming in, DNSRecord rec) throws IOException { 274 public void addAnswer(DNSRecord rec, long now) throws IOException { 296 public void addAuthorativeAnswer(DNSRecord rec) throws IOException { 315 public void addAdditionalAnswer(DNSIncoming in, DNSRecord rec) throws IOException { 346 for (DNSRecord record : _answers) { 349 for (DNSRecord record : _authoritativeAnswers) { 352 for (DNSRecord record : _additionals) { 419 for (DNSRecord record : _answers) { 426 for (DNSRecord record : _authoritativeAnswers) [all...] |
DNSIncoming.java | 209 DNSRecord rec = this.readAnswer(source); 219 DNSRecord rec = this.readAnswer(source); 229 DNSRecord rec = this.readAnswer(source); 282 private DNSRecord readAnswer(InetAddress source) { 296 DNSRecord rec = null; 300 rec = new DNSRecord.IPv4Address(domain, recordClass, unique, ttl, _messageInputStream.readBytes(len)); 303 rec = new DNSRecord.IPv6Address(domain, recordClass, unique, ttl, _messageInputStream.readBytes(len)); 310 rec = new DNSRecord.Pointer(domain, recordClass, unique, ttl, service); 316 rec = new DNSRecord.Text(domain, recordClass, unique, ttl, _messageInputStream.readBytes(len)); 331 rec = new DNSRecord.Service(domain, recordClass, unique, ttl, priority, weight, port, target) [all...] |
JmDNSImpl.java | 759 DNSEntry pointerEntry = this.getCache().getDNSEntry(new DNSRecord.Pointer(type, DNSRecordClass.CLASS_ANY, false, 0, info.getQualifiedName())); 760 if (pointerEntry instanceof DNSRecord) { 761 ServiceInfoImpl cachedInfo = (ServiceInfoImpl) ((DNSRecord) pointerEntry).getServiceInfo(persistent); 769 if (serviceEntry instanceof DNSRecord) { 770 ServiceInfo cachedServiceEntryInfo = ((DNSRecord) serviceEntry).getServiceInfo(persistent); 778 if (addressEntry instanceof DNSRecord) { 779 ServiceInfo cachedAddressInfo = ((DNSRecord) addressEntry).getServiceInfo(persistent); 788 if (addressEntry instanceof DNSRecord) { 789 ServiceInfo cachedAddressInfo = ((DNSRecord) addressEntry).getServiceInfo(persistent); 798 if (textEntry instanceof DNSRecord) { [all...] |
ServiceInfoImpl.java | 29 import javax.jmdns.impl.DNSRecord.Pointer; 30 import javax.jmdns.impl.DNSRecord.Service; 31 import javax.jmdns.impl.DNSRecord.Text; 594 return (this._text != null && this._text.length > 0 ? this._text : DNSRecord.EMPTY_TXT); 866 if ((rec instanceof DNSRecord) && !rec.isExpired(now)) { 871 _ipv4Addresses.add((Inet4Address) ((DNSRecord.Address) rec).getAddress()); 877 _ipv6Addresses.add((Inet6Address) ((DNSRecord.Address) rec).getAddress()); 883 DNSRecord.Service srv = (DNSRecord.Service) rec; 906 DNSRecord.Text txt = (DNSRecord.Text) rec [all...] |
/external/jmdns/src/javax/jmdns/impl/tasks/state/ |
Canceler.java | 12 import javax.jmdns.impl.DNSRecord; 104 for (DNSRecord answer : this.getDns().getLocalHost().answers(DNSRecordClass.UNIQUE, this.getTTL())) { 117 for (DNSRecord answer : info.answers(DNSRecordClass.UNIQUE, this.getTTL(), this.getDns().getLocalHost())) {
|
Announcer.java | 12 import javax.jmdns.impl.DNSRecord; 104 for (DNSRecord answer : this.getDns().getLocalHost().answers(DNSRecordClass.UNIQUE, this.getTTL())) { 117 for (DNSRecord answer : info.answers(DNSRecordClass.UNIQUE, this.getTTL(), this.getDns().getLocalHost())) {
|
Renewer.java | 12 import javax.jmdns.impl.DNSRecord; 105 for (DNSRecord answer : this.getDns().getLocalHost().answers(DNSRecordClass.UNIQUE, this.getTTL())) { 118 for (DNSRecord answer : info.answers(DNSRecordClass.UNIQUE, this.getTTL(), this.getDns().getLocalHost())) {
|
Prober.java | 13 import javax.jmdns.impl.DNSRecord; 118 for (DNSRecord answer : this.getDns().getLocalHost().answers(DNSRecordClass.NOT_UNIQUE, this.getTTL())) { 133 newOut = this.addAuthoritativeAnswer(newOut, new DNSRecord.Service(info.getQualifiedName(), DNSRecordClass.CLASS_IN, DNSRecordClass.NOT_UNIQUE, this.getTTL(), info.getPriority(), info.getWeight(), info.getPort(), this.getDns().getLocalHost()
|
/external/jmdns/src/javax/jmdns/impl/tasks/resolver/ |
ServiceResolver.java | 12 import javax.jmdns.impl.DNSRecord; 50 newOut = this.addAnswer(newOut, new DNSRecord.Pointer(info.getType(), DNSRecordClass.CLASS_IN, DNSRecordClass.NOT_UNIQUE, DNSConstants.DNS_TTL, info.getQualifiedName()), now); 51 // newOut = this.addAnswer(newOut, new DNSRecord.Service(info.getQualifiedName(), DNSRecordClass.CLASS_IN, DNSRecordClass.NOT_UNIQUE, DNSConstants.DNS_TTL, info.getPriority(), info.getWeight(), info.getPort(),
|
TypeResolver.java | 11 import javax.jmdns.impl.DNSRecord; 53 newOut = this.addAnswer(newOut, new DNSRecord.Pointer("_services._dns-sd._udp.local.", DNSRecordClass.CLASS_IN, DNSRecordClass.NOT_UNIQUE, DNSConstants.DNS_TTL, typeEntry.getType()), now);
|
ServiceInfoResolver.java | 11 import javax.jmdns.impl.DNSRecord; 65 newOut = this.addAnswer(newOut, (DNSRecord) this.getDns().getCache().getDNSEntry(_info.getQualifiedName(), DNSRecordType.TYPE_SRV, DNSRecordClass.CLASS_IN), now); 66 newOut = this.addAnswer(newOut, (DNSRecord) this.getDns().getCache().getDNSEntry(_info.getQualifiedName(), DNSRecordType.TYPE_TXT, DNSRecordClass.CLASS_IN), now); 68 newOut = this.addAnswer(newOut, (DNSRecord) this.getDns().getCache().getDNSEntry(_info.getServer(), DNSRecordType.TYPE_A, DNSRecordClass.CLASS_IN), now); 69 newOut = this.addAnswer(newOut, (DNSRecord) this.getDns().getCache().getDNSEntry(_info.getServer(), DNSRecordType.TYPE_AAAA, DNSRecordClass.CLASS_IN), now);
|
/external/jmdns/src/javax/jmdns/impl/tasks/ |
DNSTask.java | 11 import javax.jmdns.impl.DNSRecord; 110 public DNSOutgoing addAnswer(DNSOutgoing out, DNSIncoming in, DNSRecord rec) throws IOException { 141 public DNSOutgoing addAnswer(DNSOutgoing out, DNSRecord rec, long now) throws IOException { 171 public DNSOutgoing addAuthoritativeAnswer(DNSOutgoing out, DNSRecord rec) throws IOException { 203 public DNSOutgoing addAdditionalAnswer(DNSOutgoing out, DNSIncoming in, DNSRecord rec) throws IOException {
|
Responder.java | 16 import javax.jmdns.impl.DNSRecord; 101 Set<DNSRecord> answers = new HashSet<DNSRecord>(); 121 for (DNSRecord knownAnswer : _in.getAnswers()) { 142 for (DNSRecord answer : answers) {
|
/system/netd/tests/ |
dns_responder.h | 36 struct DNSRecord; 96 std::vector<DNSRecord>* answers) const;
|
dns_responder.cpp | 273 struct DNSRecord { 296 const char* DNSRecord::read(const char* buffer, const char* buffer_end) { 316 char* DNSRecord::write(char* buffer, const char* buffer_end) const { 328 std::string DNSRecord::toString() const { 335 const char* DNSRecord::readIntFields(const char* buffer, const char* buffer_end, 349 char* DNSRecord::writeIntFields(unsigned rdlen, char* buffer, 373 std::vector<DNSRecord> answers; 374 std::vector<DNSRecord> authorities; 375 std::vector<DNSRecord> additionals; 472 for (const DNSRecord& answer : answers) [all...] |
/external/mdnsresponder/mDNSShared/ |
dnssd_clientstub.c | 114 typedef struct _DNSRecordRef_t DNSRecord; 143 DNSRecord *rec; 152 DNSRecord *recnext; 374 DNSRecord *rec = sdRef->rec; 377 DNSRecord *next = rec->recnext; 815 DNSRecord *rec; 816 DNSRecord *recnext; [all...] |