// $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
}
///////////////////////////////////////////////////////////////////////////
-// senf::Parse_IPv4
+// senf::IPv4PacketParser
-prefix_ boost::uint16_t senf::Parse_IPv4::calcChecksum()
+prefix_ boost::uint16_t senf::IPv4PacketParser::calcChecksum()
const
{
validate(bytes(*this));
prefix_ void senf::IPv4PacketType::finalize(packet p)
{
p->length() << p.size();
- p->protocol() << key(p.next());
+ p->protocol() << key(p.next(nothrow));
p->checksum() << p->calcChecksum();
}