관리-도구
편집 파일: ipv6_parser.cpython-39.opt-1.pyc
a ����-�_g ����������������������@���s,���d�dl�mZ�d�dlmZ�G�dd��de�ZdS�)�����)�SoSCleanerParser)� SoSIPv6Mapc�����������������������sF���e�Zd�ZdZdZdZdgZddgZdZg�f��fdd � Z d d��Z ���ZS�)� SoSIPv6Parserz/Parser for handling IPv6 networks and addresseszIPv6 ParserZipv6_mapz�(?<![:\\.\\-a-z0-9])((([0-9a-f]{1,4})(:[0-9a-f]{1,4}){7})|(([0-9a-f]{1,4}(:[0-9a-f]{0,4}){0,5}))([^.])::(([0-9a-f]{1,4}(:[0-9a-f]{1,4}){0,5})?))(/\d{1,3})?(?![:\\a-z0-9])zetc/dnsmasq.conf.*z.*modinfo.*Fc��������������������s���t���|�_t���||��d�S�)N)r����mapping�super�__init__)�selfZconfigZskip_cleaning_files�� __class__���C/usr/lib/python3.9/site-packages/sos/cleaner/parsers/ipv6_parser.pyr���&���s����zSoSIPv6Parser.__init__c�����������������C���sj���|�j�ji�d�}|�j�j���D�]J\}}|ji�d�|d�|j<�|jD�]$}|j|�}||d�|j�d�|<�q>q|S�)zsStructure the dataset contents properly so that they can be reloaded on subsequent runs correctly. )�version�networks)Z obfuscated�hostsr���r���)r���r ���r����itemsZobfuscated_addressZoriginal_addressr���)r���Z_d�_Z_net�hostZ_ob_hostr���r���r����get_map_contents*���s������ zSoSIPv6Parser.get_map_contents)�__name__� __module__�__qualname__�__doc__�nameZmap_file_keyZregex_patternsZparser_skip_filesZcompile_regexesr���r���� __classcell__r���r���r ���r���r������s��� � �r���N)Zsos.cleaner.parsersr���Zsos.cleaner.mappings.ipv6_mapr���r���r���r���r���r����<module>���s���