EthernetFragmentPacket.cc
Go to the documentation of this file.
1 //
2 // Copyright (c) 2020 Fraunhofer Institute for Applied Information Technology (FIT)
3 // Network Research Group (NET)
4 // Schloss Birlinghoven, 53754 Sankt Augustin, GERMANY
5 // Contact: support@wiback.org
6 //
7 // This file is part of the SENF code tree.
8 // It is licensed under the 3-clause BSD License (aka New BSD License).
9 // See LICENSE.txt in the top level directory for details or visit
10 // https://opensource.org/licenses/BSD-3-Clause
11 //
12 
13 
15 
16 // Custom includes
17 
18 #define prefix_
19 
22 // wiback::EthernetFragmentPacket
23 
27 
29 {
30  os << "SENF/NetEMU EthernetFragment Packet:" << std::endl
31  << senf::fieldName("fragmentNr") << p->fragmentNr() << std::endl
32  << senf::fieldName("moreFragment") << unsigned(p->moreFragment()) << std::endl
33  << senf::fieldName("size") << p->size() << std::endl
34  << senf::fieldName("type/length") << senf::format::dumpint(p->type_length().value()) << std::endl;
35 }
36 
38 #undef prefix_
static void dump(packet p, std::ostream &os)
static const std::uint32_t OUI_Fraunhofer_FIT
streamable_type dumpint(T const &v)
#define prefix_
SENF_PACKET_INSTANTIATE_TEMPLATE(senf::emu::EthernetFragmentPacket)
size_type size() const
SENF_PACKET_REGISTRY_REGISTER(senf::EtherOUIExtTypes, senf::EtherOUIExtTypes::type(senf::EthOUIExtensionPacketType::OUI_Fraunhofer_FIT, 0x43), senf::emu::EthernetFragmentPacket)
static key_t type(boost::uint32_t oui, boost::uint16_t extType)