f<dZddlmZddlZddlZGddej jZGddejjZ de d efd Z d ed ed efd Zded eeeffdZddeded e fdZej&Zej(Zej*Zej,Zej.Zej0Zej2Zej4Zej6Zej8Zej:Zej<Zej>Zej@Z ejBZ!ejDZ"ejFZ#ejHZ$ejJZ%ejLZ&ejNZ'y)zDNS Result Codes.)TupleNceZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d Zd Zd ZdZdZdZdZdZdZdZedZedZy)Rcoder cy)Nclss R/var/lib/jenkins/workspace/mettalog/venv/lib/python3.12/site-packages/dns/rcode.py_maximumzRcode._maximumFsctS)N) UnknownRcoders r_unknown_exception_classzRcode._unknown_exception_classJsr N)__name__ __module__ __qualname__NOERRORFORMERRSERVFAILNXDOMAINNOTIMPREFUSEDYXDOMAINYXRRSETNXRRSETNOTAUTHNOTZONE DSOTYPENIBADVERSBADSIGBADKEYBADTIMEBADMODEBADNAMEBADALGBADTRUNC BADCOOKIE classmethodrr#rr rrrsGGHH FGHGGGGIG F FGGG FHIr rceZdZdZy)r"zA DNS rcode is unknown.N)r$r%r&__doc__rr rr"r"Os!r r"textreturnc,tj|S)zConvert text into an rcode. *text*, a ``str``, the textual rcode or an integer in textual form. Raises ``dns.rcode.UnknownRcode`` if the rcode mnemonic is unknown. Returns a ``dns.rcode.Rcode``. )r from_text)r?s rrBrBSs ??4  r flags ednsflagscH|dz|dz dzz}tj|S)zReturn the rcode value encoded by flags and ednsflags. *flags*, an ``int``, the DNS flags field. *ednsflags*, an ``int``, the EDNS flags field. Raises ``ValueError`` if rcode is < 0 or > 4095 Returns a ``dns.rcode.Rcode``. r)rmake)rCrDvalues r from_flagsrJ`s*V^bE 9 :E ::e r rIcN|dks|dkDr td|dz}|dzdz}||fS)zReturn a (flags, ednsflags) tuple which encodes the rcode. *value*, a ``dns.rcode.Rcode``, the rcode. Raises ``ValueError`` if rcode is < 0 or > 4095. Returns an ``(int, int)`` tuple. rrzrcode must be >= 0 and <= 4095rFrGr) ValueError)rIvevs rto_flagsrOps= qyEDL9::  A %-B B r7Nr tsigcX|r|tjk(rytj|S)zConvert rcode into text. *value*, a ``dns.rcode.Rcode``, the rcode. Raises ``ValueError`` if rcode is < 0 or > 4095. Returns a ``str``. r4)rr3to_text)rIrPs rrRrRs$ & == r )F)(r>typingrdns.enumdns dns.exceptionenumIntEnumr exception DNSExceptionr"strrBintrJrOboolrRr'r(r)r*r+r,r-r.r/r0r1r2r3r4r5r6r7r8r9r:r;rr rr^sa$2CHH  2j"3==--" !C !E ! c c e  EeCHo"  5      " -- -- >> >>  -- >> -- -- -- -- OO --   -- -- --  >> OO r