@@ -44,10 +44,10 @@ cdef class DNSQuestion(DNSEntry):
44
44
45
45
cdef class DNSRecord(DNSEntry):
46
46
47
- cdef public cython.float ttl
47
+ cdef public unsigned int ttl
48
48
cdef public double created
49
49
50
- cdef _fast_init_record(self , str name, cython.uint type_, cython.uint class_, cython.float ttl, double created)
50
+ cdef _fast_init_record(self , str name, cython.uint type_, cython.uint class_, unsigned int ttl, double created)
51
51
52
52
cdef bint _suppressed_by_answer(self , DNSRecord answer)
53
53
@@ -66,15 +66,15 @@ cdef class DNSRecord(DNSEntry):
66
66
67
67
cpdef bint is_recent(self , double now)
68
68
69
- cdef _set_created_ttl(self , double now, cython.float ttl)
69
+ cdef _set_created_ttl(self , double now, unsigned int ttl)
70
70
71
71
cdef class DNSAddress(DNSRecord):
72
72
73
73
cdef public cython.int _hash
74
74
cdef public bytes address
75
75
cdef public object scope_id
76
76
77
- cdef _fast_init(self , str name, cython.uint type_, cython.uint class_, cython.float ttl, bytes address, object scope_id, double created)
77
+ cdef _fast_init(self , str name, cython.uint type_, cython.uint class_, unsigned int ttl, bytes address, object scope_id, double created)
78
78
79
79
cdef bint _eq(self , DNSAddress other)
80
80
@@ -87,7 +87,7 @@ cdef class DNSHinfo(DNSRecord):
87
87
cdef public str cpu
88
88
cdef public str os
89
89
90
- cdef _fast_init(self , str name, cython.uint type_, cython.uint class_, cython.float ttl, str cpu, str os, double created)
90
+ cdef _fast_init(self , str name, cython.uint type_, cython.uint class_, unsigned int ttl, str cpu, str os, double created)
91
91
92
92
cdef bint _eq(self , DNSHinfo other)
93
93
@@ -99,7 +99,7 @@ cdef class DNSPointer(DNSRecord):
99
99
cdef public str alias
100
100
cdef public str alias_key
101
101
102
- cdef _fast_init(self , str name, cython.uint type_, cython.uint class_, cython.float ttl, str alias, double created)
102
+ cdef _fast_init(self , str name, cython.uint type_, cython.uint class_, unsigned int ttl, str alias, double created)
103
103
104
104
cdef bint _eq(self , DNSPointer other)
105
105
@@ -110,7 +110,7 @@ cdef class DNSText(DNSRecord):
110
110
cdef public cython.int _hash
111
111
cdef public bytes text
112
112
113
- cdef _fast_init(self , str name, cython.uint type_, cython.uint class_, cython.float ttl, bytes text, double created)
113
+ cdef _fast_init(self , str name, cython.uint type_, cython.uint class_, unsigned int ttl, bytes text, double created)
114
114
115
115
cdef bint _eq(self , DNSText other)
116
116
@@ -125,7 +125,7 @@ cdef class DNSService(DNSRecord):
125
125
cdef public str server
126
126
cdef public str server_key
127
127
128
- cdef _fast_init(self , str name, cython.uint type_, cython.uint class_, cython.float ttl, cython.uint priority, cython.uint weight, cython.uint port, str server, double created)
128
+ cdef _fast_init(self , str name, cython.uint type_, cython.uint class_, unsigned int ttl, cython.uint priority, cython.uint weight, cython.uint port, str server, double created)
129
129
130
130
cdef bint _eq(self , DNSService other)
131
131
@@ -137,7 +137,7 @@ cdef class DNSNsec(DNSRecord):
137
137
cdef public str next_name
138
138
cdef public cython.list rdtypes
139
139
140
- cdef _fast_init(self , str name, cython.uint type_, cython.uint class_, cython.float ttl, str next_name, cython.list rdtypes, double created)
140
+ cdef _fast_init(self , str name, cython.uint type_, cython.uint class_, unsigned int ttl, str next_name, cython.list rdtypes, double created)
141
141
142
142
cdef bint _eq(self , DNSNsec other)
143
143
0 commit comments