diff --git a/annotated.html b/annotated.html index f6c3cc65e1..5308da0115 100644 --- a/annotated.html +++ b/annotated.html @@ -110,7 +110,7 @@  Cebpf_api_verifier_stats_t  Ctcphdr  CUDP_HEADER_ - Cxdp_md + Cxdp_md_ diff --git a/bpf__legacy_8h_source.html b/bpf__legacy_8h_source.html index 0bbb787f53..d8708c611e 100644 --- a/bpf__legacy_8h_source.html +++ b/bpf__legacy_8h_source.html @@ -157,7 +157,7 @@
bpf_load_program
int bpf_load_program(enum bpf_prog_type type, const struct bpf_insn *insns, size_t insns_cnt, const char *license, __u32 kern_version, char *log_buf, size_t log_buf_sz)
Load (but do not attach) an eBPF program from eBPF instructions supplied by the caller.
bpf_load_program_xattr
int bpf_load_program_xattr(const struct bpf_load_program_attr *load_attr, char *log_buf, size_t log_buf_sz)
Load (but do not attach) an eBPF program from eBPF instructions supplied by the caller.
bpf_prog_type
bpf_prog_type
Definition: ebpf_structs.h:173
-
bpf_attach_type
bpf_attach_type
Definition: ebpf_structs.h:252
+
bpf_attach_type
bpf_attach_type
Definition: ebpf_structs.h:262
bpf_map_type
bpf_map_type
Definition: ebpf_structs.h:28
libbpf.h
bpf_create_map_attr
Definition: bpf_legacy.h:16
diff --git a/classes.html b/classes.html index 7f02a92ef2..ff737e2b68 100644 --- a/classes.html +++ b/classes.html @@ -81,7 +81,7 @@
UDP_HEADER_
X
-
xdp_md
+
xdp_md_
_
_bind_md
_bpf2c_version
_bpf_sock_ops
_ebpf_attach_provider_data
_ebpf_execution_context_state
_ebpf_extension_data
_ebpf_extension_dispatch_table
_ebpf_extension_program_dispatch_table
_ebpf_helper_function_addresses
_ebpf_helper_function_prototype
_ebpf_map_definition_in_file
_ebpf_map_definition_in_memory
_ebpf_map_info
_ebpf_program_data
_ebpf_program_info
_ebpf_program_section_info
_ebpf_program_type_descriptor
_ebpf_ring_buffer_map_async_query_result
_ebpf_section_info
_ebpf_stat
_ebpf_test_run_options
_ETHERNET_HEADER
_helper_function_entry
_IPV4_HEADER
_IPV6_HEADER
_map_entry
_map_initial_values
_metadata_table
_program_entry
diff --git a/ebpf__extension_8h_source.html b/ebpf__extension_8h_source.html index 84de847c37..9faebc1b30 100644 --- a/ebpf__extension_8h_source.html +++ b/ebpf__extension_8h_source.html @@ -163,8 +163,8 @@
ebpf_result.h
ebpf_result_t
enum ebpf_result ebpf_result_t
ebpf_structs.h
This file contains eBPF definitions common to eBPF programs, core execution engine as well as eBPF AP...
-
bpf_link_type
bpf_link_type
Definition: ebpf_structs.h:239
-
bpf_attach_type_t
enum bpf_attach_type bpf_attach_type_t
Definition: ebpf_structs.h:310
+
bpf_link_type
bpf_link_type
Definition: ebpf_structs.h:249
+
bpf_attach_type_t
enum bpf_attach_type bpf_attach_type_t
Definition: ebpf_structs.h:326
ebpf_windows.h
ebpf_program_type_t
GUID ebpf_program_type_t
Definition: ebpf_windows.h:43
_ebpf_attach_provider_data
Definition: ebpf_extension.h:96
diff --git a/ebpf__nethooks_8h.html b/ebpf__nethooks_8h.html index aeac6f7217..040ede30b1 100644 --- a/ebpf__nethooks_8h.html +++ b/ebpf__nethooks_8h.html @@ -81,7 +81,7 @@ - + @@ -104,11 +104,11 @@

Data Structures

struct  xdp_md
struct  xdp_md_
 
struct  _bind_md
 
- - + + - + @@ -166,8 +166,8 @@

Typedefs

typedef struct xdp_md xdp_md_t
 
typedef struct xdp_md_ xdp_md_t
 
typedef enum _xdp_action xdp_action_t
 
typedef xdp_action_t xdp_hook_t(xdp_md_t *context)
typedef xdp_action_t xdp_hook_t(xdp_md_t *context)
 Handle an incoming packet as early as possible. More...
 
typedef enum _bind_operation bind_operation_t
- - + + @@ -429,13 +429,13 @@

Functions

int bpf_xdp_adjust_head (xdp_md_t *ctx, int delta)
 Adjust XDP context data pointer. More...
int bpf_xdp_adjust_head (xdp_md_t *ctx, int delta)
 Adjust XDP_TEST context data pointer. More...
 
uint64_t bpf_sock_addr_get_current_pid_tgid (bpf_sock_addr_t *ctx)
 Get current pid and tgid (sock_addr specific only). More...
- +
typedef xdp_action_t xdp_hook_t(xdp_md_t *context)typedef xdp_action_t xdp_hook_t(xdp_md_t *context)

Handle an incoming packet as early as possible.

-

Program type: EBPF_PROGRAM_TYPE_XDP

+

Program type: EBPF_PROGRAM_TYPE_XDP_TEST

