HEX
Server: LiteSpeed
System: Linux node612.namehero.net 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: dfwparty (1186)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/sos/cleaner/parsers/__pycache__/ipv6_parser.cpython-36.pyc
3

ܓ�i7	�@s,ddlmZddlmZGdd�de�ZdS)�)�SoSCleanerParser)�
SoSIPv6MapcsFeZdZdZdZdZdgZddgZdZgf�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]|:[a-z0-9]))zetc/dnsmasq.conf.*z.*modinfo.*Fcst|�|_t�j||�dS)N)r�mapping�super�__init__)�self�configZworkdirZskip_cleaning_files)�	__class__��!/usr/lib/python3.6/ipv6_parser.pyr&s
zSoSIPv6Parser.__init__cCsr|jjid�}x^|jjj�D]N\}}|jid�|d|j<x.|jD]$}|j|}||d|jd|<qBWqW|S)zsStructure the dataset contents properly so that they can be reloaded
        on subsequent runs correctly.
        )�version�networks)Z
obfuscated�hostsrr)rr
r�itemsZobfuscated_addressZoriginal_addressr)rZ_d�_Z_net�hostZ_ob_hostrrr�get_map_contents*s
zSoSIPv6Parser.get_map_contents)�__name__�
__module__�__qualname__�__doc__�nameZmap_file_keyZregex_patternsZparser_skip_filesZcompile_regexesrr�
__classcell__rr)r
rrs	rN)Zsos.cleaner.parsersrZsos.cleaner.mappings.ipv6_maprrrrrr�<module>s