eBPF for Windows
ebpf_program_attach_type_guids.h
Go to the documentation of this file.
1 // Copyright (c) Microsoft Corporation
2 // SPDX-License-Identifier: MIT
3 #pragma once
4 
5 #include "ebpf_windows.h"
6 
7 #include <stdbool.h>
8 #include <stdint.h>
9 
10 #ifdef __cplusplus
11 extern "C"
12 {
13 #endif
14  //
15  // Attach Types.
16  //
17 
18  __declspec(selectany) ebpf_attach_type_t EBPF_ATTACH_TYPE_UNSPECIFIED = {0};
19 
24  __declspec(selectany) ebpf_attach_type_t EBPF_ATTACH_TYPE_XDP = {
25  0x85e0d8ef, 0x579e, 0x4931, {0xb0, 0x72, 0x8e, 0xe2, 0x26, 0xbb, 0x2e, 0x9d}};
26 
31  __declspec(selectany) ebpf_attach_type_t EBPF_ATTACH_TYPE_BIND = {
32  0xb9707e04, 0x8127, 0x4c72, {0x83, 0x3e, 0x05, 0xb1, 0xfb, 0x43, 0x94, 0x96}};
33 
41  0xa82e37b1, 0xaee7, 0x11ec, {0x9a, 0x30, 0x18, 0x60, 0x24, 0x89, 0xbe, 0xee}};
42 
50  0xa82e37b2, 0xaee7, 0x11ec, {0x9a, 0x30, 0x18, 0x60, 0x24, 0x89, 0xbe, 0xee}};
51 
59  0xa82e37b3, 0xaee7, 0x11ec, {0x9a, 0x30, 0x18, 0x60, 0x24, 0x89, 0xbe, 0xee}};
60 
68  0xa82e37b4, 0xaee7, 0x11ec, {0x9a, 0x30, 0x18, 0x60, 0x24, 0x89, 0xbe, 0xee}};
69 
75  0x837d02cd, 0x3251, 0x4632, {0x8d, 0x94, 0x60, 0xd3, 0xb4, 0x57, 0x69, 0xf2}};
76 
81  __declspec(selectany) ebpf_attach_type_t EBPF_ATTACH_TYPE_SAMPLE = {
82  0xf788ef4b, 0x207d, 0x4dc3, {0x85, 0xcf, 0x0f, 0x2e, 0xa1, 0x07, 0x21, 0x3c}};
83 
84  //
85  // Program Types.
86  //
87 
89 
90 #define EBPF_PROGRAM_TYPE_XDP_GUID \
91  { \
92  0xf1832a85, 0x85d5, 0x45b0, { 0x98, 0xa0, 0x70, 0x69, 0xd6, 0x30, 0x13, 0xb0 } \
93  }
94 
104 
105 #define EBPF_PROGRAM_TYPE_BIND_GUID \
106  { \
107  0x608c517c, 0x6c52, 0x4a26, { 0xb6, 0x77, 0xbb, 0x1c, 0x34, 0x42, 0x5a, 0xdf } \
108  }
109 
119 
120 #define EBPF_PROGRAM_TYPE_CGROUP_SOCK_ADDR_GUID \
121  { \
122  0x92ec8e39, 0xaeec, 0x11ec, { 0x9a, 0x30, 0x18, 0x60, 0x24, 0x89, 0xbe, 0xee } \
123  }
124 
135  __declspec(selectany)
137 
138 #define EBPF_PROGRAM_TYPE_SOCK_OPS_GUID \
139  { \
140  0x43fb224d, 0x68f8, 0x46d6, { 0xaa, 0x3f, 0xc8, 0x56, 0x51, 0x8c, 0xbb, 0x32 } \
141  }
142 
148 
149 #define EBPF_PROGRAM_TYPE_SAMPLE_GUID \
150  { \
151  0xf788ef4a, 0x207d, 0x4dc3, { 0x85, 0xcf, 0x0f, 0x2e, 0xa1, 0x07, 0x21, 0x3c } \
152  }
153 
160 
161 #ifdef __cplusplus
162 }
163 #endif
ebpf_attach_type_t EBPF_ATTACH_TYPE_CGROUP_SOCK_OPS
Attach type for handling socket event notifications.
Definition: ebpf_program_attach_type_guids.h:74
ebpf_attach_type_t EBPF_ATTACH_TYPE_CGROUP_INET6_CONNECT
The programs attached to the INET6_CONNECT hook will be invoked for connect() calls on TCP or UDP soc...
Definition: ebpf_program_attach_type_guids.h:49
ebpf_program_type_t EBPF_PROGRAM_TYPE_XDP
Program type for handling incoming packets as early as possible.
Definition: ebpf_program_attach_type_guids.h:103
ebpf_attach_type_t EBPF_ATTACH_TYPE_SAMPLE
Attach type implemented by eBPF Sample Extension driver, used for testing.
Definition: ebpf_program_attach_type_guids.h:81
ebpf_attach_type_t EBPF_ATTACH_TYPE_CGROUP_INET6_RECV_ACCEPT
The programs attached to the INET6_RECV_ACCEPT hook will get invoked for TCP accept() calls or for th...
Definition: ebpf_program_attach_type_guids.h:67
ebpf_attach_type_t EBPF_ATTACH_TYPE_XDP
Attach type for handling incoming packets as early as possible.
Definition: ebpf_program_attach_type_guids.h:24
#define EBPF_PROGRAM_TYPE_SAMPLE_GUID
Definition: ebpf_program_attach_type_guids.h:149
ebpf_attach_type_t EBPF_ATTACH_TYPE_UNSPECIFIED
Definition: ebpf_program_attach_type_guids.h:18
ebpf_program_type_t EBPF_PROGRAM_TYPE_SAMPLE
Program type for handling calls from the eBPF sample extension. Used for testing.
Definition: ebpf_program_attach_type_guids.h:159
ebpf_attach_type_t EBPF_ATTACH_TYPE_CGROUP_INET4_CONNECT
The programs attached to the INET4_CONNECT hook will be invoked for connect() calls on TCP or UDP soc...
Definition: ebpf_program_attach_type_guids.h:40
ebpf_program_type_t EBPF_PROGRAM_TYPE_BIND
Program type for handling socket bind() requests.
Definition: ebpf_program_attach_type_guids.h:118
#define EBPF_PROGRAM_TYPE_CGROUP_SOCK_ADDR_GUID
Definition: ebpf_program_attach_type_guids.h:120
ebpf_attach_type_t EBPF_ATTACH_TYPE_BIND
Attach type for handling socket bind() requests.
Definition: ebpf_program_attach_type_guids.h:31
#define EBPF_PROGRAM_TYPE_XDP_GUID
Definition: ebpf_program_attach_type_guids.h:90
ebpf_attach_type_t EBPF_ATTACH_TYPE_CGROUP_INET4_RECV_ACCEPT
The programs attached to the INET4_RECV_ACCEPT hook will get invoked for TCP accept() calls or for th...
Definition: ebpf_program_attach_type_guids.h:58
#define EBPF_PROGRAM_TYPE_BIND_GUID
Definition: ebpf_program_attach_type_guids.h:105
ebpf_program_type_t EBPF_PROGRAM_TYPE_SOCK_OPS
Program type for handling socket event notifications.
Definition: ebpf_program_attach_type_guids.h:147
#define EBPF_PROGRAM_TYPE_SOCK_OPS_GUID
Definition: ebpf_program_attach_type_guids.h:138
ebpf_program_type_t EBPF_PROGRAM_TYPE_CGROUP_SOCK_ADDR
Program type for handling various socket operations such as connect(), accept() etc.
Definition: ebpf_program_attach_type_guids.h:136
ebpf_program_type_t EBPF_PROGRAM_TYPE_UNSPECIFIED
Definition: ebpf_program_attach_type_guids.h:88
GUID ebpf_attach_type_t
Definition: ebpf_windows.h:44
GUID ebpf_program_type_t
Definition: ebpf_windows.h:43