P4C
The P4 Compiler
Loading...
Searching...
No Matches
modules/smith/util/util.h
1
/*
2
* SPDX-FileCopyrightText: 2024 The P4 Language Consortium
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef BACKENDS_P4TOOLS_MODULES_SMITH_UTIL_UTIL_H_
8
#define BACKENDS_P4TOOLS_MODULES_SMITH_UTIL_UTIL_H_
9
10
#include <string>
11
12
#include "lib/cstring.h"
13
14
namespace
P4::P4Tools::P4Smith {
15
16
static
constexpr
int
INTEGER_WIDTH(32);
17
19
static
const
cstring SYS_HDR_NAME(
"Headers"
);
20
static
const
cstring ETH_HEADER_T(
"ethernet_t"
);
21
static
const
cstring ETH_HDR(
"eth_hdr"
);
22
27
std::string getRandomString(
size_t
len);
28
29
}
// namespace P4::P4Tools::P4Smith
30
31
#endif
/* BACKENDS_P4TOOLS_MODULES_SMITH_UTIL_UTIL_H_ */
backends
p4tools
modules
smith
util
util.h
Generated by
1.13.2