eBPF for Windows
Go to the documentation of this file.
1 // Copyright (c) Microsoft Corporation
2 // SPDX-License-Identifier: MIT
3 #pragma once
5 // This file contains platform-specific defines used by eBPF programs.
7 // For eBPF programs, struct bpf_map means struct _ebpf_map_definition_in_file,
8 // since they use inner_map_idx and pass pointers to such structures to the various
9 // map APIs.
10 #define bpf_map _ebpf_map_definition_in_file
12 // Type aliases used by libbpf headers.
13 typedef int32_t __s32;
14 typedef int64_t __s64;
15 typedef uint16_t __be16;
16 typedef uint16_t __u16;
17 typedef uint32_t __be32;
18 typedef uint32_t __u32;
19 typedef uint32_t __wsum;
20 typedef uint64_t __u64;
int32_t __s32
Definition: bpf_helpers_platform.h:13
uint32_t __be32
Definition: bpf_helpers_platform.h:17
uint32_t __wsum
Definition: bpf_helpers_platform.h:19
uint16_t __be16
Definition: bpf_helpers_platform.h:15
uint32_t __u32
Definition: bpf_helpers_platform.h:18
int64_t __s64
Definition: bpf_helpers_platform.h:14
uint16_t __u16
Definition: bpf_helpers_platform.h:16
uint64_t __u64
Definition: bpf_helpers_platform.h:20