21 #include <boost/io/ios_state.hpp> 29 static char const * COMMANDS[] = {
"0",
"JOIN",
"LEAVE",
"3",
"4",
"5",
"6",
"7",
30 "8",
"9",
"10",
"11",
"12",
"13",
"14",
"15" };
31 boost::io::ios_all_saver ias(os);
32 os <<
"DTCP HELLO Packet:" << std::endl
37 <<
senf::fieldName(
"receive capable feed") << (p->receiveCapableFeed() ?
"yes" :
"no") <<
"\n" 39 <<
senf::fieldName(
"tunnel protocol") << unsigned(p->tunnelProtocol()) <<
"\n" 40 <<
senf::fieldName(
"number of BDL ips") << unsigned(p->fbipCount()) <<
"\n" 41 <<
" feed BDL ips:\n";
43 switch (p->ipVersion()) {
45 typedef DTCPHelloPacket::Parser::v4fbipList_t FBIPList;
46 FBIPList::container_type fbips (p->v4fbipList());
49 for (; i != i_end; ++i)
50 os <<
" " << *i <<
"\n";
54 typedef DTCPHelloPacket::Parser::v6fbipList_t FBIPList;
55 FBIPList::container_type fbips (p->v6fbipList());
58 for (; i != i_end; ++i)
59 os <<
" " << *i <<
"\n";
63 os <<
" unknown ip version\n";
std::string fieldName(std::string const &s)
Protocol specific packet handle.
static void dump(packet p, std::ostream &os)
raw_container::iterator iterator
DTCPPacket public header.