diff --git a/ebpf__api_8h_source.html b/ebpf__api_8h_source.html index 57da7445dc..edaf3d6873 100644 --- a/ebpf__api_8h_source.html +++ b/ebpf__api_8h_source.html @@ -324,7 +324,7 @@
ebpf_attach_type_t
GUID ebpf_attach_type_t
Definition: ebpf_windows.h:44
ebpf_program_type_t
GUID ebpf_program_type_t
Definition: ebpf_windows.h:43
_ebpf_map_info
eBPF Map Information
Definition: ebpf_core_structs.h:21
-
_ebpf_program_info
Definition: ebpf_program_types.h:44
+
_ebpf_program_info
Definition: ebpf_program_types.h:39
_ebpf_section_info
Definition: ebpf_api.h:56
_ebpf_section_info::next
struct _ebpf_section_info * next
Definition: ebpf_api.h:57
_ebpf_section_info::section_name
_Field_z_ const char * section_name
Definition: ebpf_api.h:58
diff --git a/ebpf__program__types_8h.html b/ebpf__program__types_8h.html index 74ecea03cc..d8c30c0b2c 100644 --- a/ebpf__program__types_8h.html +++ b/ebpf__program__types_8h.html @@ -76,7 +76,6 @@
#include "ebpf_base.h"
#include "ebpf_result.h"
#include <guiddef.h>
-#include <stdbool.h>
#include <stdint.h>

Go to the source code of this file.

@@ -102,8 +101,6 @@   #define EBPF_MAX_HELPER_FUNCTION_NAME_LENGTH   256   -#define HELPER_FUNCTION_REALLOCATE_PACKET   0x1 -  @@ -151,20 +148,6 @@

- - - -

◆ HELPER_FUNCTION_REALLOCATE_PACKET

- -
-
-

Typedefs

- - - -
#define HELPER_FUNCTION_REALLOCATE_PACKET   0x1
-
-

Typedef Documentation

