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
<2004>
2005
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
<2004>
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|