X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FProtocols%2FRaw%2FMACAddress.ct;h=e0b4ef33792cbb685357191407d5d31252d6f50d;hb=bd9f9d3fd6fbcff0112a7bf48ab9284da9576b11;hp=2c6ae392dd3b86c980ac4149bf6f14dade0671f0;hpb=66293acca094b2f29e26e70208691db4af274efb;p=senf.git diff --git a/Socket/Protocols/Raw/MACAddress.ct b/Socket/Protocols/Raw/MACAddress.ct index 2c6ae39..e0b4ef3 100644 --- a/Socket/Protocols/Raw/MACAddress.ct +++ b/Socket/Protocols/Raw/MACAddress.ct @@ -1,8 +1,8 @@ // $Id$ // -// Copyright (C) 2007 -// Fraunhofer Institute for Open Communication Systems (FOKUS) -// Competence Center NETwork research (NET), St. Augustin, GERMANY +// 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 @@ -26,6 +26,7 @@ //#include "MACAddress.ih" // Custom includes +#include "../../../config.hh" #define prefix_ ///////////////////////////////ct.p//////////////////////////////////////// @@ -37,10 +38,7 @@ template prefix_ senf::MACAddress::MACAddress senf::MACAddress::from_data(InputIterator i) { MACAddress mac (senf::noinit); - iterator j (mac.begin()); - iterator const j_end (mac.end()); - for (;j!=j_end;++j,++i) - *j = *i; + SENF_copy_n(i, 6, mac.begin()); return mac; }