Path: utzoo!news-server.csri.toronto.edu!rutgers!usc!samsung!uunet!europa.asd.contel.com!sura.net!haven!cs.wvu.wvnet.edu!cerc.wvu.wvnet.edu!cathedral!taku From: taku@cathedral.cerc.wvu.wvnet.edu (Takumei So) Newsgroups: comp.unix.questions Subject: HELP! How do I get local ethernet address on a SGI machine? Keywords: ethernet, raw socket, snoop, Silicon Graphics, SGI Message-ID: <1406@babcock.cerc.wvu.wvnet.edu> Date: 5 Mar 91 19:42:54 GMT Sender: news@cerc.wvu.wvnet.edu Distribution: usa Lines: 32 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@cerc.wvu.wvnet.edu CB700SC / DOD# 0052 / AMA# 580735 Concurrent Engineering Research Center Morgantown, WV 26505