add array indexed access to mac_addr_t

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19627 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Marcus Overhagen 2006-12-26 14:57:21 +00:00
parent 4ad4c6c1b8
commit 2f9a049400
1 changed files with 5 additions and 0 deletions

View File

@ -45,6 +45,11 @@ struct mac_addr_t {
| (uint64)address[5];
}
uint8 operator[](int index)
{
return address[index];
}
mac_addr_t& operator=(const mac_addr_t& other)
{
memcpy(address, other.address, sizeof(address));