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
bW: @ s d Z ddlmZ ddlZddlZddlZddlZddlZddl Zddl
ZddlZddlm
Z
mZmZ dZefddZdZefd d
ZedZdd
Zdd ZG dd deZG dd deZi ZdZdd ZdddZdddZdS )a DNS rdata.
@var _rdata_modules: A dictionary mapping a (rdclass, rdtype) tuple to
the module which implements that type.
@type _rdata_modules: dict
@var _module_prefix: The prefix to use when forming modules names. The
default is 'dns.rdtypes'. Changing this value will break the library.
@type _module_prefix: string
@var _hex_chunk: At most this many octets that will be represented in each
chunk of hexstring that _hexify() produces before whitespace occurs.
@type _hex_chunk: int )BytesION )xrangestring_types text_type c s4 t j| dj fddtdt D j S )a Convert a binary string into its hex encoding, broken up into chunks
of I{chunksize} characters separated by a space.
@param data: the binary string
@type data: string
@param chunksize: the chunk size. Default is L{dns.rdata._hex_chunksize}
@rtype: string
c s g | ]}|| qS r ).0i) chunksizeliner /usr/lib/python3.6/rdata.py
6 s z_hexify..r )binasciiZhexlifyjoinrangelendecode)datar r )r r
r _hexify+ s
r c s4 t j| dj fddtdt D j S )a$ Convert a binary string into its base64 encoding, broken up into chunks
of I{chunksize} characters separated by a space.
@param data: the binary string
@type data: string
@param chunksize: the chunk size. Default is
L{dns.rdata._base64_chunksize}
@rtype: string
r c s g | ]}|| qS r r )r
r )r r
r r r I s z_base64ify..r )base64Z b64encoder r r r )r r r )r r
r
_base64ify= s
r s "\c C s~ t | tr| j } t | ts$t| } d}xP| D ]H}|tkrL|dt| 7 }q.|dkrj|dk rj|t|7 }q.|d| 7 }q.W |S )zEscape the characters in a quoted string which need it.
@param qstring: the string
@type qstring: string
@returns: the escaped string
@rtype: string
\r z\%03d)
isinstancer encode bytearray __escapedchr)Zqstringtextcr r r _escapifyO s
r# c C sF x8t t| d ddD ] }| | dkr| d|d S qW | dd S )zDetermine the index of greatest byte that isn't all zeros, and
return the bitmap that contains all the bytes less than that index.
@param what: a string of octets representing a bitmap.
@type what: string
@rtype: string
r r r$ )r r )Zwhatr r r r _truncate_bitmaph s r% c @ s e Zd ZdZddgZdd Zdd Zdd Zd.dd
Zd/ddZ d0ddZ
dd Zdd Zdd Z
dd Zdd Zdd Zdd Zd d! Zd"d# Zd$d% Zd&d' Zed1d(d)Zed2d*d+Zd3d,d-Zd
S )4Rdataz(Base class for all DNS rdata types.
rdclassrdtypec C s || _ || _dS )zInitialize an rdata.
@param rdclass: The rdata class
@type rdclass: int
@param rdtype: The rdata type
@type rdtype: int
N)r' r( )selfr' r( r r r __init__~ s zRdata.__init__c C s t jjS )a_ DNS SIG/RRSIG rdatas apply to a specific type; this type is
returned by the covers() function. If the rdata type is not
SIG or RRSIG, dns.rdatatype.NONE is returned. This is useful when
creating rdatasets, allowing the rdataset to contain only RRSIGs
of a particular type, e.g. RRSIG(NS).
@rtype: int
)dns rdatatypeNONE)r) r r r covers s zRdata.coversc C s | j d> | jB S )zReturn a 32-bit type value, the least significant 16 bits of
which are the ordinary DNS type, and the upper 16 bits of which are
the "covered" type, if any.
@rtype: int
)r. r( )r) r r r extended_rdatatype s zRdata.extended_rdatatypeNTc K s t dS )z@Convert an rdata to text format.
@rtype: string
N)NotImplementedError)r) origin
relativizekwr r r to_text s z
Rdata.to_textc C s t dS )z@Convert an rdata to wire format.
@rtype: string
N)r1 )r) filecompressr2 r r r to_wire s z
Rdata.to_wirec C s t }| j|d| |j S )zlConvert rdata to a format suitable for digesting in hashes. This
is also the DNSSEC canonical form.N)r r8 getvalue)r) r2 fr r r
to_digestable s zRdata.to_digestablec C s t jj| j| j| j dS )zCheck that the current contents of the rdata's fields are
valid. If you change an rdata by assigning to its fields,
it is a good idea to call validate() when you are done making
changes.
N)r+ rdata from_textr' r( r5 )r) r r r validate s zRdata.validatec C sf | j }|tjjkrd}ndtjj| d }dtjj| j d tjj| j | d t| d S )Nr ()z) r. r+ r, r- r5
rdataclassr' r( str)r) r. Zctextr r r __repr__ s
zRdata.__repr__c C s | j S )N)r5 )r) r r r __str__ s z
Rdata.__str__c C s8 | j tjj}|j tjj}||kr(dS ||kr4dS dS )zCompare an rdata with another rdata of the same rdtype and
rdclass. Return < 0 if self < other in the DNSSEC ordering,
0 if self == other, and > 0 if self > other.
r r r$ )r; r+ nameroot)r) otherZourZtheirr r r _cmp s z
Rdata._cmpc C s8 t |tsdS | j|jks&| j|jkr*dS | j|dkS )NFr )r r&