|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /proc/self/root/lib/python2.7/site-packages/netaddr/eui/ |
Upload File : |
�
o�\c @ sF d Z d d l j Z d d l Z d d l m Z d d l m Z m
Z
e j e j e
� d � Z e j e j e
� d � Z i Z e j e j e
� d � Z e j e j e
� d � Z i Z d e f d
� � YZ d e
f d � � YZ d
e
f d � � YZ d � Z d � Z d � Z d � Z e d k r;e � n e � d S( 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 _bytes_type( t
Subscribert Publishers oui.txts oui.idxs iab.txts iab.idxt FileIndexerc B s e Z d Z d � Z d � Z RS( 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.
c C s[ t | d � r* t | d � r* | | _ n t | d � | _ t j | j d d �| _ d S( s�
Constructor.
:param index_file: a file-like object or name of index file where
index records will be written.
t readlinet tellt wt lineterminators
N( t hasattrt fht opent _csvt writer( t selft
index_file( ( s3 /tmp/pip-install-zM1pc4/netaddr/netaddr/eui/ieee.pyt __init__A s c C s | j j | � d S( s�
Receives and writes index data to a CSV data file.
:param data: record containing offset record information.
N( R t writerow( R
t data( ( s3 /tmp/pip-install-zM1pc4/netaddr/netaddr/eui/ieee.pyt updateO s ( t __name__t
__module__t __doc__R R ( ( ( s3 /tmp/pip-install-zM1pc4/netaddr/netaddr/eui/ieee.pyR <