2016-08-15 12:50:33 +02:00
|
|
|
/*
|
2016-08-25 17:45:34 +02:00
|
|
|
* \brief Media access control (MAC) address
|
2016-08-15 12:50:33 +02:00
|
|
|
* \author Martin Stein
|
|
|
|
* \date 2016-06-22
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2017-02-20 13:23:52 +01:00
|
|
|
* Copyright (C) 2016-2017 Genode Labs GmbH
|
2016-08-15 12:50:33 +02:00
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
2017-02-20 13:23:52 +01:00
|
|
|
* under the terms of the GNU Affero General Public License version 3.
|
2016-08-15 12:50:33 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _NET__MAC_ADDRESS_H_
|
|
|
|
#define _NET__MAC_ADDRESS_H_
|
|
|
|
|
|
|
|
/* OS includes */
|
|
|
|
#include <net/netaddress.h>
|
|
|
|
|
2019-04-11 21:33:57 +02:00
|
|
|
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; }
|
|
|
|
};
|
2016-08-15 12:50:33 +02:00
|
|
|
|
|
|
|
#endif /* _NET__MAC_ADDRESS_H_ */
|