+
    i  c                   s0    ^ RI t ^ RIHt  ! R R]4      tR# )i    N)SoSMapc                   sd   a a ] tR t^t oRtRR.tRtRtRtRt	^ t
V 3R ltV 3R	 ltR
 tRtVtV ;t# )	SoSMacMapa  Mapping store for MAC addresses

MAC addresses added to this map will be broken into two halves, vendor and
device like how MAC addresses are normally crafted. For the vendor hextets,
obfuscation will take the form of 53:4f:53, or 'SOS' in hex. The following
device hextets will be obfuscated by a series of suffixes starting from
zeroes. For example a MAC address of '60:55:cb:4b:c9:27' may be obfuscated
into '53:4f:53:00:00:1a' or similar.

This map supports both 48-bit and 64-bit MAC addresses.

48-bit address may take the form of either:

        MM:MM:MM:SS:SS:SS
        MM-MM-MM-SS-SS-SS

For 64-bit addresses, the identifier injected by IPv6 standards is
used in obfuscated returns. These addresses may take either of these forms:

    MM:MM:MM:FF:FE:SS:SS:SS
    MMMM:MMFF:FESS:SSSS

All mapped mac addresses are converted to lower case.
Dash delimited styles will be converted to colon-delimited style.
zff:ff:ff:ff:ff:ffz00:00:00:00:00:00z53:4f:53:%s:%s:%sz53:4f:53:ff:fe:%s:%s:%sz534f:53ff:fe%s:%s%sFc                   < VP                  R R4      P                  4       P                  R4      P                  4       p\        SV `  V4      # Z-Z:z=.,)replacelowerstripsuperaddselfitem	__class__   &&A/usr/lib/python3.14/site-packages/sos/cleaner/mappings/mac_map.pyr   ZSoSMacMap.add6   ?    ||C%++-33E:@@Bw{4      c                r   r   )r   r   r   r   getr	   r   r   r   ZSoSMacMap.get:   r   r   c                s@  a RoV ;P                   ^,          un         V P                   ^,	          V P                   ^,	          R,          V P                   R,          .p\        ;QJ d    . V3R lV 4       F  NK  	  5M! V3R lV 4       4      p\        P                  ! RV4      '       d   V P                  V,          # \        P                  ! RV4      '       d   V P
                  V,          # \        P                  ! RV4      '       d   V P                  V,          # R# )zFObfuscate the device hextets, and append those to our 'vendor'
hextet
Z0123456789abdcefi   c              3   sh   <"   T F'  pSV^,          ,           SV^,          ,           2x  K)  	  R# 5i)i   N )Z.0Zi	hexdigitss   & r   Z	<genexpr>Z*SoSMacMap.sanitize_item.<locals>.<genexpr>J   s5      *!(A %QU+,Yq2v->,?@!(s   /2z$(([0-9a-fA-F]{2}:){7}[0-9a-fA-F]{2})z&(([0-9a-fA-F]{4}:){3}([0-9a-fA-F]){4})z([0-9a-fA-F][:_]?){12}N)ob_hextets_cntZtuplereZmatchmac6_templatemac6_quad_templatemac_template)r
   r   Zhextetsr   s   && @r   sanitize_itemZSoSMacMap.sanitize_item>   s     '	q  2%  A%,#%

 % *!(*%% *!(* * 88:DAA%%//88<dCC**W4488,d33$$w..r   r   )Z__name__Z
__module__Z__qualname__Z__firstlineno__Z__doc__Zignore_matchesr   r   r   Zcompile_regexesr   r   r   r   Z__static_attributes__Z__classdictcell__Z__classcell__)r   Z__classdict__s   @@r   r   r      sI     6 	N
 'L-M.ON!! r   r   )r   Zsos.cleaner.mappingsr    r   r   r   r   <module>r      s    
 'F Fr   