Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!EU.net!Germany.EU.net!nntp.gmd.de!urmel.informatik.rwth-aachen.de!acds.physik.rwth-aachen.de!kuku From: kuku@acds.physik.rwth-aachen.de (Christoph Kukulies) Newsgroups: comp.os.386bsd.questions Subject: finding out about enetaddr Date: 2 Sep 1994 08:55:50 GMT Organization: Rechnerbetrieb Informatik - RWTH Aachen Lines: 11 Message-ID: <346pan$84h@urmel.informatik.rwth-aachen.de> NNTP-Posting-Host: acds.physik.rwth-aachen.de Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Newsreader: TIN [version 1.2 PL2] Does anyone have an idea how to niceley extract the ethernet address of a given interface out of the kernel? I want to do it from within a running user program (doing a grep through dmesg is not what I want). I looked through the driver and found some arpcom structure but I have no idea how to access it from the kernel symbol table. Could it be done using nlist()? -- --Chris Christoph P. U. Kukulies kuku@acds.physik.rwth-aachen.de FreeBSD 1.1.0(Current) (GILSYSCONS) #12: Fri Jun 3 13:36:12 MET DST 1994