P4C
The P4 Compiler
Loading...
Searching...
No Matches
ebpf_common.h
1/*
2 * Copyright 2018 VMware, Inc.
3 * SPDX-FileCopyrightText: 2018 VMware, Inc.
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 */
7
8/*
9 * This file contains general type definitions used in ebpf programs.
10 * It should be included with new target header files.
11 */
12
13#include <stdbool.h> // true and false
14#include <linux/types.h> // u8, u16, u32, u64
15
16typedef signed char s8;
17typedef unsigned char u8;
18typedef signed short s16;
19typedef unsigned short u16;
20typedef signed int s32;
21typedef unsigned int u32;
22typedef signed long long s64;
23typedef unsigned long long u64;