ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pear-dev
pear-dev
[PEAR-DEV] [PEPr] Comment on Networking::Net_CheckMAC
by Stefan Neufeind other posts by this author
Oct 28 2006 5:06PM messages near this date
[PEAR-DEV] [PEPr] Changes in proposal for Networking::Net_CheckMAC | [PEAR-DEV] [PEPr] Comment on Networking::Net_CheckMAC
Stefan Neufeind (http://pear.php.net/user/neufeind) has commented on the proposal for Networ
king::Net_CheckMAC.

Comment:

I agree with Arnaud that a pure check-function might be good to have in
Validate. However I don't see how a format-function could fit there.

Maybe a more general package Net_MAC might make sense that provides
several things? What I could imagine (though sure still more exists) would
be:
- checking of mac in common formats (true/false)
- formating of mac in any format to another (01-23-45-67-89-ab,
01:23:45:67:89:ab, 0123.4567.89ab) - though I'm still unsure how to
call/classify these formatings
- maybe something like isGlobalUnique(), isUnicast() etc.? (see
Wikipedia-URL)
- converting from MAC-48 to EUI-64 and back
- getManufacturer() might be useful to get the manuf.-name - but e.g. the
list from Wireshark is about 530kb large :-( maybe allow pointing that
function to a separately downloadable datafile?

Note that we're maybe talking about Ethernet MAC-addresses so far (MAC-48
or EUI-48) - but also EUI-64 exists (e.g. for Firewire or in
IPv6-addresses).

see:
http://en.wikipedia.org/wiki/MAC_address
http://anonsvn.wireshark.org/wireshark/trunk/manuf

Proposal information:
http://pear.php.net/pepr/pepr-proposal-show.php?id=454

-- 
Sent by PEPr, the automatic proposal system at http://pear.php.net

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Andrew Teixeira
Greg Beaver
Andrew Teixeira
Justin Patrin
Christian Weiske
Andrew Teixeira
Andrew Teixeira
Arnaud Limbourg
Justin Patrin
Andrew Teixeira
Andrew Teixeira
Andrew Teixeira
Stefan Neufeind
Arnaud Limbourg
Justin Patrin
Graham Christensen

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved