macgetaddr
Get the ethernet MAC address for an adaptor from the device file.
- Contributed by
- Larry Philps
- Obtained from
- I wrote it.
- Restrictions
- None.
- Description
-
Run this program to extract the ethernet address of a network card from
the driver.
- Productivity
- Amazing how often you want to know this.
- Safety
- Very safe, check out the 10 lines of code.
- Work Planned
- None
- Verification
- ./macgetaddr /dev/wdn0 (or whatever your network adapter name is).
It should print the ethernet address of you card.