GhostManSec
Server: Apache
System: Linux s323.xrea.com 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User: moonarc (17751)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //lib/python2.7/site-packages/dns/edns.pyc
�
�b�Wc@sTdZdZdefd��YZdefd��YZiZd�Zd�ZdS(	sEDNS OptionsitOptioncBsneZdZd�Zd�Zed��Zd�Zd�Zd�Z	d�Z
d�Zd	�Zd
�Z
RS(s*Base class for all EDNS option types.
    cCs
||_dS(s\Initialize an option.
        @param otype: The rdata type
        @type otype: int
        N(totype(tselfR((s,/usr/lib/python2.7/site-packages/dns/edns.pyt__init__scCs
t�dS(s*Convert an option to wire format.
        N(tNotImplementedError(Rtfile((s,/usr/lib/python2.7/site-packages/dns/edns.pytto_wire!scCs
t�dS(s�Build an EDNS option object from wire format

        @param otype: The option type
        @type otype: int
        @param wire: The wire-format message
        @type wire: string
        @param current: The offset in wire of the beginning of the rdata.
        @type current: int
        @param olen: The length of the wire-format option data
        @type olen: int
        @rtype: dns.edns.Option instanceN(R(tclsRtwiretcurrenttolen((s,/usr/lib/python2.7/site-packages/dns/edns.pyt	from_wire&s
cCs
t�dS(s�Compare an EDNS option with another option of the same type.
        Return < 0 if self < other, 0 if self == other,
        and > 0 if self > other.
        N(R(Rtother((s,/usr/lib/python2.7/site-packages/dns/edns.pyt_cmp5scCs<t|t�stS|j|jkr)tS|j|�dkS(Ni(t
isinstanceRtFalseRR
(RR((s,/usr/lib/python2.7/site-packages/dns/edns.pyt__eq__<s
cCs<t|t�stS|j|jkr)tS|j|�dkS(Ni(RRRRR
(RR((s,/usr/lib/python2.7/site-packages/dns/edns.pyt__ne__Cs
cCs9t|t�s"|j|jkr&tS|j|�dkS(Ni(RRRtNotImplementedR
(RR((s,/usr/lib/python2.7/site-packages/dns/edns.pyt__lt__JscCs9t|t�s"|j|jkr&tS|j|�dkS(Ni(RRRRR
(RR((s,/usr/lib/python2.7/site-packages/dns/edns.pyt__le__PscCs9t|t�s"|j|jkr&tS|j|�dkS(Ni(RRRRR
(RR((s,/usr/lib/python2.7/site-packages/dns/edns.pyt__ge__VscCs9t|t�s"|j|jkr&tS|j|�dkS(Ni(RRRRR
(RR((s,/usr/lib/python2.7/site-packages/dns/edns.pyt__gt__\s(t__name__t
__module__t__doc__RRtclassmethodRR
RRRRRR(((s,/usr/lib/python2.7/site-packages/dns/edns.pyRs								t
GenericOptioncBs8eZdZd�Zd�Zed��Zd�ZRS(swGenerate Rdata Class

    This class is used for EDNS option types for which we have no better
    implementation.
    cCs#tt|�j|�||_dS(N(tsuperRRtdata(RRR((s,/usr/lib/python2.7/site-packages/dns/edns.pyRkscCs|j|j�dS(N(twriteR(RR((s,/usr/lib/python2.7/site-packages/dns/edns.pyRoscCs||||||!�S(N((RRRR	R
((s,/usr/lib/python2.7/site-packages/dns/edns.pyRrscCs0|j|jkrdS|j|jkr,dSdS(Niii����(R(RR((s,/usr/lib/python2.7/site-packages/dns/edns.pyR
vs
(RRRRRRRR
(((s,/usr/lib/python2.7/site-packages/dns/edns.pyRcs
		cCs(tj|�}|dkr$t}n|S(N(t_type_to_classtgettNoneR(RR((s,/usr/lib/python2.7/site-packages/dns/edns.pytget_option_class�s	cCs"t|�}|j||||�S(suBuild an EDNS option object from wire format

    @param otype: The option type
    @type otype: int
    @param wire: The wire-format message
    @type wire: string
    @param current: The offset in wire of the beginning of the rdata.
    @type current: int
    @param olen: The length of the wire-format option data
    @type olen: int
    @rtype: dns.edns.Option instance(R"R(RRR	R
R((s,/usr/lib/python2.7/site-packages/dns/edns.pytoption_from_wire�s
N(RtNSIDtobjectRRRR"R#(((s,/usr/lib/python2.7/site-packages/dns/edns.pyt<module>sN