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
14namespace P4::P4Tools::P4Smith {
15
16static constexpr int INTEGER_WIDTH(32);
17
19static const cstring SYS_HDR_NAME("Headers");
20static const cstring ETH_HEADER_T("ethernet_t");
21static const cstring ETH_HDR("eth_hdr");
22
27std::string getRandomString(size_t len);
28
29} // namespace P4::P4Tools::P4Smith
30
31#endif /* BACKENDS_P4TOOLS_MODULES_SMITH_UTIL_UTIL_H_ */