Implement ethernet address determination

This commit is contained in:
RipleyTom 2020-10-11 05:02:33 +02:00 committed by Ivan
parent 1393bb2caf
commit 9e14d240a8
6 changed files with 118 additions and 7 deletions

View file

@ -193,8 +193,7 @@ error_code cellNetCtlGetInfo(s32 code, vm::ptr<CellNetCtlInfo> info)
if (code == CELL_NET_CTL_INFO_ETHER_ADDR)
{
// dummy values set
std::memset(info->ether_addr.data, 0xFF, sizeof(info->ether_addr.data));
memcpy(info->ether_addr.data, nph->get_ether_addr().data(), 6);
return CELL_OK;
}