Show More
@@ -114,7 +114,7 b" globals()['_GLOBAL_DONE'] = 0" | |||||
114 | _FLAGS_QR_QUERY = 0x0000 # query |
|
114 | _FLAGS_QR_QUERY = 0x0000 # query | |
115 | _FLAGS_QR_RESPONSE = 0x8000 # response |
|
115 | _FLAGS_QR_RESPONSE = 0x8000 # response | |
116 |
|
116 | |||
117 | _FLAGS_AA = 0x0400 # Authorative answer |
|
117 | _FLAGS_AA = 0x0400 # Authoritative answer | |
118 | _FLAGS_TC = 0x0200 # Truncated |
|
118 | _FLAGS_TC = 0x0200 # Truncated | |
119 | _FLAGS_RD = 0x0100 # Recursion desired |
|
119 | _FLAGS_RD = 0x0100 # Recursion desired | |
120 | _FLAGS_RA = 0x8000 # Recursion available |
|
120 | _FLAGS_RA = 0x8000 # Recursion available | |
@@ -650,7 +650,7 b' class DNSOutgoing(object):' | |||||
650 | if now == 0 or not record.isExpired(now): |
|
650 | if now == 0 or not record.isExpired(now): | |
651 | self.answers.append((record, now)) |
|
651 | self.answers.append((record, now)) | |
652 |
|
652 | |||
653 | def addAuthorativeAnswer(self, record): |
|
653 | def addAuthoritativeAnswer(self, record): | |
654 | """Adds an authoritative answer""" |
|
654 | """Adds an authoritative answer""" | |
655 | self.authorities.append(record) |
|
655 | self.authorities.append(record) | |
656 |
|
656 | |||
@@ -1433,7 +1433,7 b' class Zeroconf(object):' | |||||
1433 | out = DNSOutgoing(_FLAGS_QR_QUERY | _FLAGS_AA) |
|
1433 | out = DNSOutgoing(_FLAGS_QR_QUERY | _FLAGS_AA) | |
1434 | self.debug = out |
|
1434 | self.debug = out | |
1435 | out.addQuestion(DNSQuestion(info.type, _TYPE_PTR, _CLASS_IN)) |
|
1435 | out.addQuestion(DNSQuestion(info.type, _TYPE_PTR, _CLASS_IN)) | |
1436 | out.addAuthorativeAnswer(DNSPointer(info.type, _TYPE_PTR, _CLASS_IN, _DNS_TTL, info.name)) |
|
1436 | out.addAuthoritativeAnswer(DNSPointer(info.type, _TYPE_PTR, _CLASS_IN, _DNS_TTL, info.name)) | |
1437 | self.send(out) |
|
1437 | self.send(out) | |
1438 | i += 1 |
|
1438 | i += 1 | |
1439 | nextTime += _CHECK_TIME |
|
1439 | nextTime += _CHECK_TIME |
General Comments 0
You need to be logged in to leave comments.
Login now