// $Id$
//
-// Copyright (C) 2007
-// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
-// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
+// Copyright (C) 2007
+// 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
return senf::INet4Address::from_inaddr(ina.s_addr);
if (s.empty())
- throw SyntaxException();
+ throw AddressSyntaxException();
int herr (0);
{
std::string::size_type i (s.find('/'));
if (i == std::string::npos)
- throw INet4Address::SyntaxException();
+ throw AddressSyntaxException();
try {
prefix_len_ = boost::lexical_cast<unsigned>(std::string(s,i+1));
} catch (boost::bad_lexical_cast const &) {
- throw INet4Address::SyntaxException();
+ throw AddressSyntaxException();
}
address_ = INet4Address(INet4Address::from_string(std::string(s, 0, i)).address() & mask());
}