U •v«`Õã@sNdZddlmZddlmZddlmZGdd„dejƒZdd „Zd d „Z d S) zSpanning Tree Protocol.é)Úprint_function)Úabsolute_importé)Údpktc@s|eZdZdZdZedd„ƒZejdd„ƒZedd„ƒZejdd„ƒZed d „ƒZ e jd d „ƒZ ed d „ƒZ e jdd „ƒZ dS)ÚSTPzŠSpanning Tree Protocol. TODO: Longer class information.... Attributes: __hdr__: Header fields of STP. TODO. ) )Úproto_idÚHr)ÚvÚBr)Útyper r)Úflagsr r)Zroot_idÚ8só)Ú root_pathÚIr)Z bridge_idr r)Úport_idrr)Ú_agerr)Ú_max_agerr)Ú_hellorr)Ú_fdrrcCs |jd?S©Né©r©Úself©rú`/private/var/folders/0j/yyfkg7712236ncpm167bvylc27vst9/T/pip-unpacked-wheel-y9gppv54/dpkt/stp.pyÚage#szSTP.agecCs|d>|_dSrr)rrrrrr'scCs |jd?Sr©rrrrrÚmax_age+sz STP.max_agecCs|d>|_dSrr)rrrrrr/scCs |jd?Sr©rrrrrÚhello3sz STP.hellocCs|d>|_dSrr )rr!rrrr!7scCs |jd?Sr©rrrrrÚfd;szSTP.fdcCs|d>|_dSrr")rr#rrrr#?sN) Ú__name__Ú __module__Ú __qualname__Ú__doc__Z__hdr__ÚpropertyrÚsetterrr!r#rrrrr s$        rcCs’d}t|ƒ}|jdkst‚|jdks(t‚|jdks6t‚|jdksDt‚|jdksRt‚|jdks`t‚t|ƒ|kspt‚d|_|  ¡dd…d ksŽt‚dS) Ns+>€'­£A€'­£A€ri€éééédéþÿÿÿsd) rrÚAssertionErrorrrrr!r#ÚbytesZpack_hdr)ÚbufÚstprrrÚtest_stpDsr3cCsFtƒ}d|_|jdkst‚d|_|jdks.t‚d|_|jdksBt‚dS)Né r*iÒ)rrr/rr!)r2rrrÚtest_propertiesVsr5N) r'Ú __future__rrÚrZPacketrr3r5rrrrÚs    :