8889841có ”.=Pc@s\ddlZddlZddlZddlZddlZdejjfd„ƒYZdS(iÿÿÿÿNtNSECcBsŒeZdZddgZd„Zd ed„Zd ed„Ze eƒZd d d„Z d d„Z e e ƒZ d ed„Z d „Z RS( sµNSEC record @ivar next: the next name @type next: dns.name.Name object @ivar windows: the windowed bitmap list @type windows: list of (window number, string) tuplestnexttwindowscCs/tt|ƒj||ƒ||_||_dS(N(tsuperRt__init__RR(tselftrdclasstrdtypeRR((s:/usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/NSEC.pyR!s c Ksä|jj||ƒ}d}x¸|jD]­\}}g}xtdt|ƒƒD]j} t|| ƒ} xQtddƒD]@} | d| ?@rs|jtjj |d| d| ƒƒqsqsWqMW|ddj |ƒ7}q%Wd||fS(Ntiii€it s%s%s( Rtchoose_relativityRtxrangetlentordtappendtdnst rdatatypetto_texttjoin( Rtorigint relativizetkwRttexttwindowtbitmaptbitstitbytetj((s:/usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/NSEC.pyR&s%cCs×|jƒ}|j||ƒ}g}x‰|jƒjƒ}|jƒrIPntjj|jƒ} | dkrtj j dƒ‚n| dkr tj j dƒ‚n|j | ƒq'|j ƒd} d} d} dgd} g}x¿|D]·} | | krþqæn| } | d}|| krS|j | dj | d| !ƒfƒdgd} |} n| d}|d }|d }|d } tt| |ƒd |?Bƒ| | 65535ti iRiii€(tget_nameR tgettunescapet is_eol_or_eofRRt from_texttvaluet exceptiont SyntaxErrorRtsortRtchrR (tclsRRttokRRRtrdtypesttokentnrdtypeRtoctetst prior_rdtypeRRt new_windowtoffsetRtbit((s:/usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/NSEC.pyR"4sF          #      &#cCsm|jj|d|ƒxP|jD]E\}}|jt|ƒƒ|jtt|ƒƒƒ|j|ƒq WdS(N(Rtto_wiretNoneRtwriteR'R (RtfiletcompressRRR((s:/usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/NSEC.pyR2[s c Csftjj||| |ƒ\}}||7}||8}g} xõ|dkr4|dkrmtjjdƒ‚nt||ƒ} t||dƒ} | dks©| dkr¾tjjdƒ‚n|d7}|d8}|| krótjjdƒ‚n|||| !jƒ} || 7}|| 8}| j| | fƒq@W|dk rS|j |ƒ}n||||| ƒS( NiisNSEC too shortii sbad NSEC octetsisbad NSEC bitmap length( Rtnamet from_wireR$t FormErrorR tunwrapRR3R( R(RRtwiretcurrenttrdlenRRtcusedRRR-R((s:/usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/NSEC.pyR8bs,#         cCs|jj||ƒ|_dS(N(RR (RRR((s:/usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/NSEC.pyR |scCs |j|ƒS(N(t _wire_cmp(Rtother((s:/usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/NSEC.pyt_cmpsN(t__name__t __module__t__doc__t __slots__RR3tTrueRR"t classmethodR2R8R RA(((s:/usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/NSEC.pyRs  %   ( t cStringIOt dns.exceptionRt dns.rdatat dns.rdatatypetdns.nametrdatatRdataR(((s:/usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/NSEC.pyts