Ñò î¡ßNc @ s' d Z d d k Z d d k Z d d k i Z d d k Z d d k Z d d k Z d d k l Z l Z l Z l Z l Z l Z d d k l Z l Z d d k l Z d d k l Z d d k l Z l Z d e! f d „ ƒ YZ" d e" f d „ ƒ YZ# d e" f d „ ƒ YZ$ d e" f d „ ƒ YZ% d S( s] Classes and functions for dealing with MAC addresses, EUI-48, EUI-64, OUI, IAB identifiers. iÿÿÿÿN( t NotRegisteredErrort AddrFormatErrort AddrConversionErrort Subscribert Publishert DictDotLookup( t eui48t eui64( t mac_eui48( t IPAddress( t _is_intt _is_strt BaseIdentifierc B sJ e Z d Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( s$ Base class for all IEEE identifiers.t _valuec C s d | _ d S( N( t NoneR ( t self( ( s8 /usr/lib/python2.6/site-packages/netaddr/eui/__init__.pyt __init__ s c C s | i S( s) @return: integer value of this identifier( R ( R ( ( s8 /usr/lib/python2.6/site-packages/netaddr/eui/__init__.pyt __int__# s c C s | i S( s) @return: integer value of this identifier( R ( R ( ( s8 /usr/lib/python2.6/site-packages/netaddr/eui/__init__.pyt __long__' s c C s | i d j o d Sd | i S( s8 @return: octal string representation of this identifier.i t 0s 0%o( R ( R ( ( s8 /usr/lib/python2.6/site-packages/netaddr/eui/__init__.pyt __oct__+ s c C s d | i S( s> @return: hexadecimal string representation of this identifier.s 0x%x( R ( R ( ( s8 /usr/lib/python2.6/site-packages/netaddr/eui/__init__.pyt __hex__2 s c C s | i S( sx @return: return the integer value of this identifier when passed to hex(), oct() or bin(). ( R ( R ( ( s8 /usr/lib/python2.6/site-packages/netaddr/eui/__init__.pyt __index__7 s ( s _value( t __name__t __module__t __doc__t __slots__R R R R R R ( ( ( s8 /usr/lib/python2.6/site-packages/netaddr/eui/__init__.pyR s t OUIc B sS e Z d Z d Z d „ Z d „ Z e d „ ƒ Z d d „ Z d „ Z d „ Z RS( s An individual IEEE OUI (Organisationally Unique Identifier). For online details see - U{http://standards.ieee.org/regauth/oui/} t recordsc C sN t t | ƒ i ƒ d d k l } g | _ t | t ƒ o" t | i d d ƒ d ƒ | _ n] t | ƒ o? d | j o d j n o | | _ qº t d | ƒ ‚ n t d | ƒ ‚ | i | i j om t | i ƒ } xM | i | i D]; \ } } | i | ƒ | i | ƒ } | i | | | ƒ qí W| i ƒ n t d | ƒ ‚ d S( sÓ Constructor @param oui: an OUI string C{XX-XX-XX} or an unsigned integer. Also accepts and parses full MAC/EUI-48 address strings (but not MAC/EUI-48 integers)! iÿÿÿÿ( t ieeet -t i i iÿÿÿ s" OUI int outside expected range: %rs unexpected OUI format: %rs OUI %r not registered!N( t superR R t netaddr.euiR R t isinstancet strt intt replaceR R t ValueErrort TypeErrort OUI_INDEXt opent OUI_REGISTRYt seekt readt _parse_datat closeR ( R t ouiR t fht offsett sizet data( ( s8 /usr/lib/python2.6/site-packages/netaddr/eui/__init__.pyR I s&