Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 88
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 218
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 219
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 220
3
¢báW$- ã @ s¼ d Z ddlZddlmZ ddlZddlZddlZddlZddl Zddl
ZddlmZ ej
jZG dd„ dejjƒZG dd „ d ejjƒZG d
d„ dej
jƒZdd
„ Zdd„ Zdd„ Zdd„ ZdS )zHDNS rdatasets (an rdataset is a set of rdatas of a given type and class)é N)ÚStringIOé )Ústring_typesc @ s e Zd ZdZdS )ÚDifferingCoversz~An attempt was made to add a DNS SIG/RRSIG whose covered type
is not the same as that of the other rdatas in the rdataset.N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r
r
ú/usr/lib/python3.6/rdataset.pyr ! s r c @ s e Zd ZdZdS )ÚIncompatibleTypesz?An attempt was made to add DNS RR data of an incompatible type.N)r r r r r
r
r
r r ' s r c sº e Zd ZdZddddgZejjf‡ fdd„ Z‡ fdd „Z d
d„ Z
d$‡ fd
d„ Z‡ fdd„Z‡ fdd„Z
‡ fdd„Zdd„ Zdd„ Z‡ fdd„Zdd„ Zd%dd„Zd&d d!„Zd"d#„ Z‡ ZS )'ÚRdatasetaÝ A DNS rdataset.
@ivar rdclass: The class of the rdataset
@type rdclass: int
@ivar rdtype: The type of the rdataset
@type rdtype: int
@ivar covers: The covered type. Usually this value is
dns.rdatatype.NONE, but if the rdtype is dns.rdatatype.SIG or
dns.rdatatype.RRSIG, then the covers value will be the rdata
type the SIG/RRSIG covers. The library treats the SIG and RRSIG
types as if they were a family of
types, e.g. RRSIG(A), RRSIG(NS), RRSIG(SOA). This makes RRSIGs much
easier to work with than if RRSIGs covering different rdata
types were aggregated into a single RRSIG rdataset.
@type covers: int
@ivar ttl: The DNS TTL (Time To Live) value
@type ttl: int
ÚrdclassÚrdtypeÚcoversÚttlc s* t t| ƒjƒ || _|| _|| _d| _dS )z©Create a new rdataset of the specified class and type.
@see: the description of the class instance variables for the
meaning of I{rdclass} and I{rdtype}r N)Úsuperr
Ú__init__r r r r )Úselfr r r )Ú __class__r
r r C s
zRdataset.__init__c s2 t t| ƒjƒ }| j|_| j|_| j|_| j|_|S )N)r r
Ú_cloner r r r )r Úobj)r r
r r O s zRdataset._clonec C s( t | ƒdkr|| _n|| jk r$|| _dS )zàSet the TTL of the rdataset to be the lesser of the set's current
TTL or the specified TTL. If the set contains no rdatas, set the TTL
to the specified TTL.
@param ttl: The TTL
@type ttl: intr N)Úlenr )r r r
r
r Ú
update_ttlW s
zRdataset.update_ttlNc s¸ | j |j ks| j|jkrt‚|dk r.| j|ƒ | jtjjksJ| jtjjkr‚|jƒ }t | ƒdkrt| jtjj
krt|| _n| j|kr‚t‚tjj|jƒr¤t | ƒdkr¤| j
ƒ tt| ƒj|ƒ dS )a% Add the specified rdata to the rdataset.
If the optional I{ttl} parameter is supplied, then
self.update_ttl(ttl) will be called prior to adding the rdata.
@param rd: The rdata
@type rd: dns.rdata.Rdata object
@param ttl: The TTL
@type ttl: intNr )r r r r ÚdnsÚ rdatatypeZRRSIGZSIGr r ÚNONEr Zis_singletonÚclearr r
Úadd)r Úrdr r )r r
r r c s
zRdataset.addc s | j |jƒ tt| ƒj|ƒ d S )N)r r r r
Úunion_update)r Úother)r r
r r ƒ s zRdataset.union_updatec s | j |jƒ tt| ƒj|ƒ d S )N)r r r r
Úintersection_update)r r! )r r
r r" ‡ s zRdataset.intersection_updatec s | j |jƒ tt| ƒj|ƒ dS )z‹Add all rdatas in other to self.
@param other: The rdataset from which to update
@type other: dns.rdataset.Rdataset objectN)r r r r
Úupdate)r r! )r r
r r# ‹ s zRdataset.updatec C sR | j dkrd}ndtjj| j ƒ d }dtjj| jƒ d tjj| jƒ | d S )Nr Ú ú(ú)z)r r r Úto_textÚ
rdataclassr r )r Zctextr
r
r Ú__repr__” s
zRdataset.__repr__c C s | j ƒ S )N)r( )r r
r
r Ú__str__œ s zRdataset.__str__c sF t |tƒsdS | j|jks2| j|jks2| j|jkr6dS tt| ƒj|ƒS )zTwo rdatasets are equal if they have the same class, type, and
covers, and contain the same rdata.
@rtype: boolF)Ú
isinstancer
r r r r Ú__eq__)r r! )r r
r r- Ÿ s
zRdataset.__eq__c C s | j |ƒ S )N)r- )r r! r
r
r Ú__ne__¬ s zRdataset.__ne__Tc
K sØ |dk r"|j ||ƒ}t|ƒ}d}nd}d}tƒ }|dk r>|} n| j} t| ƒdkrz|jd||tjj| ƒtj j| j
ƒf ƒ nNxL| D ]D}
|jd||| jtjj| ƒtj j| j
ƒ|
jf ||dœ|—Žf ƒ q€W |jƒ dd … S )
a„ Convert the rdataset into DNS master file format.
@see: L{dns.name.Name.choose_relativity} for more information
on how I{origin} and I{relativize} determine the way names
are emitted.
Any additional keyword arguments are passed on to the rdata
to_text() method.
@param name: If name is not None, emit a RRs with I{name} as
the owner name.
@type name: dns.name.Name object
@param origin: The origin for relative names, or None.
@type origin: dns.name.Name object
@param relativize: True if names should names be relativized
@type relativize: boolNr' r$ r z
%s%s%s %s
z%s%s%d %s %s %s
)ÚoriginÚ
relativizer éÿÿÿÿ)
Zchoose_relativityÚstrr r r Úwriter r) r( r r r Úgetvalue)r Únamer/ r0 Úoverride_rdclassÚkwZntextZpadÚsr r r
r
r r( ¯ s*
zRdataset.to_textc
C s& |dk r|}d}n| j }|jddƒ t| ƒdkr`|j|||ƒ tjd| j|ddƒ}|j|ƒ dS |rxt| ƒ} t j
| ƒ n| } xœ| D ]”}
|j|||ƒ tjd| j|| jdƒ}|j|ƒ |jƒ }|
j|||ƒ |jƒ }|| dk sât
‚|j|d ƒ tjd|| ƒ}|j|ƒ |jddƒ q‚W t| ƒS dS ) a, Convert the rdataset to wire format.
@param name: The owner name of the RRset that will be emitted
@type name: dns.name.Name object
@param file: The file to which the wire format data will be appended
@type file: file
@param compress: The compression table to use; the default is None.
@type compress: dict
@param origin: The origin to be appended to any relative names when
they are emitted. The default is None.
@returns: the number of records emitted
@rtype: int
NFr é z!HHIHr i z!H)r Úseekr Úto_wireÚstructÚpackr r3 ÚlistÚrandomZshuffler ÚtellÚAssertionError)
r r5 ÚfileÚcompressr/ r6 Zwant_shuffler ZstuffÚlr ÚstartÚendr
r
r r; â s8
zRdataset.to_wirec C s&