X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FSocket%2FProtocols%2FRaw%2FLLAddressing.cc;h=2975e7769954c7bd86bc6fc9eb06d872ddde5ede;hb=e3179a2123ad51d0d9eb63834a581145c4f77c92;hp=1dac99711f9ce12a847e21043390abf04ba80b61;hpb=9cb871b939efe93e35dd96808d25089399acfc46;p=senf.git diff --git a/senf/Socket/Protocols/Raw/LLAddressing.cc b/senf/Socket/Protocols/Raw/LLAddressing.cc index 1dac997..2975e77 100644 --- a/senf/Socket/Protocols/Raw/LLAddressing.cc +++ b/senf/Socket/Protocols/Raw/LLAddressing.cc @@ -38,7 +38,7 @@ //#include "LLAddressing.mpp" #define prefix_ -///////////////////////////////cc.p//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// prefix_ std::string senf::LLSocketAddress::interface() const @@ -48,7 +48,7 @@ prefix_ std::string senf::LLSocketAddress::interface() char name[IFNAMSIZ]; ::bzero(name, IFNAMSIZ); if (! ::if_indextoname(addr_.sll_ifindex, name)) - throw AddressSyntaxException(); + throw UnknownInterfaceException(); return std::string(name); } @@ -59,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 AddressSyntaxException(); + throw UnknownInterfaceException(iface); } } @@ -79,7 +79,7 @@ prefix_ std::ostream & senf::operator<<(std::ostream & os, LLSocketAddress const return os; } -///////////////////////////////cc.e//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// #undef prefix_ //#include "LLAddressing.mpp"