Skip to content

Commit 5eaf38f

Browse files
committed
Initial version
1 parent 2a4ff20 commit 5eaf38f

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

source/parser/identifiable_parser/flow/parse_tcp_flow.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Parser<TcpFlow<TTcpCC>> {
2222
std::shared_ptr<IHost> receiver_ptr =
2323
IdentifierFactory::get_instance().get_object<IHost>(receiver_id);
2424

25-
Size packet_size = value_node["packet_size"].as<Size>();
25+
Size packet_size = value_node["packet_size"].as<uint64_t>();
2626
std::uint32_t number_of_packets =
2727
value_node["number_of_packets"].as<std::uint32_t>();
2828
Time packet_interval = value_node["packet_interval"].as<Time>();

source/types.hpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,21 @@
33
#include <memory>
44
#include <string>
55

6+
#include "units.hpp"
7+
8+
namespace sim {
9+
610
// nanoseconds
711
using Time = std::uint32_t;
812
// bytes
9-
using Size = std::uint32_t;
13+
using Size = TemplateSize<Byte>;
1014
using Id = std::string;
1115

1216
// Describes a type used by packet's bitset to store flags
1317
using PacketFlagsBase = std::uint32_t;
1418

1519
template <typename K, typename V>
1620
using MapWeakPtr =
17-
std::map<std::weak_ptr<K>, V, std::owner_less<std::weak_ptr<K>>>;
21+
std::map<std::weak_ptr<K>, V, std::owner_less<std::weak_ptr<K>>>;
22+
23+
} // namespace sim

0 commit comments

Comments
 (0)