X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FSocket%2FProtocols%2FRaw%2FLLAddressing.cc;h=8950b6e7ef8b9be10c61a2b9ed73f2ae0c1ea211;hb=874b9d37b59223d9b0dce3bddafa130045419750;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..8950b6e 100644 --- a/senf/Socket/Protocols/Raw/LLAddressing.cc +++ b/senf/Socket/Protocols/Raw/LLAddressing.cc @@ -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); } }