From 2f9a049400263abfde732460515ef91a48f77483 Mon Sep 17 00:00:00 2001 From: Marcus Overhagen Date: Tue, 26 Dec 2006 14:57:21 +0000 Subject: [PATCH] add array indexed access to mac_addr_t git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19627 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/kernel/boot/net/NetDefs.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/headers/private/kernel/boot/net/NetDefs.h b/headers/private/kernel/boot/net/NetDefs.h index 44a67a27f4..d190ff6558 100644 --- a/headers/private/kernel/boot/net/NetDefs.h +++ b/headers/private/kernel/boot/net/NetDefs.h @@ -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));