home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / ultrix / 6490 < prev    next >
Encoding:
Internet Message Format  |  1992-08-25  |  827 b 

  1. Path: sparky!uunet!olivea!hal.com!decwrl!deccrl!news.crl.dec.com!pa.dec.com!decuac!hussar.dco.dec.com!mjr
  2. From: mjr@hussar.dco.dec.com (Marcus J. Ranum)
  3. Newsgroups: comp.unix.ultrix
  4. Subject: Re: Ethernet Interface hardware address
  5. Message-ID: <1992Aug26.023124.1074@decuac.dec.com>
  6. Date: 26 Aug 92 02:31:24 GMT
  7. References: <1992Aug20.180136.19653@draco.macsch.com> <N0LPBX5C@cc.swarthmore.edu>
  8. Sender: news@decuac.dec.com (USENET News System)
  9. Organization: Digital Equipment Corporation, Washington ULTRIX Resource Center
  10. Lines: 10
  11. Nntp-Posting-Host: hussar.dco.dec.com
  12.  
  13. >> Is there a simple command to get the ethernet hardware address?
  14.  
  15.     arp from another machine. ;)
  16.  
  17.     There's also an ioctl that can be used to get the physical address:
  18.  
  19.     struct ifdevea hw_addr;
  20.     if (ioctl(s, SIOCRPHYSADDR, (caddr_t) &hw_addr) < 0) {
  21.  
  22. mjr.
  23.