/usr/lib/python2.6/site-packages/netaddr/eui
NameSizeModeActions
iab.idx922300644editdlrm
iab.txt7272400644editdlrm
ieee.py90610755editdlrm
ieee.pyc78660644editdlrm
oui.idx3763620644editdlrm
oui.txt35230570644editdlrm
__init__.py249390644editdlrm
__init__.pyc264790644editdlrm
Edit: /usr/lib/python2.6/site-packages/netaddr/eui/ieee.pyc (7866B)
Ñò }DVc@s&dZddkiZddkZddklZlZei ei e ƒdƒZ ei ei e ƒdƒZ hZei ei e ƒdƒZei ei e ƒdƒZhZdefd „ƒYZd efd „ƒYZd efd „ƒYZd„Zd„Zedjo eƒneƒdS(sý Provides access to public OUI and IAB registration data published by the IEEE. More details can be found at the following URLs :- - IEEE Home Page - http://www.ieee.org/ - Registration Authority Home Page - http://standards.ieee.org/regauth/ iÿÿÿÿN(t Subscribert Publishersoui.txtsoui.idxsiab.txtsiab.idxt FileIndexercBs eZdZd„Zd„ZRS(sš A concrete Subscriber that receives OUI record offset information that is written to an index data file as a set of comma separated records. cCs^t|dƒot|dƒo ||_nt|dƒ|_ti|iddƒ|_dS(s” Constructor. :param index_file: a file-like object or name of index file where index records will be written. treadlinettelltwtlineterminators N(thasattrtfhtopent_csvtwriter(tselft index_file((s1/tmp/pip-build-lt8jXN/netaddr/netaddr/eui/ieee.pyt__init__@s  cCs|ii|ƒdS(s‡ Receives and writes index data to a CSV data file. :param data: record containing offset record information. N(R twriterow(R tdata((s1/tmp/pip-build-lt8jXN/netaddr/netaddr/eui/ieee.pytupdateNs(t__name__t __module__t__doc__RR(((s1/tmp/pip-build-lt8jXN/netaddr/netaddr/eui/ieee.pyR;s tOUIIndexParsercBs eZdZd„Zd„ZRS(sÞ A concrete Publisher that parses OUI (Organisationally Unique Identifier) records from IEEE text-based registration files It notifies registered Subscribers as each record is encountered, passing on the record's position relative to the start of the file (offset) and the size of the record (in bytes). The file processed by this parser is available online from this URL :- - http://standards.ieee.org/regauth/oui/oui.txt This is a sample of the record structure expected:: 00-CA-FE (hex) ACME CORPORATION 00CAFE (base 16) ACME CORPORATION 1 MAIN STREET SPRINGFIELD UNITED STATES cCsStt|ƒiƒt|dƒot|dƒo ||_nt|ƒ|_dS(só Constructor. :param ieee_file: a file-like object or name of file containing OUI records. When using a file-like object always open it in binary mode otherwise offsets will probably misbehave. RRN(tsuperRRRRR (R t ieee_file((s1/tmp/pip-build-lt8jXN/netaddr/netaddr/eui/ieee.pyRls  cCs.t}d}d}xûtoó|iiƒ}|pPn|od|jo t}n|oqnd|jo‹|dj o|i|ƒ|i|ƒnt|ƒ}|iiƒt|ƒ}|i ƒd}t |i ddƒdƒ}||g}q|t|ƒ7}qW|i|ƒ|i|ƒdS(s‹ Starts the parsing process which detects records and notifies registered subscribers as it finds each OUI record. is(hex)t-tiN( tTruetNoneRRtFalsetappendtnotifytlenRtsplittinttreplace(R t skip_headertrecordtsizetlinetoffsettouitindex((s1/tmp/pip-build-lt8jXN/netaddr/netaddr/eui/ieee.pytparse{s0      (RRRRR*(((s1/tmp/pip-build-lt8jXN/netaddr/netaddr/eui/ieee.pyRWs tIABIndexParsercBs eZdZd„Zd„ZRS(sÛ A concrete Publisher that parses IAB (Individual Address Block) records from IEEE text-based registration files It notifies registered Subscribers as each record is encountered, passing on the record's position relative to the start of the file (offset) and the size of the record (in bytes). The file processed by this parser is available online from this URL :- - http://standards.ieee.org/regauth/oui/iab.txt This is a sample of the record structure expected:: 00-50-C2 (hex) ACME CORPORATION ABC000-ABCFFF (base 16) ACME CORPORATION 1 MAIN STREET SPRINGFIELD UNITED STATES cCsStt|ƒiƒt|dƒot|dƒo ||_nt|ƒ|_dS(só Constructor. :param ieee_file: a file-like object or name of file containing IAB records. When using a file-like object always open it in binary mode otherwise offsets will probably misbehave. RRN(RR+RRRR (R R((s1/tmp/pip-build-lt8jXN/netaddr/netaddr/eui/ieee.pyR»s  c CsŽt}d}d}x[toS|iiƒ}|pPn|od|jo t}n|oqnd|jov|dj o|i|ƒ|i|ƒn|iiƒt|ƒ}|i ƒd}|}||g}t|ƒ}qd|joh|t|ƒ7}|di ddƒ}|i ƒd} | i dƒd} t || dƒd?|d!s" OT