// $Id$
//
// Copyright (C) 2006
-// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
-// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
-// Stefan Bund <stefan.bund@fokus.fraunhofer.de>
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
+// Stefan Bund <g0dil@berlios.de>
//
// 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
#include <boost/algorithm/string/finder.hpp>
#include "../../../Utils/Exception.hh"
+#include "../AddressExceptions.hh"
//#include "LLAddressing.mpp"
#define prefix_
return std::string();
char name[IFNAMSIZ];
if (! ::if_indextoname(addr_.sll_ifindex, name))
- throw InvalidLLSocketAddressException();
+ throw AddressSyntaxException();
return std::string(name);
}
else {
addr_.sll_ifindex = if_nametoindex(iface.c_str());
if (addr_.sll_ifindex == 0)
- throw InvalidLLSocketAddressException();
+ throw AddressSyntaxException();
}
}