MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //usr/local/ssl/lib/python2.4/site-packages/dns/edns.pyc
mς
n|ΊOc@sTdZdZdefd„ƒYZdefd„ƒYZhZd„Zd„ZdS(	sEDNS OptionsitOptioncBsttZdZd„Zd„Zd„Zeeƒ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(totypetself(RR((t,/usr/lib/python2.4/site-packages/dns/edns.pyt__init__scCs
t‚dS(s*Convert an option to wire format.
        N(tNotImplementedError(Rtfile((Rtto_wirescCs
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 offet 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((Rt	from_wire$scCs
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((Rt_cmp4scCsFt|tƒptSn|i|ijotSn|i|ƒdjS(Ni(t
isinstanceR
RtFalseRRR(RR
((Rt__eq__:s
cCsFt|tƒptSn|i|ijotSn|i|ƒdjS(Ni(RR
RRRRR(RR
((Rt__ne__As
cCs?t|tƒp|i|ijotSn|i|ƒdjS(Ni(RR
RRRtNotImplementedR(RR
((Rt__lt__Hs$cCs?t|tƒp|i|ijotSn|i|ƒdjS(Ni(RR
RRRRR(RR
((Rt__le__Ns$cCs?t|tƒp|i|ijotSn|i|ƒdjS(Ni(RR
RRRRR(RR
((Rt__ge__Ts$cCs?t|tƒp|i|ijotSn|i|ƒdjS(Ni(RR
RRRRR(RR
((Rt__gt__Zs$(t__name__t
__module__t__doc__RRRtclassmethodRRRRRRR(((RRs									t
GenericOptioncBs>tZdZd„Zd„Zd„ZeeƒZd„ZRS(swGenerate Rdata Class

    This class is used for EDNS option types for which we have no better
    implementation.
    cCs#tt|ƒi|ƒ||_dS(N(tsuperRRRRtdata(RRR((RRhscCs|i|iƒdS(N(RtwriteRR(RR((RRlscCs||||||!ƒS(N(RRR	R
R(RRR	R
R((RRoscCst|i|iƒS(N(tcmpRRR
(RR
((RRts(RRRRRRRR(((RRas			cCs*ti|ƒ}|djo
t}n|S(N(t_type_to_classtgetRRtNoneR(RR((Rtget_option_classzs

cCs"t|ƒ}|i||||ƒS(stBuild 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 offet 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$RRRR	R
R(RR	R
RR((Rtoption_from_wire€sN(RtNSIDtobjectRRR!R$R%(RR&RR%R$R!((Rt?sM