EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: ethernet address in vxWorks
From: "Mark Rivers" <[email protected]>
To: "Dirk Zimoch" <[email protected]>, "TECHTALK" <[email protected]>
Date: Fri, 2 Apr 2004 06:55:45 -0600
Dirk,

> is there a generic way to find out the ethernet address of 
> the network interface in vxWorks? "ifShow" can do, but how?

#include <etherLib.h>
int nmc_get_niaddr(char *device, unsigned char *address)
{
   struct ifnet *ifPtr;
   ifPtr = ifunit(device);
   memcpy(address, ((struct arpcom *) ifPtr)->ac_enaddr, 6);
  return OK;
}

Mark Rivers


Navigate by Date:
Prev: ethernet address in vxWorks Dirk Zimoch
Next: asynDriver release 2-1 Marty Kraimer
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: ethernet address in vxWorks Dirk Zimoch
Next: asynDriver release 2-1 Marty Kraimer
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·