diff --git a/ebpf__program__types_8h_source.html b/ebpf__program__types_8h_source.html index 543959306c..8ba59cb4a5 100644 --- a/ebpf__program__types_8h_source.html +++ b/ebpf__program__types_8h_source.html @@ -78,92 +78,87 @@
7 
8 #include <guiddef.h>
9 #if !defined(NO_CRT) && !defined(_NO_CRT_STDIO_INLINE)
-
10 #include <stdbool.h>
-
11 #include <stdint.h>
-
12 #else
-
13 typedef unsigned char uint8_t;
-
14 typedef unsigned int uint32_t;
-
15 typedef unsigned long long uint64_t;
-
16 typedef unsigned short wchar_t;
-
17 #define bool _Bool
-
18 #endif
-
19 
-
20 #define EBPF_MAX_PROGRAM_DESCRIPTOR_NAME_LENGTH 256
-
21 #define EBPF_MAX_HELPER_FUNCTION_NAME_LENGTH 256
-
22 
-
23 typedef struct _ebpf_program_type_descriptor
-
24 {
-
25  const char* name;
-
26  const ebpf_context_descriptor_t* context_descriptor;
-
27  GUID program_type;
-
28  uint32_t bpf_prog_type;
-
29  char is_privileged;
-
30 } ebpf_program_type_descriptor_t;
-
31 
-
32 #define HELPER_FUNCTION_REALLOCATE_PACKET 0x1
-
33 
-
34 typedef struct _ebpf_helper_function_prototype
-
35 {
-
36  uint32_t helper_id;
-
37  const char* name;
-
38  ebpf_return_type_t return_type;
-
39  ebpf_argument_type_t arguments[5];
-
40  bool reallocate_packet : 1;
-
41 } ebpf_helper_function_prototype_t;
-
42 
-
43 typedef struct _ebpf_program_info
-
44 {
-
45  ebpf_program_type_descriptor_t program_type_descriptor;
-
46  uint32_t count_of_program_type_specific_helpers;
-
47  const ebpf_helper_function_prototype_t* program_type_specific_helper_prototype;
-
48  uint32_t count_of_global_helpers;
-
49  const ebpf_helper_function_prototype_t* global_helper_prototype;
-
50 } ebpf_program_info_t;
-
51 
-
52 typedef struct _ebpf_helper_function_addresses
-
53 {
-
54  uint32_t helper_function_count;
-
55  uint64_t* helper_function_address;
-
56 } ebpf_helper_function_addresses_t;
-
57 
-
58 typedef ebpf_result_t (*ebpf_program_context_create_t)(
-
59  _In_reads_bytes_opt_(data_size_in) const uint8_t* data_in,
-
60  size_t data_size_in,
-
61  _In_reads_bytes_opt_(context_size_in) const uint8_t* context_in,
-
62  size_t context_size_in,
-
63  _Outptr_ void** context);
-
64 
-
65 typedef void (*ebpf_program_context_destroy_t)(
-
66  _In_ void* context,
-
67  _Out_writes_bytes_to_opt_(*data_size_out, *data_size_out) uint8_t* data_out,
-
68  _Inout_ size_t* data_size_out,
-
69  _Out_writes_bytes_to_opt_(*context_size_out, *context_size_out) uint8_t* context_out,
-
70  _Inout_ size_t* context_size_out);
-
71 
-
72 typedef struct _ebpf_program_data
-
73 {
-
74  const ebpf_program_info_t* program_info;
-
75  const ebpf_helper_function_addresses_t*
-
76  program_type_specific_helper_function_addresses;
-
78  const ebpf_helper_function_addresses_t*
-
79  global_helper_function_addresses;
-
80  ebpf_program_context_create_t context_create;
-
81  ebpf_program_context_destroy_t context_destroy;
-
82  uint8_t required_irql;
-
83 } ebpf_program_data_t;
-
84 
-
85 typedef struct _ebpf_program_section_info
-
86 {
-
87  const wchar_t* section_name;
-
88  const GUID* program_type;
-
89  const GUID* attach_type;
-
90  uint32_t bpf_program_type;
-
91  uint32_t bpf_attach_type;
-
92 } ebpf_program_section_info_t;
+
10 #include <stdint.h>
+
11 #else
+
12 typedef unsigned char uint8_t;
+
13 typedef unsigned int uint32_t;
+
14 typedef unsigned long long uint64_t;
+
15 typedef unsigned short wchar_t;
+
16 #endif
+
17 
+
18 #define EBPF_MAX_PROGRAM_DESCRIPTOR_NAME_LENGTH 256
+
19 #define EBPF_MAX_HELPER_FUNCTION_NAME_LENGTH 256
+
20 
+
21 typedef struct _ebpf_program_type_descriptor
+
22 {
+
23  const char* name;
+
24  const ebpf_context_descriptor_t* context_descriptor;
+
25  GUID program_type;
+
26  uint32_t bpf_prog_type;
+
27  char is_privileged;
+
28 } ebpf_program_type_descriptor_t;
+
29 
+
30 typedef struct _ebpf_helper_function_prototype
+
31 {
+
32  uint32_t helper_id;
+
33  const char* name;
+
34  ebpf_return_type_t return_type;
+
35  ebpf_argument_type_t arguments[5];
+
36 } ebpf_helper_function_prototype_t;
+
37 
+
38 typedef struct _ebpf_program_info
+
39 {
+
40  ebpf_program_type_descriptor_t program_type_descriptor;
+
41  uint32_t count_of_program_type_specific_helpers;
+
42  const ebpf_helper_function_prototype_t* program_type_specific_helper_prototype;
+
43  uint32_t count_of_global_helpers;
+
44  const ebpf_helper_function_prototype_t* global_helper_prototype;
+
45 } ebpf_program_info_t;
+
46 
+
47 typedef struct _ebpf_helper_function_addresses
+
48 {
+
49  uint32_t helper_function_count;
+
50  uint64_t* helper_function_address;
+
51 } ebpf_helper_function_addresses_t;
+
52 
+
53 typedef ebpf_result_t (*ebpf_program_context_create_t)(
+
54  _In_reads_bytes_opt_(data_size_in) const uint8_t* data_in,
+
55  size_t data_size_in,
+
56  _In_reads_bytes_opt_(context_size_in) const uint8_t* context_in,
+
57  size_t context_size_in,
+
58  _Outptr_ void** context);
+
59 
+
60 typedef void (*ebpf_program_context_destroy_t)(
+
61  _In_ void* context,
+
62  _Out_writes_bytes_to_opt_(*data_size_out, *data_size_out) uint8_t* data_out,
+
63  _Inout_ size_t* data_size_out,
+
64  _Out_writes_bytes_to_opt_(*context_size_out, *context_size_out) uint8_t* context_out,
+
65  _Inout_ size_t* context_size_out);
+
66 
+
67 typedef struct _ebpf_program_data
+
68 {
+
69  const ebpf_program_info_t* program_info;
+
70  const ebpf_helper_function_addresses_t*
+
71  program_type_specific_helper_function_addresses;
+
73  const ebpf_helper_function_addresses_t*
+
74  global_helper_function_addresses;
+
75  ebpf_program_context_create_t context_create;
+
76  ebpf_program_context_destroy_t context_destroy;
+
77  uint8_t required_irql;
+
78 } ebpf_program_data_t;
+
79 
+
80 typedef struct _ebpf_program_section_info
+
81 {
+
82  const wchar_t* section_name;
+
83  const GUID* program_type;
+
84  const GUID* attach_type;
+
85  uint32_t bpf_program_type;
+
86  uint32_t bpf_attach_type;
+
87 } ebpf_program_section_info_t;
ebpf_program_type_descriptor_t
struct _ebpf_program_type_descriptor ebpf_program_type_descriptor_t
-
ebpf_program_context_create_t
ebpf_result_t(* ebpf_program_context_create_t)(_In_reads_bytes_opt_(data_size_in) const uint8_t *data_in, size_t data_size_in, _In_reads_bytes_opt_(context_size_in) const uint8_t *context_in, size_t context_size_in, void **context)
Definition: ebpf_program_types.h:58
+
ebpf_program_context_create_t
ebpf_result_t(* ebpf_program_context_create_t)(_In_reads_bytes_opt_(data_size_in) const uint8_t *data_in, size_t data_size_in, _In_reads_bytes_opt_(context_size_in) const uint8_t *context_in, size_t context_size_in, void **context)
Definition: ebpf_program_types.h:53
ebpf_program_data_t
struct _ebpf_program_data ebpf_program_data_t
-
ebpf_program_context_destroy_t
void(* ebpf_program_context_destroy_t)(void *context, _Out_writes_bytes_to_opt_(*data_size_out, *data_size_out) uint8_t *data_out, _Inout_ size_t *data_size_out, _Out_writes_bytes_to_opt_(*context_size_out, *context_size_out) uint8_t *context_out, _Inout_ size_t *context_size_out)
Definition: ebpf_program_types.h:65
+
ebpf_program_context_destroy_t
void(* ebpf_program_context_destroy_t)(void *context, _Out_writes_bytes_to_opt_(*data_size_out, *data_size_out) uint8_t *data_out, _Inout_ size_t *data_size_out, _Out_writes_bytes_to_opt_(*context_size_out, *context_size_out) uint8_t *context_out, _Inout_ size_t *context_size_out)
Definition: ebpf_program_types.h:60
ebpf_helper_function_prototype_t
struct _ebpf_helper_function_prototype ebpf_helper_function_prototype_t
ebpf_helper_function_addresses_t
struct _ebpf_helper_function_addresses ebpf_helper_function_addresses_t
ebpf_program_section_info_t
struct _ebpf_program_section_info ebpf_program_section_info_t
@@ -171,40 +166,39 @@
ebpf_result.h
ebpf_result_t
enum ebpf_result ebpf_result_t
GUID
uint8_t GUID[16]
Definition: ebpf_windows.h:13
-
_ebpf_helper_function_addresses
Definition: ebpf_program_types.h:53
-
_ebpf_helper_function_addresses::helper_function_address
uint64_t * helper_function_address
Definition: ebpf_program_types.h:55
-
_ebpf_helper_function_addresses::helper_function_count
uint32_t helper_function_count
Definition: ebpf_program_types.h:54
-
_ebpf_helper_function_prototype
Definition: ebpf_program_types.h:35
-
_ebpf_helper_function_prototype::arguments
ebpf_argument_type_t arguments[5]
Definition: ebpf_program_types.h:39
-
_ebpf_helper_function_prototype::reallocate_packet
bool reallocate_packet
Definition: ebpf_program_types.h:40
-
_ebpf_helper_function_prototype::return_type
ebpf_return_type_t return_type
Definition: ebpf_program_types.h:38
-
_ebpf_helper_function_prototype::name
const char * name
Definition: ebpf_program_types.h:37
-
_ebpf_helper_function_prototype::helper_id
uint32_t helper_id
Definition: ebpf_program_types.h:36
-
_ebpf_program_data
Definition: ebpf_program_types.h:73
-
_ebpf_program_data::program_info
const ebpf_program_info_t * program_info
Pointer to program information.
Definition: ebpf_program_types.h:74
-
_ebpf_program_data::context_destroy
ebpf_program_context_destroy_t context_destroy
Pointer to context destroy function.
Definition: ebpf_program_types.h:81
-
_ebpf_program_data::global_helper_function_addresses
const ebpf_helper_function_addresses_t * global_helper_function_addresses
Pointer to global helper function addresses being overriden.
Definition: ebpf_program_types.h:79
-
_ebpf_program_data::context_create
ebpf_program_context_create_t context_create
Pointer to context create function.
Definition: ebpf_program_types.h:80
-
_ebpf_program_data::program_type_specific_helper_function_addresses
const ebpf_helper_function_addresses_t * program_type_specific_helper_function_addresses
Definition: ebpf_program_types.h:76
-
_ebpf_program_data::required_irql
uint8_t required_irql
IRQL at which the program is invoked.
Definition: ebpf_program_types.h:82
-
_ebpf_program_info
Definition: ebpf_program_types.h:44
-
_ebpf_program_info::global_helper_prototype
const ebpf_helper_function_prototype_t * global_helper_prototype
Definition: ebpf_program_types.h:49
-
_ebpf_program_info::program_type_specific_helper_prototype
const ebpf_helper_function_prototype_t * program_type_specific_helper_prototype
Definition: ebpf_program_types.h:47
-
_ebpf_program_info::program_type_descriptor
ebpf_program_type_descriptor_t program_type_descriptor
Definition: ebpf_program_types.h:45
-
_ebpf_program_info::count_of_program_type_specific_helpers
uint32_t count_of_program_type_specific_helpers
Definition: ebpf_program_types.h:46
-
_ebpf_program_info::count_of_global_helpers
uint32_t count_of_global_helpers
Definition: ebpf_program_types.h:48
-
_ebpf_program_section_info
Definition: ebpf_program_types.h:86
-
_ebpf_program_section_info::attach_type
const GUID * attach_type
Definition: ebpf_program_types.h:89
-
_ebpf_program_section_info::section_name
const wchar_t * section_name
Definition: ebpf_program_types.h:87
-
_ebpf_program_section_info::program_type
const GUID * program_type
Definition: ebpf_program_types.h:88
-
_ebpf_program_section_info::bpf_attach_type
uint32_t bpf_attach_type
Definition: ebpf_program_types.h:91
-
_ebpf_program_section_info::bpf_program_type
uint32_t bpf_program_type
Definition: ebpf_program_types.h:90
-
_ebpf_program_type_descriptor
Definition: ebpf_program_types.h:24
-
_ebpf_program_type_descriptor::bpf_prog_type
uint32_t bpf_prog_type
Definition: ebpf_program_types.h:28
-
_ebpf_program_type_descriptor::name
const char * name
Definition: ebpf_program_types.h:25
-
_ebpf_program_type_descriptor::program_type
GUID program_type
Definition: ebpf_program_types.h:27
-
_ebpf_program_type_descriptor::is_privileged
char is_privileged
Definition: ebpf_program_types.h:29
-
_ebpf_program_type_descriptor::context_descriptor
const ebpf_context_descriptor_t * context_descriptor
Definition: ebpf_program_types.h:26
+
_ebpf_helper_function_addresses
Definition: ebpf_program_types.h:48
+
_ebpf_helper_function_addresses::helper_function_address
uint64_t * helper_function_address
Definition: ebpf_program_types.h:50
+
_ebpf_helper_function_addresses::helper_function_count
uint32_t helper_function_count
Definition: ebpf_program_types.h:49
+
_ebpf_helper_function_prototype
Definition: ebpf_program_types.h:31
+
_ebpf_helper_function_prototype::arguments
ebpf_argument_type_t arguments[5]
Definition: ebpf_program_types.h:35
+
_ebpf_helper_function_prototype::return_type
ebpf_return_type_t return_type
Definition: ebpf_program_types.h:34
+
_ebpf_helper_function_prototype::name
const char * name
Definition: ebpf_program_types.h:33
+
_ebpf_helper_function_prototype::helper_id
uint32_t helper_id
Definition: ebpf_program_types.h:32
+
_ebpf_program_data
Definition: ebpf_program_types.h:68
+
_ebpf_program_data::program_info
const ebpf_program_info_t * program_info
Pointer to program information.
Definition: ebpf_program_types.h:69
+
_ebpf_program_data::context_destroy
ebpf_program_context_destroy_t context_destroy
Pointer to context destroy function.
Definition: ebpf_program_types.h:76
+
_ebpf_program_data::global_helper_function_addresses
const ebpf_helper_function_addresses_t * global_helper_function_addresses
Pointer to global helper function addresses being overriden.
Definition: ebpf_program_types.h:74
+
_ebpf_program_data::context_create
ebpf_program_context_create_t context_create
Pointer to context create function.
Definition: ebpf_program_types.h:75
+
_ebpf_program_data::program_type_specific_helper_function_addresses
const ebpf_helper_function_addresses_t * program_type_specific_helper_function_addresses
Definition: ebpf_program_types.h:71
+
_ebpf_program_data::required_irql
uint8_t required_irql
IRQL at which the program is invoked.
Definition: ebpf_program_types.h:77
+
_ebpf_program_info
Definition: ebpf_program_types.h:39
+
_ebpf_program_info::global_helper_prototype
const ebpf_helper_function_prototype_t * global_helper_prototype
Definition: ebpf_program_types.h:44
+
_ebpf_program_info::program_type_specific_helper_prototype
const ebpf_helper_function_prototype_t * program_type_specific_helper_prototype
Definition: ebpf_program_types.h:42
+
_ebpf_program_info::program_type_descriptor
ebpf_program_type_descriptor_t program_type_descriptor
Definition: ebpf_program_types.h:40
+
_ebpf_program_info::count_of_program_type_specific_helpers
uint32_t count_of_program_type_specific_helpers
Definition: ebpf_program_types.h:41
+
_ebpf_program_info::count_of_global_helpers
uint32_t count_of_global_helpers
Definition: ebpf_program_types.h:43
+
_ebpf_program_section_info
Definition: ebpf_program_types.h:81
+
_ebpf_program_section_info::attach_type
const GUID * attach_type
Definition: ebpf_program_types.h:84
+
_ebpf_program_section_info::section_name
const wchar_t * section_name
Definition: ebpf_program_types.h:82
+
_ebpf_program_section_info::program_type
const GUID * program_type
Definition: ebpf_program_types.h:83
+
_ebpf_program_section_info::bpf_attach_type
uint32_t bpf_attach_type
Definition: ebpf_program_types.h:86
+
_ebpf_program_section_info::bpf_program_type
uint32_t bpf_program_type
Definition: ebpf_program_types.h:85
+
_ebpf_program_type_descriptor
Definition: ebpf_program_types.h:22
+
_ebpf_program_type_descriptor::bpf_prog_type
uint32_t bpf_prog_type
Definition: ebpf_program_types.h:26
+
_ebpf_program_type_descriptor::name
const char * name
Definition: ebpf_program_types.h:23
+
_ebpf_program_type_descriptor::program_type
GUID program_type
Definition: ebpf_program_types.h:25
+
_ebpf_program_type_descriptor::is_privileged
char is_privileged
Definition: ebpf_program_types.h:27
+
_ebpf_program_type_descriptor::context_descriptor
const ebpf_context_descriptor_t * context_descriptor
Definition: ebpf_program_types.h:24