X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FProtocols%2FRaw%2FLLAddressing.cc;h=97316c97db152e59858825b6d8f3ae3d0de0b1be;hb=3863d46dd898b7bc35ea8c6ccd8563b18762a6b6;hp=d02b660009fe2dd066d6641c6f26d96578bc4973;hpb=8d2d26f114d3df0a60c5c516fcf40671b1e55558;p=senf.git diff --git a/Socket/Protocols/Raw/LLAddressing.cc b/Socket/Protocols/Raw/LLAddressing.cc index d02b660..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 @@ -35,6 +35,7 @@ #include #include "../../../Utils/Exception.hh" +#include "../AddressExceptions.hh" //#include "LLAddressing.mpp" #define prefix_ @@ -47,7 +48,7 @@ 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); } @@ -58,7 +59,7 @@ prefix_ void senf::LLSocketAddress::interface(std::string const & iface) else { addr_.sll_ifindex = if_nametoindex(iface.c_str()); if (addr_.sll_ifindex == 0) - throw InvalidLLSocketAddressException(); + throw AddressSyntaxException(); } }