eBPF for Windows
Loading...
Searching...
No Matches
ebpf_program_attach_type_guids.h
Go to the documentation of this file.
1// Copyright (c) eBPF for Windows contributors
2// SPDX-License-Identifier: MIT
3#pragma once
4
5#include "ebpf_windows.h"
6
7#ifdef __cplusplus
8extern "C"
9{
10#endif
11 //
12 // Attach Types.
13 //
14
16
21 __declspec(selectany) ebpf_attach_type_t EBPF_ATTACH_TYPE_XDP = {
22 0x85e0d8ef, 0x579e, 0x4931, {0xb0, 0x72, 0x8e, 0xe2, 0x26, 0xbb, 0x2e, 0x9d}};
23
24#define EBPF_ATTACH_TYPE_BIND_GUID \
25 { \
26 0xb9707e04, 0x8127, 0x4c72, { 0x83, 0x3e, 0x05, 0xb1, 0xfb, 0x43, 0x94, 0x96 } \
27 }
34
35#define EBPF_ATTACH_TYPE_CGROUP_INET4_CONNECT_GUID \
36 { \
37 0xa82e37b1, 0xaee7, 0x11ec, { 0x9a, 0x30, 0x18, 0x60, 0x24, 0x89, 0xbe, 0xee } \
38 }
47
48#define EBPF_ATTACH_TYPE_CGROUP_INET4_CONNECT_AUTHORIZATION_GUID \
49 { \
50 0x6076c13a, 0xf04f, 0x4ff8, { 0x83, 0x80, 0x90, 0x85, 0x53, 0xf2, 0x22, 0x76 } \
51 }
60
61#define EBPF_ATTACH_TYPE_CGROUP_INET6_CONNECT_GUID \
62 { \
63 0xa82e37b2, 0xaee7, 0x11ec, { 0x9a, 0x30, 0x18, 0x60, 0x24, 0x89, 0xbe, 0xee } \
64 }
73
74#define EBPF_ATTACH_TYPE_CGROUP_INET6_CONNECT_AUTHORIZATION_GUID \
75 { \
76 0x54b0b6ed, 0x432a, 0x4674, { 0x8b, 0x27, 0x8d, 0x9f, 0x5b, 0x40, 0xc6, 0x75 } \
77 }
86
87#define EBPF_ATTACH_TYPE_CGROUP_INET4_RECV_ACCEPT_GUID \
88 { \
89 0xa82e37b3, 0xaee7, 0x11ec, { 0x9a, 0x30, 0x18, 0x60, 0x24, 0x89, 0xbe, 0xee } \
90 }
99
100#define EBPF_ATTACH_TYPE_CGROUP_INET6_RECV_ACCEPT_GUID \
101 { \
102 0xa82e37b4, 0xaee7, 0x11ec, { 0x9a, 0x30, 0x18, 0x60, 0x24, 0x89, 0xbe, 0xee } \
103 }
112
113#define EBPF_ATTACH_TYPE_CGROUP_SOCK_OPS_GUID \
114 { \
115 0x837d02cd, 0x3251, 0x4632, { 0x8d, 0x94, 0x60, 0xd3, 0xb4, 0x57, 0x69, 0xf2 } \
116 }
122
123#define EBPF_ATTACH_TYPE_CGROUP_INET4_BIND_GUID \
124 { \
125 0x0d7ce21a, 0x7773, 0x405c, { 0x93, 0xb6, 0xd5, 0xbf, 0xb9, 0x2e, 0x74, 0xbc } \
126 }
134
135#define EBPF_ATTACH_TYPE_CGROUP_INET6_BIND_GUID \
136 { \
137 0x81de64c0, 0x2973, 0x468d, { 0x83, 0x82, 0x67, 0x69, 0xf0, 0x33, 0xd7, 0x59 } \
138 }
146
147#define EBPF_ATTACH_TYPE_CGROUP_INET4_LISTEN_GUID \
148 { \
149 0xe1b0cb3d, 0xd70c, 0x4ee2, { 0xb2, 0x3a, 0x07, 0x42, 0xbe, 0xdb, 0x06, 0xd6 } \
150 }
157
158#define EBPF_ATTACH_TYPE_CGROUP_INET6_LISTEN_GUID \
159 { \
160 0x4e72f92e, 0x5ed0, 0x4fe5, { 0xb8, 0x51, 0xb1, 0x24, 0xfe, 0x14, 0x07, 0x4d } \
161 }
168
169#define EBPF_ATTACH_TYPE_SAMPLE_GUID \
170 { \
171 0xf788ef4b, 0x207d, 0x4dc3, { 0x85, 0xcf, 0x0f, 0x2e, 0xa1, 0x07, 0x21, 0x3c } \
172 }
173
179
180#define EBPF_ATTACH_TYPE_XDP_TEST_GUID \
181 { \
182 0x0dccc15d, 0xa5f9, 0x4dc1, { 0xac, 0x79, 0xfa, 0x25, 0xee, 0xf2, 0x15, 0xc3 } \
183 }
189
190 //
191 // Program Types.
192 //
193
195
196#define EBPF_PROGRAM_TYPE_XDP_GUID \
197 { \
198 0xf1832a85, 0x85d5, 0x45b0, { 0x98, 0xa0, 0x70, 0x69, 0xd6, 0x30, 0x13, 0xb0 } \
199 }
200
210
211#define EBPF_PROGRAM_TYPE_BIND_GUID \
212 { \
213 0x608c517c, 0x6c52, 0x4a26, { 0xb6, 0x77, 0xbb, 0x1c, 0x34, 0x42, 0x5a, 0xdf } \
214 }
215
227
228#define EBPF_PROGRAM_TYPE_CGROUP_SOCK_ADDR_GUID \
229 { \
230 0x92ec8e39, 0xaeec, 0x11ec, { 0x9a, 0x30, 0x18, 0x60, 0x24, 0x89, 0xbe, 0xee } \
231 }
232
247
248#define EBPF_PROGRAM_TYPE_SOCK_OPS_GUID \
249 { \
250 0x43fb224d, 0x68f8, 0x46d6, { 0xaa, 0x3f, 0xc8, 0x56, 0x51, 0x8c, 0xbb, 0x32 } \
251 }
252
258
259#define EBPF_PROGRAM_TYPE_SAMPLE_GUID \
260 { \
261 0xf788ef4a, 0x207d, 0x4dc3, { 0x85, 0xcf, 0x0f, 0x2e, 0xa1, 0x07, 0x21, 0x3c } \
262 }
263
270
271#define EBPF_PROGRAM_TYPE_XDP_TEST_GUID \
272 { \
273 0xce8ccef8, 0x4241, 0x4975, { 0x98, 0x4d, 0xbb, 0x39, 0x21, 0xdf, 0xa7, 0x3c } \
274 }
275
285
286#ifdef __cplusplus
287}
288#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:121
ebpf_attach_type_t EBPF_ATTACH_TYPE_CGROUP_INET4_LISTEN
Attach type for handling IPv4 socket listen operations.
Definition ebpf_program_attach_type_guids.h:155
#define EBPF_ATTACH_TYPE_CGROUP_INET6_LISTEN_GUID
Definition ebpf_program_attach_type_guids.h:158
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:71
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:209
#define EBPF_ATTACH_TYPE_BIND_GUID
Definition ebpf_program_attach_type_guids.h:24
ebpf_attach_type_t EBPF_ATTACH_TYPE_CGROUP_INET6_CONNECT_AUTHORIZATION
The program attached to the INET6_CONNECT_AUTHORIZATION hook will be invoked for connect() calls on T...
Definition ebpf_program_attach_type_guids.h:84
ebpf_attach_type_t EBPF_ATTACH_TYPE_CGROUP_INET6_LISTEN
Attach type for handling IPv6 socket listen operations.
Definition ebpf_program_attach_type_guids.h:166
#define EBPF_ATTACH_TYPE_CGROUP_INET6_BIND_GUID
Definition ebpf_program_attach_type_guids.h:135
#define EBPF_ATTACH_TYPE_XDP_TEST_GUID
Definition ebpf_program_attach_type_guids.h:180
#define EBPF_ATTACH_TYPE_CGROUP_INET4_LISTEN_GUID
Definition ebpf_program_attach_type_guids.h:147
#define EBPF_ATTACH_TYPE_CGROUP_INET4_BIND_GUID
Definition ebpf_program_attach_type_guids.h:123
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:178
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:110
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:21
#define EBPF_ATTACH_TYPE_CGROUP_INET4_RECV_ACCEPT_GUID
Definition ebpf_program_attach_type_guids.h:87
#define EBPF_ATTACH_TYPE_CGROUP_INET6_RECV_ACCEPT_GUID
Definition ebpf_program_attach_type_guids.h:100
#define EBPF_ATTACH_TYPE_CGROUP_INET6_CONNECT_AUTHORIZATION_GUID
Definition ebpf_program_attach_type_guids.h:74
ebpf_program_type_t EBPF_PROGRAM_TYPE_XDP_TEST
Program type for handling incoming packets as early as possible.
Definition ebpf_program_attach_type_guids.h:284
ebpf_attach_type_t EBPF_ATTACH_TYPE_CGROUP_INET4_CONNECT_AUTHORIZATION
The program attached to the INET4_CONNECT_AUTHORIZATION hook will be invoked for connect() calls on T...
Definition ebpf_program_attach_type_guids.h:58
#define EBPF_ATTACH_TYPE_CGROUP_INET6_CONNECT_GUID
Definition ebpf_program_attach_type_guids.h:61
#define EBPF_PROGRAM_TYPE_SAMPLE_GUID
Definition ebpf_program_attach_type_guids.h:259
ebpf_attach_type_t EBPF_ATTACH_TYPE_CGROUP_INET6_BIND
The programs attached to the INET6_BIND hook will be invoked when an IPv6 socket is bound to an addre...
Definition ebpf_program_attach_type_guids.h:144
ebpf_attach_type_t EBPF_ATTACH_TYPE_UNSPECIFIED
Definition ebpf_program_attach_type_guids.h:15
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:269
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:45
ebpf_program_type_t EBPF_PROGRAM_TYPE_BIND
Program type for handling socket bind operations.
Definition ebpf_program_attach_type_guids.h:226
#define EBPF_ATTACH_TYPE_CGROUP_INET4_CONNECT_GUID
Definition ebpf_program_attach_type_guids.h:35
#define EBPF_PROGRAM_TYPE_CGROUP_SOCK_ADDR_GUID
Definition ebpf_program_attach_type_guids.h:228
ebpf_attach_type_t EBPF_ATTACH_TYPE_BIND
Attach type for handling socket bind operations.
Definition ebpf_program_attach_type_guids.h:33
#define EBPF_PROGRAM_TYPE_XDP_GUID
Definition ebpf_program_attach_type_guids.h:196
#define EBPF_ATTACH_TYPE_CGROUP_INET4_CONNECT_AUTHORIZATION_GUID
Definition ebpf_program_attach_type_guids.h:48
#define EBPF_ATTACH_TYPE_SAMPLE_GUID
Definition ebpf_program_attach_type_guids.h:169
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:97
ebpf_attach_type_t EBPF_ATTACH_TYPE_CGROUP_INET4_BIND
The programs attached to the INET4_BIND hook will be invoked when an IPv4 socket is bound to an addre...
Definition ebpf_program_attach_type_guids.h:132
#define EBPF_PROGRAM_TYPE_XDP_TEST_GUID
Definition ebpf_program_attach_type_guids.h:271
ebpf_attach_type_t EBPF_ATTACH_TYPE_XDP_TEST
Attach type for handling incoming packets as early as possible.
Definition ebpf_program_attach_type_guids.h:188
#define EBPF_PROGRAM_TYPE_BIND_GUID
Definition ebpf_program_attach_type_guids.h:211
ebpf_program_type_t EBPF_PROGRAM_TYPE_SOCK_OPS
Program type for handling socket event notifications.
Definition ebpf_program_attach_type_guids.h:257
#define EBPF_ATTACH_TYPE_CGROUP_SOCK_OPS_GUID
Definition ebpf_program_attach_type_guids.h:113
#define EBPF_PROGRAM_TYPE_SOCK_OPS_GUID
Definition ebpf_program_attach_type_guids.h:248
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:245
ebpf_program_type_t EBPF_PROGRAM_TYPE_UNSPECIFIED
Definition ebpf_program_attach_type_guids.h:194
GUID ebpf_attach_type_t
Definition ebpf_windows.h:67
GUID ebpf_program_type_t
Definition ebpf_windows.h:66