Determining Ethernet HW Address

Randall Hopper aa8vb at yahoo.com
Thu Mar 30 13:53:35 CEST 2000


pehr anderson:
 |David Arnold wrote:
 |> this is a pretty common question.  is it worth adding this to the os
 |> module for 1.6?  or maybe a different module?
 |> 
 |> it could be useful to have mappings between IP and MAC addresses too?
 |
 |I would *really* appreciate this feature being added to the 'os' module.
 |This is really important for a lot of everyday, practical applications.

If it could be cross-platform and generic, cool.  In other words, handles
multiple network cards (potentially multiple MAC addresses) per box,
handles IPv6 stacks (long IPs), handles boxes running non-IP stacks such as
ATM, deals with boxes that store the MAC address in NVRAM and share it for
all network interfaces ...except for FDDI (Sun), etc.

Given the varied ways of obtaining this information on differenet
platforms, this sounds like a maintenance nightmare just waiting to happen.

Even then, a problem is that on some boxes you can't determine the MAC
addresses without root priviledge and/or having pre-configured your OS a
certain way (e.g. built your kernel to enable specific networking options).

-- 
Randall Hopper
aa8vb at yahoo.com




More information about the Python-list mailing list