eBPF for Windows
Loading...
Searching...
No Matches
bpf_helpers.h File Reference
#include "bpf_helpers_platform.h"
#include "ebpf_structs.h"
#include "ebpf_nethooks.h"
#include "bpf_helper_defs.h"

Go to the source code of this file.

Macros

#define __uint(field_name, field_value)
 Declare a field with a given size in a BPF map.
#define __type(field_name, field_type)
 Declare a field with a given type in a BPF map.
#define __array(field_name, map_template)
 Declare the value in a BPF map of type map-in-map or program-in-map.
#define SEC(NAME)
 LLVM attribute to place a variable in a specific ELF section.
#define bpf_map_def   _ebpf_map_definition_in_file
#define NULL   ((void*)0)
#define _WIN32

Macro Definition Documentation

◆ __array

#define __array ( field_name,
map_template )
Value:
typeof(map_template)* field_name[]

Declare the value in a BPF map of type map-in-map or program-in-map.

◆ __type

#define __type ( field_name,
field_type )
Value:
typeof(field_type)* field_name

Declare a field with a given type in a BPF map.

◆ __uint

#define __uint ( field_name,
field_value )
Value:
int(*field_name)[field_value]

Declare a field with a given size in a BPF map.

◆ _WIN32

#define _WIN32

◆ bpf_map_def

#define bpf_map_def   _ebpf_map_definition_in_file

◆ NULL

#define NULL   ((void*)0)

◆ SEC

#define SEC ( NAME)
Value:
__attribute__((section(NAME)))
const bool __ebpf_for_windows_tag __attribute__((section(".ebpf_for_windows")))

LLVM attribute to place a variable in a specific ELF section.