Parameters
@@ -453,14 +453,14 @@

-

◆ xdp_md_t

+ +

◆ xdp_md_t

[in]contextPacket metadata.
- +
typedef struct xdp_md xdp_md_ttypedef struct xdp_md_ xdp_md_t
@@ -680,7 +680,7 @@

int bpf_xdp_adjust_head ( - xdp_md_t *  + xdp_md_tctx, @@ -697,10 +697,10 @@

-

Adjust XDP context data pointer.

+

Adjust XDP_TEST context data pointer.

Parameters
- +
[in]ctxXDP context.
[in]ctxXDP_TEST context.
[in]deltaNumber of bytes to move the data pointer by.
diff --git a/ebpf__nethooks_8h_source.html b/ebpf__nethooks_8h_source.html index d9f7b6297c..2e83091fb0 100644 --- a/ebpf__nethooks_8h_source.html +++ b/ebpf__nethooks_8h_source.html @@ -77,17 +77,17 @@
6 // This file contains APIs for hooks and helpers that are
7 // exposed by netebpfext.sys for use by eBPF programs.
8 
-
9 // XDP hook. We use "struct xdp_md" for cross-platform compatibility.
-
10 typedef struct xdp_md
+
9 // XDP_TEST hook. We use "struct xdp_md" for cross-platform compatibility.
+
10 typedef struct xdp_md_
11 {
-
12  void* data;
-
13  void* data_end;
-
14  uint64_t data_meta;
-
15  uint32_t ingress_ifindex;
+
12  void* data;
+
13  void* data_end;
+
14  uint64_t data_meta;
+
15  uint32_t ingress_ifindex;
16 
17  /* size: 26, cachelines: 1, members: 4 */
18  /* last cacheline: 26 bytes */
- +
20 
21 typedef enum _xdp_action
22 {
@@ -97,9 +97,9 @@
27 
38 typedef xdp_action_t
-
39 xdp_hook_t(xdp_md_t* context);
+
39 xdp_hook_t(xdp_md_t* context);
40 
-
41 // XDP helper functions.
+
41 // XDP_TEST helper functions.
42 #define XDP_EXT_HELPER_FN_BASE 0xFFFF
43 
44 #ifndef __doxygen
@@ -111,7 +111,7 @@
52 
-
62 EBPF_HELPER(int, bpf_xdp_adjust_head, (xdp_md_t * ctx, int delta));
+
62 EBPF_HELPER(int, bpf_xdp_adjust_head, (xdp_md_t * ctx, int delta));
63 #ifndef __doxygen
64 #define bpf_xdp_adjust_head ((bpf_xdp_adjust_head_t)BPF_FUNC_xdp_adjust_head)
65 #endif
@@ -269,6 +269,7 @@
@ BIND_OPERATION_POST_BIND
After port allocation.
Definition: ebpf_nethooks.h:72
xdp_action_t xdp_hook_t(xdp_md_t *context)
Handle an incoming packet as early as possible.
Definition: ebpf_nethooks.h:39
enum _xdp_action xdp_action_t
+
struct xdp_md_ xdp_md_t
_bind_action
Definition: ebpf_nethooks.h:88
@ BIND_REDIRECT
Change the bind endpoint.
Definition: ebpf_nethooks.h:91
@ BIND_PERMIT
Permit the bind operation.
Definition: ebpf_nethooks.h:89
@@ -282,11 +283,10 @@
ebpf_nethook_helper_id_t
Definition: ebpf_nethooks.h:49
@ BPF_FUNC_xdp_adjust_head
Definition: ebpf_nethooks.h:50
#define XDP_EXT_HELPER_FN_BASE
Definition: ebpf_nethooks.h:42
-
struct xdp_md xdp_md_t
enum _bind_action bind_action_t
struct _bind_md bind_md_t
struct _bpf_sock_ops bpf_sock_ops_t
-
int bpf_xdp_adjust_head(xdp_md_t *ctx, int delta)
Adjust XDP context data pointer.
+
int bpf_xdp_adjust_head(xdp_md_t *ctx, int delta)
Adjust XDP_TEST context data pointer.
Definition: ebpf_nethooks.h:77
uint8_t protocol
Protocol number (e.g., IPPROTO_TCP).
Definition: ebpf_nethooks.h:84
bind_operation_t operation
Operation to do.
Definition: ebpf_nethooks.h:83
@@ -318,11 +318,11 @@
uint64_t interface_luid
Interface LUID.
Definition: ebpf_nethooks.h:151
uint32_t msg_src_ip4
Definition: ebpf_nethooks.h:132
uint32_t family
IP address family.
Definition: ebpf_nethooks.h:123
-
Definition: ebpf_nethooks.h:11
-
void * data_end
Pointer to end of packet data.
Definition: ebpf_nethooks.h:13
-
void * data
Pointer to start of packet data.
Definition: ebpf_nethooks.h:12
-
uint64_t data_meta
Packet metadata.
Definition: ebpf_nethooks.h:14
-
uint32_t ingress_ifindex
Ingress interface index.
Definition: ebpf_nethooks.h:15
+
Definition: ebpf_nethooks.h:11
+
void * data_end
Pointer to end of packet data.
Definition: ebpf_nethooks.h:13
+
uint64_t data_meta
Packet metadata.
Definition: ebpf_nethooks.h:14
+
uint32_t ingress_ifindex
Ingress interface index.
Definition: ebpf_nethooks.h:15
+
void * data
Pointer to start of packet data.
Definition: ebpf_nethooks.h:12