HELP! How do I get local ethernet address on a SGI machine?

Takumei So taku at cathedral.cerc.wvu.wvnet.edu
Wed Mar 6 05:42:54 AEST 1991


     Could someone tell me how to (i.e., what function/system call
to use to) get a local ethernet address of a Silicon Graphics host
in a LAN?
                                                        
     I am writing a network traffic monitor for SGI machines which
captures all ethernet traffic destined for the local machine running
the program.  To do this on SGI machines, I am using a filter
available with SNOOP protocol and RAW socket, by setting an
appropriate field for destination address with the local ethernet
address.
                                                             
     Right now, I am hardcoding the ethernet address in the program
and testing it on a particular SGI machine.  But I would like to be able
to run it on any SGI machine and capture any ethernet traffic destined
for the local machine.  Hence the question: How do I get the local
ethernet address of an SGI machine?.

     The SGI machines are running IRIX System V Release 3.3.1.  I looked
into man pages and available SGI manuals here, but I can't seem to find
exactly how.  Please e-mail your reply, and I will summarize them for
posting.  Thanks much in advance.


-Taku

--
Taku So    
taku at cerc.wvu.wvnet.edu
CB700SC / DOD# 0052 / AMA# 580735
Concurrent Engineering Research Center
Morgantown, WV  26505



More information about the Comp.unix.questions mailing list