+
        ~                         ^ RI Ht ^RIHtHt ^RIHt ^RIHt ^RI	H
t
HtHt ]! RRR7       ! R R	]4      4       t ! R
 R]
4      t ! R R]],          4      tR# )    )	dataclass)ContextNetifcon)ContextWrapper)DiffResultDescriptor)
DifferenceDifferenceResultWrapperT)frozenorderc                   0   a  ] tR t^t o RtV 3R ltRtV tR# )ModifiedNetifconz+Difference details for a modified netifcon.c                   < V ^8  d   Qh/ S[ ;R&   S[R,          ;R&   S[R,          ;R&   S[R,          ;R&   S[R,          ;R&   # )   ruleNadded_contextremoved_contextadded_packetremoved_packet)r   r   )format__classdict__s   "</usr/lib64/python3.14/site-packages/setools/diff/netifcon.py__annotate__ModifiedNetifcon.__annotate__   sU     
 N  T>!  t^#  D.   dN"      N)__name__
__module____qualname____firstlineno____doc____annotate_func____static_attributes____classdictcell__r   s   @r   r   r      s      6  r   r   c                      a  ] tR t^t o RtV 3R lR lt]],          ! ]4      t]],          ! ]4      t	]]
,          ! ]4      tV 3R lR ltRtV tR# )NetifconsDifferencez;Determine the difference in netifcons between two policies.c                   < V ^8  d   QhRR/# r   returnNr   )r   r   s   "r   r    NetifconsDifference.__annotate__   s      b  b  br   c           
        V P                   P                  RV P                   RV P                   24       V P	                  R V P                  P                  4        4       R V P                  P                  4        4       4      w  V n        V n        p\        \        ,          ! 4       V n
        V F  w  r#\        VP                  4      \        VP                  4      8w  d   VP                  pVP                  pMRpRp\        VP                  4      \        VP                  4      8w  d   VP                  pVP                  pMRpRpV'       g   V'       g   K  V P                  P                  \        W%WGV4      4       K  	  R# )z:Generate the difference in netifcons between the policies.z%Generating netifcon differences from z to c              3   8   "   T F  p\        V4      x  K  	  R # 5iNNetifconWrapper.0ns   & r   	<genexpr>5NetifconsDifference.diff_netifcons.<locals>.<genexpr>%   s     F)EA_Q)E   c              3   8   "   T F  p\        V4      x  K  	  R # 5ir.   r/   r1   s   & r   r4   r5   &   s     G)FA_Q)Fr6   N)loginfoleft_policyright_policy	_set_diff	netifconsadded_netifconsremoved_netifconslistr   modified_netifconsr   contextpacketappend)selfmatched_netifconsleft_netifconright_netifconr   r   r   r   s   &       r   diff_netifcons"NetifconsDifference.diff_netifcons   sN    	3D4D4D3ET$J[J[I\]	_ KO..F)9)9)C)C)EFG):):)D)D)FGKIGd46G #''7"8":->)M m334~G]G]8^^"/"7"7 . 6 6"& $m223~nF[F[7\\!.!5!5-44!%#..''../?!/Q_0a b' .?r   c                   < V ^8  d   QhRR/# r)   r   )r   r   s   "r   r   r+   G   s     $ $T $r   c                H    V P                   P                  R4       V =V =V =R# )z%Reset diff results on policy changes.zResetting netifcon differencesN)r8   debugr>   r?   rA   rE   s   &r   _reset_diffNetifconsDifference._reset_diffG   s%    78 "#r   )r>   rA   r?   N)r   r   r   r    r!   rI   r   r   r>   r?   r   rA   rO   r#   r$   r%   s   @r   r'   r'      sQ     E b  bD +84^DO,X6~F-.>?O
$ $r   r'   c                   L   a  ] tR t^Ot o RtRtV 3R lR ltR tR tR t	Rt
V tR	# )
r0   z+Wrap netifcon statements for diff purposes.netifc                $   < V ^8  d   QhRS[ RR/# )r   oconr*   N)r   )r   r   s   "r   r   NetifconWrapper.__annotate__U   s      X $ r   c                T    Wn         VP                  V n        \        V4      V n        R # r.   )originrR   hashkey)rE   rT   s   &&r   __init__NetifconWrapper.__init__U   s    ZZ
:r   c                    V P                   # r.   )rY   rN   s   &r   __hash__NetifconWrapper.__hash__Z   s    xxr   c                4    V P                   VP                   8  # r.   rR   rE   others   &&r   __lt__NetifconWrapper.__lt__]   s    zzEKK''r   c                4    V P                   VP                   8H  # r.   r`   ra   s   &&r   __eq__NetifconWrapper.__eq__`   s    zzU[[((r   )rY   rR   rW   N)r   r   r   r    r!   	__slots__rZ   r]   rc   rf   r#   r$   r%   s   @r   r0   r0   O   s+     5I 
() )r   r0   N)dataclassesr   	policyrepr   r   rB   r   descriptorsr   
differencer   r	   r
   r   r'   r0   r   r   r   <module>rm      sZ   
 " ) # - = = $d##' # $#2$* 2$j)gh' )r   