// $Id$
//
-// Copyright (C) 2007
-// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
-// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
+// Copyright (C) 2007
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
// Stefan Bund <g0dil@berlios.de>
//
// This program is free software; you can redistribute it and/or modify
std::fill(begin(),end(),0u);
}
-prefix_ senf::MACAddress::MACAddress(NoInit_t)
+prefix_ senf::MACAddress::MACAddress(senf::NoInit_t)
{}
prefix_ senf::MACAddress::MACAddress(boost::uint64_t v)
(boost::uint64_t( (*this)[5] ) );
}
+prefix_ boost::uint64_t senf::MACAddress::uint64()
+ const
+{
+ return
+ (boost::uint64_t( (*this)[0] ) << 40) |
+ (boost::uint64_t( (*this)[1] ) << 32) |
+ (boost::uint64_t( (*this)[2] ) << 24) |
+ (boost::uint64_t( (*this)[3] ) << 16) |
+ (boost::uint64_t( (*this)[4] ) << 8) |
+ (boost::uint64_t( (*this)[5] ) );
+}
+
///////////////////////////////cci.e///////////////////////////////////////
#undef prefix_