-
Notifications
You must be signed in to change notification settings - Fork 219
/
_dns.pxd
140 lines (86 loc) · 2.84 KB
/
_dns.pxd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
import cython
from ._protocol.outgoing cimport DNSOutgoing
cdef object _LEN_BYTE
cdef object _LEN_SHORT
cdef object _LEN_INT
cdef object _NAME_COMPRESSION_MIN_SIZE
cdef object _BASE_MAX_SIZE
cdef cython.uint _EXPIRE_FULL_TIME_MS
cdef cython.uint _EXPIRE_STALE_TIME_MS
cdef cython.uint _RECENT_TIME_MS
cdef object _CLASS_UNIQUE
cdef object _CLASS_MASK
cdef object current_time_millis
cdef class DNSEntry:
cdef public str key
cdef public str name
cdef public object type
cdef public object class_
cdef public object unique
cdef _dns_entry_matches(self, DNSEntry other)
cdef class DNSQuestion(DNSEntry):
cdef public cython.int _hash
cdef class DNSRecord(DNSEntry):
cdef public cython.float ttl
cdef public cython.float created
cdef _suppressed_by_answer(self, DNSRecord answer)
@cython.locals(
answers=cython.list,
)
cpdef suppressed_by(self, object msg)
cpdef get_remaining_ttl(self, cython.float now)
cpdef get_expiration_time(self, cython.uint percent)
cpdef is_expired(self, cython.float now)
cpdef is_stale(self, cython.float now)
cpdef is_recent(self, cython.float now)
cpdef reset_ttl(self, DNSRecord other)
cpdef set_created_ttl(self, cython.float now, cython.float ttl)
cdef class DNSAddress(DNSRecord):
cdef public cython.int _hash
cdef public object address
cdef public object scope_id
cdef _eq(self, DNSAddress other)
cpdef write(self, DNSOutgoing out)
cdef class DNSHinfo(DNSRecord):
cdef public cython.int _hash
cdef public object cpu
cdef public object os
cdef _eq(self, DNSHinfo other)
cpdef write(self, DNSOutgoing out)
cdef class DNSPointer(DNSRecord):
cdef public cython.int _hash
cdef public str alias
cdef public str alias_key
cdef _eq(self, DNSPointer other)
cpdef write(self, DNSOutgoing out)
cdef class DNSText(DNSRecord):
cdef public cython.int _hash
cdef public object text
cdef _eq(self, DNSText other)
cpdef write(self, DNSOutgoing out)
cdef class DNSService(DNSRecord):
cdef public cython.int _hash
cdef public object priority
cdef public object weight
cdef public object port
cdef public str server
cdef public str server_key
cdef _eq(self, DNSService other)
cpdef write(self, DNSOutgoing out)
cdef class DNSNsec(DNSRecord):
cdef public cython.int _hash
cdef public object next_name
cdef public cython.list rdtypes
cdef _eq(self, DNSNsec other)
cpdef write(self, DNSOutgoing out)
cdef class DNSRRSet:
cdef cython.list _record_sets
cdef cython.dict _lookup
@cython.locals(other=DNSRecord)
cpdef suppresses(self, DNSRecord record)
@cython.locals(
record=DNSRecord,
record_sets=cython.list,
)
cdef cython.dict _get_lookup(self)
cpdef cython.set lookup_set(self)