[PEPr] Comment on Networking::Net_CheckMAC
| From: | Stefan Neufeind | Date: | Sun, 29 Oct 2006 00:06:20 +0000 |
| Subject: | [PEPr] Comment on Networking::Net_CheckMAC | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-44788@lists.php.net to get a copy of this message | ||
Stefan Neufeind (http://pear.php.net/user/neufeind) has commented on the proposal for
Networking::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