Set custom LibXDP/LibBPF logging.

This commit is contained in:
Christian Deacon
2025-02-26 11:48:38 -05:00
parent 75ee52555c
commit 8b91e59364
4 changed files with 50 additions and 4 deletions

View File

@@ -11,6 +11,7 @@
#define XDP_OBJ_PATH "/etc/xdpfw/xdp_prog.o"
int FindMapFd(struct xdp_program *prog, const char *map_name);
struct xdp_program *LoadBpfObj(const char *file_name);
void SetLibBPFLogMode(int silent);
struct xdp_program *LoadBpfObj(const char *file_name, int strict);
int AttachXdp(struct xdp_program *prog, char** mode, int ifidx, u8 detach, cmdline_t *cmd);
void UpdateFilters(int filters_map, config__t *cfg);