X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FProtocols%2FRaw%2FLLAddressing.cc;h=97316c97db152e59858825b6d8f3ae3d0de0b1be;hb=3863d46dd898b7bc35ea8c6ccd8563b18762a6b6;hp=13038c38798f1c7e77c487b70980ff8d79c9f37a;hpb=cd019de7e5d80122a302577c1907e2a952249260;p=senf.git diff --git a/Socket/Protocols/Raw/LLAddressing.cc b/Socket/Protocols/Raw/LLAddressing.cc index 13038c3..97316c9 100644 --- a/Socket/Protocols/Raw/LLAddressing.cc +++ b/Socket/Protocols/Raw/LLAddressing.cc @@ -1,9 +1,9 @@ // $Id$ // // Copyright (C) 2006 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) -// Stefan Bund +// 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 // it under the terms of the GNU General Public License as published by @@ -34,7 +34,8 @@ #include #include -#include "Utils/Exception.hh" +#include "../../../Utils/Exception.hh" +#include "../AddressExceptions.hh" //#include "LLAddressing.mpp" #define prefix_ @@ -47,18 +48,18 @@ prefix_ std::string senf::LLSocketAddress::interface() return std::string(); char name[IFNAMSIZ]; if (! ::if_indextoname(addr_.sll_ifindex, name)) - throw InvalidLLSocketAddressException(); + throw AddressSyntaxException(); return std::string(name); } -prefix_ void senf::LLSocketAddress::interface(std::string iface) +prefix_ void senf::LLSocketAddress::interface(std::string const & iface) { if (iface.empty()) addr_.sll_ifindex = 0; else { addr_.sll_ifindex = if_nametoindex(iface.c_str()); if (addr_.sll_ifindex == 0) - throw InvalidLLSocketAddressException(); + throw AddressSyntaxException(); } }