// $Id:TransportPacket.hh 560 2007-12-13 14:39:37Z tho $
//
-// Copyright (C) 2007
-// Fraunhofer Institute for Open Communication Systems (FOKUS)
-// Competence Center NETwork research (NET), St. Augustin, GERMANY
+// Copyright (C) 2007
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
// David Wagner <dw6@berlios.de>
//
// This program is free software; you can redistribute it and/or modify
#include "DTCPPacket.hh"
+#include <boost/io/ios_state.hpp>
+#include <iomanip>
+
+#define prefix_
+
+prefix_ void senf::DTCPPacketType::dump(packet p, std::ostream & os)
+{
+ boost::io::ios_all_saver ias(os);
+ os << "DTCPPacket" << std::endl
+ << " version : " << p->version_number() << std::endl
+ << " command : " << p->command() << std::endl
+ << " interval : " << p->interval() << std::endl
+ << " sequence_number : " << p->sequence_number() << std::endl
+ << " receive_capable_feed : " << p->receive_capable_feed() << std::endl
+ << " ip_version : " << p->ip_version() << std::endl
+ << " tunnel_protocol : " << p->tunnel_protocol() << std::endl
+ ;
+
+ //TODO: print included IPs
+}
+
+#undef prefix_