f \dZddlZddlZGddejj ZGddejjZ de defd Z d e defd Z d ede fd Zd ede fdZd e defdZej$Zej&Zej(Zej*Zej,Zy)z DNS Opcodes.Nc@eZdZdZdZdZdZdZedZ edZ y) Opcodercy)Nclss S/var/lib/jenkins/workspace/mettalog/venv/lib/python3.12/site-packages/dns/opcode.py_maximumzOpcode._maximum$sctS)N) UnknownOpcoder s r_unknown_exception_classzOpcode._unknown_exception_class(srN) __name__ __module__ __qualname__QUERYIQUERYSTATUSNOTIFYUPDATE classmethodrrr rrrrsA E F F F FrrceZdZdZy)rzAn DNS opcode is unknown.N)rrr__doc__r rrrr-s#rrtextreturnc,tj|S)zConvert text into an opcode. *text*, a ``str``, the textual opcode Raises ``dns.opcode.UnknownOpcode`` if the opcode is unknown. Returns an ``int``. )r from_text)rs rr"r"1s   D !!rflagsc$t|dzdz S)zpExtract an opcode from DNS message flags. *flags*, an ``int``, the DNS flags. Returns an ``int``. x )rr#s r from_flagsr(>s 56>b( ))rvaluec|dzdzS)zConvert an opcode to a value suitable for ORing into DNS message flags. *value*, an ``int``, the DNS opcode value. Returns an ``int``. r&r%r r)s rto_flagsr,Is RK6 !!rc,tj|S)zConvert an opcode to text. *value*, an ``int`` the opcode value, Raises ``dns.opcode.UnknownOpcode`` if the opcode is unknown. Returns a ``str``. )rto_textr+s rr.r.Us >>%  rc:t|tjk(S)zmIs the opcode in flags UPDATE? *flags*, an ``int``, the DNS message flags. Returns a ``bool``. )r(rrr's r is_updater0bs e  --r)rdns.enumdns dns.exceptionenumIntEnumr exception DNSExceptionrstrr"intr(r,r.boolr0rrrrrr rrr;s$SXX  *$CMM..$ "C "F "*c*f* "F "s " !6 !c !.S.T.      r