/usr/lib/rads/venv/lib/python3.13/site-packages/netaddr/eui/__pycache__
NameSizeModeActions
ieee.cpython-313.pyc98340644editdlrm
__init__.cpython-313.pyc307040644editdlrm
Edit: /usr/lib/rads/venv/lib/python3.13/site-packages/netaddr/eui/__pycache__/ieee.cpython-313.pyc (9834B)
j#SrSSKJr SSKrSSKJr SSKJ r J r 0r 0r "SS\ 5r "SS\ 5r"S S \ 5rS rS rS rSr\S:Xa\"5 g\"5 g)z 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/ N) _open_binary) Subscriber Publisherc$\rSrSrSrSrSrSrg) FileIndexer1z A concrete Subscriber that receives OUI record offset information that is written to an index data file as a set of comma separated records. c[US5(a[US5(aXlO[US5Ul[R"URSS9Ulg)zt Constructor. :param index_file: a file-like object or name of index file where index records will be written. readlinetellw )lineterminatorN)hasattrfhopen_csvwriter)self index_files C/usr/lib/rads/venv/lib/python3.13/site-packages/netaddr/eui/ieee.py__init__FileIndexer.__init__7sF :z * *wz6/J/J G:s+DGkk$''$? c:URRU5 g)zo Receives and writes index data to a CSV data file. :param data: record containing offset record information. N)rwriterow)rdatas rupdateFileIndexer.updateEs T"r)rrN)__name__ __module__ __qualname____firstlineno____doc__rr__static_attributes__rrrr1s @#rrc2^\rSrSrSrU4SjrSrSrU=r$)OUIIndexParserNa 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 c>[[U] 5 [US5(a[US5(aXlg[ US5Ulg)z 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. r r rbN)superr'rrrrr ieee_file __class__s rrOUIIndexParser.__init__d> nd,. 9j ) )gi.H.HG9d+DGrcSnSnSnSnSnSnURR5nU(dOU(aXG;aSnU(aM:XG;aUb"URU5 URU5 [ U5nURR 5[ U5- nUR 5Sn [U RXV5S5n X/nOU[ U5- nMURU5 URU5 g) zs Starts the parsing process which detects records and notifies registered subscribers as it finds each OUI record. TNr(hex)-rF) rr appendnotifylenr splitintreplace) r skip_headerrecordsizemarkerhyphen empty_stringlineoffsetouiindexs rparseOUIIndexParser.parsess   77##%Dv~# ~%MM$'KK'4y#d)3jjl1oCKK=rBD !7<  d Frr rr r!r"r#rrEr$ __classcell__r.s@rr'r'Ns* ,,,rr'c2^\rSrSrSrU4SjrSrSrU=r$)IABIndexParsera 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 c>[[U] 5 [US5(a[US5(aXlg[ US5Ulg)z 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. r r r*N)r+rLrrrrr,s rrIABIndexParser.__init__r0rcSnSnSnSnSnSnSnURR5nU(dOU(aXH;aSnU(aM:XH;aoUb"URU5 URU5 URR 5[ U5- n UR 5Sn U n X/n[ U5nOqXX;a^U[ U5- nUSRXg5n UR 5Sn U R U5Sn [X-S 5S - US'OU[ U5- nGM!URU5 URU5 g) zs Starts the parsing process which detects records and notifies registered subscribers as it finds each IAB record. TNrr2s (base 16)r3rFr4 ) rr r5r6r r7r8r:r9)rr;r<r= hex_marker base16_markerr?r@rArB iab_prefixrDprefixsuffixs rrEIABIndexParser.parsesG   $  77##%Dz1# !%MM$'KK'#d)3!ZZ\!_ "4y&D !**6@af-a0 "5"<q D !CH  d FrrGrHrJs@rrLrLs* ,33rrLchU"U5nUR[U55 UR5 g)z4Generate an index files from the IEEE registry file.N)attachrrE) registry_fh index_pathparser oui_parsers rcreate_index_from_registryr^s+ $Jk*-.rc[[R"[R"[5S5[R"[R"[5S5[ 5 [[R"[R"[5S5[R"[R"[5S5[ 5 g)z1Create indices for OUI and IAB file based lookupszoui.txtoui.idxziab.txtiab.idxN)r^_pathjoindirname__file__r'rLr%rrcreate_indicesrfsv 5==*I6 5==*I6  5==*I6 5==*I6rcf[R"UVs/sHo"RS5PM sn5HHnUVs/sHn[U5PM snupVnUR U/5 XR Xg45 MJ UR 5 gs snfs snf!UR 5 f=f)z/Load index from file into index data structure.zUTF-8N)rreaderdecoder9 setdefaultr5close)rDfpxrow_keyrBr=s r load_indexrqs;;2>2a 12>?C36"73a3q63"7 S$   S" % J  vn -@  ?"7  s&BBBB0B BB0c|[[[[S55 [[[[S55 g)z+Load OUI and IAB lookup indices into memoryr`raN)rq OUI_INDEXr __package__ IAB_INDEXr%rr load_indicesrvs$y,{I>?y,{I>?r__main__)r#os.pathpathrbcsvrnetaddr.compatr netaddr.corerrrsrurr'rLr^rfrqrvrr%rrr}s|4'.    #*#:QYQhXYXv @  zNr