ÿØÿà JFIF      ÿÛ „ 	 ( %!1!%)+//.383,7(-.+



-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ  ¥2" ÿÄ               ÿÄ J  	     ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ              ÿÄ *        !1AQa‘"2q3±ð#b¡ÿÚ   ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁT­ÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßw­pŽF|È¥ù®häðÍÑ¶¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
..............................................................................................................................................................................
.............................................................................                                                  
                                                                                                                                                                                     ÿØÿà JFIF      ÿÛ „ 	 ( %!1!%)+//.383,7(-.+



-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ  ¥2" ÿÄ               ÿÄ J  	     ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ              ÿÄ *        !1AQa‘"2q3±ð#b¡ÿÚ   ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁT­ÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßw­pŽF|È¥ù®häðÍÑ¶¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
..............................................................................................................................................................................
.............................................................................                                                  
                                                                                                                                                                                     3
bW                  @   s   d Z ddlZddlmZ dZdZdZdZdZ	dZ
d	Zd
ZdZdZdZdZeeeee	e
eeeeeedZedd ej D ZG dd dejjZdd Zdd Zdd Zdd ZdS )zDNS Result Codes.    N   )long                     	   
      )NOERRORFORMERRSERVFAILNXDOMAINNOTIMPREFUSEDYXDOMAINYXRRSETNXRRSETNOTAUTHNOTZONEBADVERSc             c   s   | ]\}}||fV  qd S )N ).0xyr   r   /usr/lib/python3.6/rcode.py	<genexpr>6   s    r   c               @   s   e Zd ZdZdS )UnknownRcodezA DNS rcode is unknown.N)__name__
__module____qualname____doc__r   r   r   r   r    9   s   r    c             C   sB   | j  r$t| }|dkr$|dkr$|S tj| j }|dkr>t|S )zConvert text into an rcode.

    @param text: the textual rcode
    @type text: string
    @raises UnknownRcode: the rcode is unknown
    @rtype: int
    r   i  N)isdigitint_by_textgetupperr    )textvr   r   r   	from_text>   s    	r,   c             C   s0   | d@ |d? d@ B }|dk s$|dkr,t d|S )zReturn the rcode value encoded by flags and ednsflags.

    @param flags: the DNS flags
    @type flags: int
    @param ednsflags: the EDNS flags
    @type ednsflags: int
    @raises ValueError: rcode is < 0 or > 4095
    @rtype: int
          i  r   i  zrcode must be >= 0 and <= 4095)
ValueError)flagsZ	ednsflagsvaluer   r   r   
from_flagsQ   s    r2   c             C   s8   | dk s| dkrt d| d@ }t| d@ d> }||fS )zReturn a (flags, ednsflags) tuple which encodes the rcode.

    @param value: the rcode
    @type value: int
    @raises ValueError: rcode is < 0 or > 4095
    @rtype: (int, int) tuple
    r   i  zrcode must be >= 0 and <= 4095r-   i  r.   )r/   r   )r1   r+   Zevr   r   r   to_flagsb   s
    	r3   c             C   s   t j| }|dkrt| }|S )zbConvert rcode into text.

    @param value: the rcode
    @type value: int
    @rtype: string
    N)	_by_valuer(   str)r1   r*   r   r   r   to_textr   s    
r6   )r$   Zdns.exceptionZdnsZ_compatr   r   r   r   r   r   r   r   r   r   r   r   r   r'   dictitemsr4   Z	exceptionZDNSExceptionr    r,   r2   r3   r6   r   r   r   r   <module>   s@   