P4C
The P4 Compiler
Loading...
Searching...
No Matches
modules/smith/util/util.h
1#ifndef BACKENDS_P4TOOLS_MODULES_SMITH_UTIL_UTIL_H_
2#define BACKENDS_P4TOOLS_MODULES_SMITH_UTIL_UTIL_H_
3
4#include <string>
5
6#include "lib/cstring.h"
7
8namespace P4::P4Tools::P4Smith {
9
10static constexpr int INTEGER_WIDTH(32);
11
13static const cstring SYS_HDR_NAME("Headers");
14static const cstring ETH_HEADER_T("ethernet_t");
15static const cstring ETH_HDR("eth_hdr");
16
21std::string getRandomString(size_t len);
22
23} // namespace P4::P4Tools::P4Smith
24
25#endif /* BACKENDS_P4TOOLS_MODULES_SMITH_UTIL_UTIL_H_ */