Logger: use ClockService::now() as timeBase if empty timeFormat is given for a target
[senf.git] / senf / Socket / Protocols / Raw / LLAddressing.cc
index 1dac997..2975e77 100644 (file)
@@ -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"