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:
parent
4ad4c6c1b8
commit
2f9a049400
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue