33 static const char * cmdCodes[] = {
34 "invalid",
"SetupRequest",
"SetupAck",
"SetupReject",
"TerminateRequest",
35 "TerminateAck",
"EchoRequest",
"EchoReply" };
36 os <<
"SENF NetEmu Tunnel Control Packet:\n" 37 << senf::fieldName(
"Code") << unsigned(p->code()) <<
" (" 40 if (p->has_capacity()) {
41 os <<
"Capacity:" << std::endl
42 <<
" from client to server: " << p->capacity().fromClientToServer() << std::endl
43 <<
" from server to client: " << p->capacity().fromServerToClient() << std::endl;
TunnelControlPacket public header.
static const std::uint32_t OUI_Fraunhofer_FIT
static void dump(packet p, std::ostream &os)
SENF_PACKET_REGISTRY_REGISTER(senf::EtherOUIExtTypes, senf::EtherOUIExtTypes::type(senf::EthOUIExtensionPacketType::OUI_Fraunhofer_FIT, 0x42), senf::emu::TunnelCtrlPacket)
SENF_PACKET_INSTANTIATE_TEMPLATE(senf::emu::TunnelCtrlPacket)
static key_t type(boost::uint32_t oui, boost::uint16_t extType)