A perpetrator, emboldened and protected by the anonymity of the Internet, obtains your financial and personal information by trickery or deceit and makes unauthorized purchases or requests for money you believe legitimate. +00000A o="OMRON TATEISI ELECTRONICS CO.Putting your personal information on the Internet is a recipe for a thief stealing your identity. +++ -0,0 +1,22872 list of IEEE MAC Address Block registry entries + return compact(number).upper().replace(':', '-')ĭiff -git a/stdnum/oui.dat b/stdnum/oui.dat + """Convert the MAC address to EUI-48 format.""" + return bool(validate(number, check_manufacturer=check_manufacturer)) + """Check if the number provided is a valid IBAN.""" +def is_valid(number, check_manufacturer=None): + if check_manufacturer or is_universally_administered(number): + universally administered addresses but can be explicitly set with the + The existence of the manufacturer is by default only checked for + """Check if the number provided is a valid MAC address. +def validate(number, check_manufacturer=None): + return not is_universally_administered(number) + """Check if the address is meant to be configured by an administrator.""" + """Check if the address is supposed to be assigned by the manufacturer.""" +def is_universally_administered(number): + Broadcast addresses are meant to be received by all nodes in a network.""" + """Check whether the number is the broadcast address. + Multicast addresses are meant to be received by (potentially) multiple + """Check whether the number is a multicast address. + Unicast addresses are received by one node in a network (LAN).""" + """Check whether the number is a unicast address. + """Return the IAB (individual address block) part of the address.""" + """Return the OUI (organization unique ID) part of the address.""" + number = compact(number).replace(':', '').upper() + """Look up the manufacturer in the IEEE OUI registry.""" + return ':'.join('0' + n if len(n) = 1 else n for n in number.split(':')) + """Convert the MAC address to the minimal, consistent representation.""" +device is meant as a unique identifier within a network at the data link +A media access control address (MAC address, sometimes Ethernet address) of a +"""MAC address (Media Access Control address). +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# License along with this library if not, write to the Free Software +# You should have received a copy of the GNU Lesser General Public +# Lesser General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# but WITHOUT ANY WARRANTY without even the implied warranty of +# This library is distributed in the hope that it will be useful, ![]() +# version 2.1 of the License, or (at your option) any later version. +# License as published by the Free Software Foundation either ![]() +# modify it under the terms of the GNU Lesser General Public +# This library is free software you can redistribute it and/or +++ -0,0 +1,154 mac.py - functions for handling MAC (Ethernet) addresses Lookups in the IEEE registry for manufacturer names for universallyĭiff -git a/stdnum/mac.py b/stdnum/mac.py This adds validation of MAC (Ethernet) addresses. Not appeared on any other notification email so we list those Those revisions listed above that are new to this repository have Generated because a ref change was pushed to the repository containing This is an automated email from the git hooks/post-receive script. Subject: python-stdnum branch master updated.From: Commits of the python-stdnum project.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |