관리-도구
편집 파일: SOA.pyo
� !`Nc @ sP d d l Z d d l Z d d l Z d d l Z d e j j f d � � YZ d S( i����Nt SOAc B s� e Z d Z d d d d d d d g Z d � Z d e d � Z d e d � Z e e � Z d d d � Z d d � Z d d � Z e e � Z d e d � Z d � Z RS( s� SOA record @ivar mname: the SOA MNAME (master name) field @type mname: dns.name.Name object @ivar rname: the SOA RNAME (responsible name) field @type rname: dns.name.Name object @ivar serial: The zone's serial number @type serial: int @ivar refresh: The zone's refresh value (in seconds) @type refresh: int @ivar retry: The zone's retry value (in seconds) @type retry: int @ivar expire: The zone's expiration value (in seconds) @type expire: int @ivar minimum: The zone's negative caching time (in seconds, called "minimum" for historical reasons) @type minimum: int @see: RFC 1035t mnamet rnamet serialt refresht retryt expiret minimumc C s\ t t | � j | | � | | _ | | _ | | _ | | _ | | _ | | _ | | _ d S( N( t superR t __init__R R R R R R R ( t selft rdclasst rdtypeR R R R R R R ( ( s9 /usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/SOA.pyR - s c K sV | j j | | � } | j j | | � } d | | | j | j | j | j | j f S( Ns %s %s %d %d %d %d %d( R t choose_relativityR R R R R R ( R t origint relativizet kwR R ( ( s9 /usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/SOA.pyt to_text8 s c C s� | j � } | j � } | j | | � } | j | | � } | j � } | j � } | j � } | j � } | j � } | j � | | | | | | | | | | � S( N( t get_nameR t get_uint32t get_ttlt get_eol( t clsR R t tokR R R R R R R R R ( ( s9 /usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/SOA.pyt from_text? s c C sj | j j | | | � | j j | | | � t j d | j | j | j | j | j � } | j | � d S( Ns !IIIII( R t to_wireR t structt packR R R R R t write( R t filet compressR t five_ints( ( s9 /usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/SOA.pyR O s c C sK | j j | � | j j | � t j d | j | j | j | j | j � S( Ns !IIIII( R t to_digestableR R R R R R R R ( R R ( ( s9 /usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/SOA.pyR V s c C s t j j | | | | � \ } } | | 7} | | 8} t j j | | | | � \ } } | | 7} | | 8} | d k r� t j j � n t j d | | | | !� } | d k r� | j | � } | j | � } n | | | | | | d | d | d | d | d � S( Ni s !IIIIIi i i i i ( t dnst namet from_wiret exceptiont FormErrorR t unpackt NoneR ( R R R t wiret currentt rdlenR R t cusedR R ( ( s9 /usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/SOA.pyR# \ s # # c C s4 | j j | | � | _ | j j | | � | _ d S( N( R R R ( R R R ( ( s9 /usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/SOA.pyR p s c C s� t | j | j � } | d k r� t | j | j � } | d k r� t j d | j | j | j | j | j � } t j d | j | j | j | j | j � } t | | � } q� n | S( Ni s !IIIII( t cmpR R R R R R R R R ( R t othert vt self_intst other_ints( ( s9 /usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/SOA.pyt _cmpt s N( t __name__t __module__t __doc__t __slots__R R'