eBPF for Windows
Macros
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)   int(*field_name)[field_value]
 Declare a field with a given size in a BPF map. More...
 
#define __type(field_name, field_type)   typeof(field_type)* field_name
 Declare a field with a given type in a BPF map. More...
 
#define __array(field_name, map_template)   typeof(map_template)* field_name[]
 Declare the value in a BPF map of type map-in-map or program-in-map. More...
 
#define SEC(NAME)   __attribute__((section(NAME)))
 LLVM attribute to place a variable in a specific ELF section. More...
 
#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 
)    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 
)    typeof(field_type)* field_name

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

◆ __uint

#define __uint (   field_name,
  field_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)    __attribute__((section(NAME)))

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