mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-30 18:47:01 +00:00
4caffd79db
Fix #3282
29 lines
650 B
C++
29 lines
650 B
C++
/*
|
|
* \brief Media access control (MAC) address
|
|
* \author Martin Stein
|
|
* \date 2016-06-22
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2016-2017 Genode Labs GmbH
|
|
*
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
* under the terms of the GNU Affero General Public License version 3.
|
|
*/
|
|
|
|
#ifndef _NET__MAC_ADDRESS_H_
|
|
#define _NET__MAC_ADDRESS_H_
|
|
|
|
/* OS includes */
|
|
#include <net/netaddress.h>
|
|
|
|
namespace Net { struct Mac_address; }
|
|
|
|
struct Net::Mac_address : Net::Network_address<6, ':', true>
|
|
{
|
|
using Net::Network_address<6, ':', true>::Network_address;
|
|
bool multicast() const { return addr[0] & 1; }
|
|
};
|
|
|
|
#endif /* _NET__MAC_ADDRESS_H_ */
|