P4C
The P4 Compiler
Loading...
Searching...
No Matches
p4tools/modules/testgen/targets/ebpf/constants.h
1/*
2 * SPDX-FileCopyrightText: 2022 The P4 Language Consortium
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_EBPF_CONSTANTS_H_
8#define BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_EBPF_CONSTANTS_H_
9
10#include "ir/ir.h"
11
12namespace P4::P4Tools::P4Testgen::EBPF {
13
15 public:
17 static const IR::PathExpression ACCEPT_VAR;
19 static constexpr int PORT_BIT_WIDTH = 9;
20};
21
22} // namespace P4::P4Tools::P4Testgen::EBPF
23
24#endif /* BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_EBPF_CONSTANTS_H_ */
Definition p4tools/modules/testgen/targets/ebpf/constants.h:14
static constexpr int PORT_BIT_WIDTH
Port width in bits.
Definition p4tools/modules/testgen/targets/ebpf/constants.h:19
static const IR::PathExpression ACCEPT_VAR
eBPF-internal drop variable.
Definition p4tools/modules/testgen/targets/ebpf/constants.h:17