Lines Matching refs:rr
170 for rr in answers: # Answers RRs
173 if rr.type == dpkt.dns.DNS_A:
174 data = socket.inet_ntoa(rr.ip)
175 elif rr.type == dpkt.dns.DNS_PTR:
176 data = rr.ptrname
177 elif rr.type == dpkt.dns.DNS_TXT:
178 data = tuple(rr.text) # Convert the list to a hashable tuple
179 elif rr.type == dpkt.dns.DNS_SRV:
180 data = rr.srvname, rr.priority, rr.weight, rr.port
183 if not rr.name in self._peer_records:
184 self._peer_records[rr.name] = {}
186 if not rr.type in self._peer_records[rr.name] or (
187 rr.cls & DNS_CACHE_FLUSH):
188 self._peer_records[rr.name][rr.type] = {}
190 new_answers.append((rr.type, rr.name, data))
191 cached_ans = self._peer_records[rr.name][rr.type]
192 rr_timeout = cur_time + rr.ttl