eBPF for Windows
bpf_helpers_platform.h
Go to the documentation of this file.
1 // Copyright (c) Microsoft Corporation
2 // SPDX-License-Identifier: MIT
3 #pragma once
4 
5 // This file contains platform-specific defines used by eBPF programs.
6 
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
11 
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;
__s32
int32_t __s32
Definition: bpf_helpers_platform.h:13
__be32
uint32_t __be32
Definition: bpf_helpers_platform.h:17
__wsum
uint32_t __wsum
Definition: bpf_helpers_platform.h:19
__be16
uint16_t __be16
Definition: bpf_helpers_platform.h:15
__u32
uint32_t __u32
Definition: bpf_helpers_platform.h:18
__s64
int64_t __s64
Definition: bpf_helpers_platform.h:14
__u16
uint16_t __u16
Definition: bpf_helpers_platform.h:16
__u64
uint64_t __u64
Definition: bpf_helpers_platform.h:20