Path: utzoo!attcan!uunet!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!math.lsa.umich.edu!math.lsa.umich.edu!emv From: valid!boris!phil@sun.com (Phil Thomas) Newsgroups: comp.archives Subject: [sun-spots] geteaddr.c Keywords: Source Message-ID: <1990Aug13.175653.14329@math.lsa.umich.edu> Date: 13 Aug 90 17:56:53 GMT Sender: emv@math.lsa.umich.edu (Edward Vielmetti) Reply-To: valid!boris!phil@sun.com (Phil Thomas) Followup-To: comp.sys.sun Organization: University of Michigan, Department of Mathematics Lines: 25 Approved: emv@math.lsa.umich.edu (Edward Vielmetti) X-Original-Newsgroups: comp.sys.sun Archive-name: sun-geteaddr/09-Aug-90 Original-posting-by: valid!boris!phil@sun.com (Phil Thomas) Original-subject: geteaddr.c Archive-site: titan.rice.edu [128.42.1.30] Archive-directory: /sun-source Reposted-by: emv@math.lsa.umich.edu (Edward Vielmetti) * There has been some discussion about how to retrieve the Ethernet * address of a Sun workstation. Here is a program to do this. Please * note that this program must be run as root or installed as a setuid * root executable since it must read /dev/nit. This command also works * on Solbourne workstations. * * With SunOS4.1 the -a option to the command "ifconfig" will also * print the Ethernet address (if it is run by root). [[Ed's Note: Placed in archives on titan. -bdg]] FTP: Hostname : titan.rice.edu (128.42.1.30) Directory: sun-source Filename : geteaddr.c Filesize : 2542 bytes Archive Server Address: archive-server@rice.edu Archive Server Command: send sun-source geteaddr.c