PATH:
lib
/
python3.9
/
site-packages
/
dns
/
rdtypes
/
ANY
# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license import struct import dns.immutable import dns.rdata @dns.immutable.immutable class L32(dns.rdata.Rdata): """L32 record""" # see: rfc6742.txt __slots__ = ["preference", "locator32"] def __init__(self, rdclass, rdtype, preference, locator32): super().__init__(rdclass, rdtype) self.preference = self._as_uint16(preference) self.locator32 = self._as_ipv4_address(locator32) def to_text(self, origin=None, relativize=True, **kw): return f"{self.preference} {self.locator32}" @classmethod def from_text( cls, rdclass, rdtype, tok, origin=None, relativize=True, relativize_to=None ): preference = tok.get_uint16() nodeid = tok.get_identifier() return cls(rdclass, rdtype, preference, nodeid) def _to_wire(self, file, compress=None, origin=None, canonicalize=False): file.write(struct.pack("!H", self.preference)) file.write(dns.ipv4.inet_aton(self.locator32)) @classmethod def from_wire_parser(cls, rdclass, rdtype, parser, origin=None): preference = parser.get_uint16() locator32 = parser.get_remaining() return cls(rdclass, rdtype, preference, locator32)
[-] NID.py
[open]
[-] CNAME.py
[open]
[-] DLV.py
[open]
[-] SPF.py
[open]
[+]
..
[-] ISDN.py
[open]
[-] GPOS.py
[open]
[-] DNAME.py
[open]
[-] TKEY.py
[open]
[-] CDNSKEY.py
[open]
[-] TXT.py
[open]
[+]
__pycache__
[-] TSIG.py
[open]
[-] OPENPGPKEY.py
[open]
[-] CAA.py
[open]
[-] HINFO.py
[open]
[-] CERT.py
[open]
[-] EUI48.py
[open]
[-] NS.py
[open]
[-] SMIMEA.py
[open]
[-] NSEC3.py
[open]
[-] MX.py
[open]
[-] LOC.py
[open]
[-] L64.py
[open]
[-] SOA.py
[open]
[-] AMTRELAY.py
[open]
[-] RT.py
[open]
[-] URI.py
[open]
[-] DNSKEY.py
[open]
[-] X25.py
[open]
[-] L32.py
[open]
[-] HIP.py
[open]
[-] OPT.py
[open]
[-] NINFO.py
[open]
[-] SSHFP.py
[open]
[-] NSEC.py
[open]
[-] RRSIG.py
[open]
[-] ZONEMD.py
[open]
[-] AFSDB.py
[open]
[-] DS.py
[open]
[-] AVC.py
[open]
[-] __init__.py
[open]
[-] RP.py
[open]
[-] TLSA.py
[open]
[-] NSEC3PARAM.py
[open]
[-] LP.py
[open]
[-] PTR.py
[open]
[-] EUI64.py
[open]
[-] CSYNC.py
[open]
[-] CDS.py
[open]