eBPF for Windows
include
bpf_helpers_platform.h
Go to the documentation of this file.
1
// Copyright (c) eBPF for Windows contributors
2
// SPDX-License-Identifier: MIT
3
#pragma once
4
10
#include <stdbool.h>
11
#include <stdint.h>
12
13
// For eBPF programs, struct bpf_map means struct _ebpf_map_definition_in_file,
14
// since they use inner_map_idx and pass pointers to such structures to the various
15
// map APIs.
16
#define bpf_map _ebpf_map_definition_in_file
17
18
#if !defined(_MSC_VER)
19
const
bool
__ebpf_for_windows_tag
__attribute__
((section(
".ebpf_for_windows"
))) =
true
;
20
#endif
21
22
// Type aliases used by libbpf headers.
23
typedef
int32_t
__s32
;
24
typedef
int64_t
__s64
;
25
typedef
uint16_t
__be16
;
26
typedef
uint16_t
__u16
;
27
typedef
uint32_t
__be32
;
28
typedef
uint32_t
__u32
;
29
typedef
uint32_t
__wsum
;
30
typedef
uint64_t
__u64
;
__be32
uint32_t __be32
Definition:
bpf_helpers_platform.h:27
__attribute__
const bool __ebpf_for_windows_tag __attribute__((section(".ebpf_for_windows")))
__s32
int32_t __s32
Definition:
bpf_helpers_platform.h:23
__u32
uint32_t __u32
Definition:
bpf_helpers_platform.h:28
__s64
int64_t __s64
Definition:
bpf_helpers_platform.h:24
__be16
uint16_t __be16
Definition:
bpf_helpers_platform.h:25
__u16
uint16_t __u16
Definition:
bpf_helpers_platform.h:26
__u64
uint64_t __u64
Definition:
bpf_helpers_platform.h:30
__wsum
uint32_t __wsum
Definition:
bpf_helpers_platform.h:29
Generated by
1.9.1