Commit 1e762fa3 authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[1396] Use RRset::getLength() in xfrout

parent 63eca991
......@@ -143,11 +143,11 @@ def format_addrinfo(addrinfo):
raise TypeError("addrinfo argument to format_addrinfo() does not "
"appear to be consisting of (family, socktype, (addr, port))")
# This function is not inlined as it is replaced with a mock function
# during testing.
def get_rrset_len(rrset):
"""Returns the wire length of the given RRset"""
bytes = bytearray()
return len(bytes)
return rrset.get_length()
def get_soa_serial(soa_rdata):
'''Extract the serial field of an SOA RDATA and returns it as an Serial object.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment