home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!hal.com!decwrl!deccrl!news.crl.dec.com!pa.dec.com!decuac!hussar.dco.dec.com!mjr
- From: mjr@hussar.dco.dec.com (Marcus J. Ranum)
- Newsgroups: comp.unix.ultrix
- Subject: Re: Ethernet Interface hardware address
- Message-ID: <1992Aug26.023124.1074@decuac.dec.com>
- Date: 26 Aug 92 02:31:24 GMT
- References: <1992Aug20.180136.19653@draco.macsch.com> <N0LPBX5C@cc.swarthmore.edu>
- Sender: news@decuac.dec.com (USENET News System)
- Organization: Digital Equipment Corporation, Washington ULTRIX Resource Center
- Lines: 10
- Nntp-Posting-Host: hussar.dco.dec.com
-
- >> Is there a simple command to get the ethernet hardware address?
-
- arp from another machine. ;)
-
- There's also an ioctl that can be used to get the physical address:
-
- struct ifdevea hw_addr;
- if (ioctl(s, SIOCRPHYSADDR, (caddr_t) &hw_addr) < 0) {
-
- mjr.
-