Return to BSD News archive
Newsgroups: comp.unix.questions,comp.unix.bsd,comp.unix.internals,comp.sys.sun.apps,alt.unix.wizards,can.sun-stroke,alt.sys.sun Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.cis.okstate.edu!news.ksu.ksu.edu!news.physics.uiowa.edu!math.ohio-state.edu!howland.reston.ans.net!swrinde!newsfeed.internetmci.com!news.duc.auburn.edu!doug From: doug@eng.auburn.edu (Doug Hughes) Subject: Re: Interface MAC address SunOS 4.1.3 Message-ID: <DoC1x4.A7x@mail.auburn.edu> Followup-To: comp.unix.questions,comp.unix.bsd,comp.unix.internals,comp.sys.sun.apps,alt.unix.wizards,can.sun-stroke,alt.sys.sun Sender: usenet@mail.auburn.edu (Usenet Administrator) Nntp-Posting-Host: netman.eng.auburn.edu Organization: Auburn University Engineering X-Newsreader: xrn 7.03 References: <4ia1rs$1j1@sol.sun.csd.unb.ca> <p4trqukut.fsf@lpbcsun.lpbc.jussieu.fr> Date: Fri, 15 Mar 1996 23:43:52 GMT Lines: 31 Xref: euryale.cc.adfa.oz.au comp.unix.questions:78864 comp.unix.bsd:16772 comp.unix.internals:9900 comp.sys.sun.apps:12797 alt.unix.wizards:3325 alt.sys.sun:10109 In article <p4trqukut.fsf@lpbcsun.lpbc.jussieu.fr>, slt@lpbcsun.lpbc.jussieu.fr (Stephane Tsacas) writes: |> I've got it... : |> adb -k /vmunix /dev/mem |> physmem 3fb1 |> le_softc/X |> _le_softc: |> _le_softc: ff005000 |> 0xff005000+0t112/X |> 0xff005070: 8002071 |> 0xff005074: d5010000 |> |> First component of struct le_softc is a struct arpcom which starts by: |> struct arpcom { |> struct ifnet ac_if; /* network-visible interface */ |> struct ether_addr ac_enaddr; /* ethernet hardware address */ |> struct in_addr ac_ipaddr; /* copy of ip address- XXX */ |> ... |> |> and sizeof(struct ifnet) = 112 |> |> Don't ask me if the machine has more than one interface... Luckily, on Suns, there is only 1 MAC for all ethernets. The mac is stored in nvram on the motherboard, so you don't have to worry about this. (or unluckily, depending on your point of view) -- ____________________________________________________________________________ Doug Hughes Engineering Network Services System/Net Admin Auburn University doug@eng.auburn.edu