How do I find out my Ethernet address?

Bob Weissman bob at omni.com
Sat May 5 03:51:38 AEST 1990


Hmm, SunOS 4.0.3 provides the helpful functions

     ether_hostton(hostname, e)
	   char *hostname;
	   struct ether_addr *e;

     ether_ntohost(hostname, e)
          char *hostname;
          struct ether_addr *e;

where netinet/if_ether.h defines

	struct ether_addr {
		u_char  ether_addr_octet[6];
	};

This is described on the ethers(3N) man page.

Is SunOS the only flavor of Unix which has this?

-- 
Bob Weissman
Internet:	bob at omni.com
UUCP:		...!{apple,pyramid,sgi,tekbspa,uunet}!omni!bob



More information about the Comp.unix.questions mailing list