Trouble on HP-UX
Status: Abandoned
Brought to you by:
dugsong
Hello,
I compiled libdnet on HP-UX with the --with-pic option
When I run the code to get the mac address, I get a
null mac address.
The code is:
pEth=eth_open("lan0");
if (pEth != NULL)
{
lRet=eth_get(pEth, pEthAddress);
printf("%02X-%02X-%02X-%02X-%02X-%02X\n",
(*pEthAddress).data[0],
(*pEthAddress).data[1],
(*pEthAddress).data[2],
(*pEthAddress).data[3],
(*pEthAddress).data[4],
(*pEthAddress).data[5]) ;
DPSDumpVariable(lRet);
eth_close(pEth);
}
The result is:
00-00-00-00-00-00
Logged In: YES
user_id=18578
just to be sure - you're running this code as root, yes?
Logged In: YES
user_id=913642
No I am not.
Logged In: YES
user_id=18578
this may only work as root on HP-UX.
if it doesn't, please let me know.
Logged In: YES
user_id=913642
I tested this as root, it does not work either.
Logged In: YES
user_id=18578
can you show me the output of 'config/config.guess' ?
it seems to work fine for me, on hppa2.0w-hp-hpux11.11.
can you also show me the output of 'test/dnet/dnet intf get
lan0' ?
Logged In: YES
user_id=913642
Here are the outputs:
# config/config.guess
hppa2.0w-hp-hpux11.00
# test/dnet/dnet intf get lan0
lan0: flags=0x31<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.9.200.42/24
link 00:30:6e:1d:fd:74
Logged In: YES
user_id=913642
I get the same results as non-root user too.