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
12
namespace
P4::P4Tools::P4Testgen::EBPF {
13
14
class
EBPFConstants
{
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_ */
P4::P4Tools::P4Testgen::EBPF::EBPFConstants
Definition
p4tools/modules/testgen/targets/ebpf/constants.h:14
P4::P4Tools::P4Testgen::EBPF::EBPFConstants::PORT_BIT_WIDTH
static constexpr int PORT_BIT_WIDTH
Port width in bits.
Definition
p4tools/modules/testgen/targets/ebpf/constants.h:19
P4::P4Tools::P4Testgen::EBPF::EBPFConstants::ACCEPT_VAR
static const IR::PathExpression ACCEPT_VAR
eBPF-internal drop variable.
Definition
p4tools/modules/testgen/targets/ebpf/constants.h:17
backends
p4tools
modules
testgen
targets
ebpf
constants.h
Generated by
1.13.2