mirror of
https://github.com/h3xduck/TripleCross.git
synced 2025-12-26 19:33:07 +08:00
Modularized the ebpf program loading and attaching.
This commit is contained in:
10
src/user/include/modules/module_manager.h
Normal file
10
src/user/include/modules/module_manager.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#ifndef __MOD_MANAGER_H
|
||||
#define __MOD_MANAGER_H
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
struct module_config{
|
||||
//TODO
|
||||
};
|
||||
|
||||
#endif
|
||||
0
src/user/include/modules/sched.h
Normal file
0
src/user/include/modules/sched.h
Normal file
5
src/user/include/modules/xdp.h
Normal file
5
src/user/include/modules/xdp.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#ifndef __MOD_XDP_H
|
||||
#define __MOD_XDP_H
|
||||
|
||||
|
||||
#endif
|
||||
@@ -1,11 +1,4 @@
|
||||
#ifndef __XDP_FILTER_H
|
||||
#define __XDP_FILTER_H
|
||||
|
||||
#define MAX_PAYLOAD_LEN 127
|
||||
|
||||
struct event {
|
||||
char payload[MAX_PAYLOAD_LEN];
|
||||
//bool exit_event;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user