3 ¢báW ã @ s@ d Z dZG dd„ deƒZG dd„ deƒZi Zdd„ Zdd „ Zd S )zEDNS Optionsé c @ sd e Zd ZdZdd„ Zdd„ Zedd„ ƒZdd „ Zd d„ Z dd „ Z dd„ Zdd„ Zdd„ Z dd„ ZdS )ÚOptionz*Base class for all EDNS option types. c C s || _ dS )z\Initialize an option. @param otype: The rdata type @type otype: int N)Úotype)Úselfr © r ú/usr/lib/python3.6/edns.pyÚ__init__ s zOption.__init__c C s t ‚dS )z*Convert an option to wire format. N)ÚNotImplementedError)r Úfiler r r Úto_wire! s zOption.to_wirec C s t ‚dS )a™ Build an EDNS option object from wire format @param otype: The option type @type otype: int @param wire: The wire-format message @type wire: string @param current: The offset in wire of the beginning of the rdata. @type current: int @param olen: The length of the wire-format option data @type olen: int @rtype: dns.edns.Option instanceN)r )Úclsr ÚwireÚcurrentÚolenr r r Ú from_wire&