P4C
The P4 Compiler
Toggle main menu visibility
Main Page
P4C Repository Organization
Getting Started
P4C Intermediate Representation (IR)
Frontend
Midend
Backends
Behavioral Model Backend
DPDK Backend
eBPF Backend
TC Backend
uBPF Backend
P4test Backend
Graphs Backend
p4fmt (P4 Formatter)
P4Tools
P4Smith
P4Testgen
Contribute to the P4 Compiler Project
Releases
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
w
x
z
Functions
a
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
w
x
Variables
Typedefs
Enumerations
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Typedefs
Enumerations
Enumerator
Related Symbols
►
P4 Compiler Documentation (P4C)
•
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Modules
Pages
Loading...
Searching...
No Matches
p4tools/modules/testgen/targets/ebpf/constants.h
1
#ifndef TESTGEN_TARGETS_EBPF_CONSTANTS_H_
2
#define TESTGEN_TARGETS_EBPF_CONSTANTS_H_
3
4
#include "ir/ir.h"
5
6
namespace
P4::P4Tools::P4Testgen::EBPF {
7
8
class
EBPFConstants
{
9
public
:
11
static
const
IR::PathExpression
ACCEPT_VAR
;
13
static
constexpr
int
PORT_BIT_WIDTH
= 9;
14
};
8
class
EBPFConstants
{
…
};
15
16
}
// namespace P4::P4Tools::P4Testgen::EBPF
17
18
#endif
/* TESTGEN_TARGETS_EBPF_CONSTANTS_H_ */
P4::P4Tools::P4Testgen::EBPF::EBPFConstants
Definition
p4tools/modules/testgen/targets/ebpf/constants.h:8
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:13
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:11
backends
p4tools
modules
testgen
targets
ebpf
constants.h
Generated by
1.12.0