Modularized the ebpf program loading and attaching.

This commit is contained in:
h3xduck
2021-12-30 21:09:26 -05:00
parent 19a11da18f
commit d9a70f866c
12 changed files with 947 additions and 886 deletions

View File

@@ -0,0 +1,10 @@
#ifndef __MOD_MANAGER_H
#define __MOD_MANAGER_H
#include <unistd.h>
struct module_config{
//TODO
};
#endif

View File

View File

@@ -0,0 +1,5 @@
#ifndef __MOD_XDP_H
#define __MOD_XDP_H
#endif

View File

@@ -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