X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FProtocols%2FRaw%2FMACAddress.ct;h=e0b4ef33792cbb685357191407d5d31252d6f50d;hb=bd9f9d3fd6fbcff0112a7bf48ab9284da9576b11;hp=955239c4513673d4f61a8007dbea75ef9d644a77;hpb=fb08e3defcfb7cd8851ede0fab6cad424d168485;p=senf.git diff --git a/Socket/Protocols/Raw/MACAddress.ct b/Socket/Protocols/Raw/MACAddress.ct index 955239c..e0b4ef3 100644 --- a/Socket/Protocols/Raw/MACAddress.ct +++ b/Socket/Protocols/Raw/MACAddress.ct @@ -1,6 +1,8 @@ -// Copyright (C) 2007 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) +// $Id$ +// +// Copyright (C) 2007 +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund // // This program is free software; you can redistribute it and/or modify @@ -24,6 +26,7 @@ //#include "MACAddress.ih" // Custom includes +#include "../../../config.hh" #define prefix_ ///////////////////////////////ct.p//////////////////////////////////////// @@ -34,11 +37,8 @@ template prefix_ senf::MACAddress::MACAddress senf::MACAddress::from_data(InputIterator i) { - MACAddress mac (MACAddress::noinit); - iterator j (mac.begin()); - iterator const j_end (mac.end()); - for (;j!=j_end;++j,++i) - *j = *i; + MACAddress mac (senf::noinit); + SENF_copy_n(i, 6, mac.begin()); return mac; }