Commit Graph

267 Commits

Author SHA1 Message Date
Christian Deacon
c3965b8772 Merge pull request #57 from gamemann/20250223-morerestructuring
More Restructuring & Cleanup
2025-02-23 07:56:39 -05:00
Christian Deacon
6047718c6a Add another note. 2025-02-23 07:43:12 -05:00
Christian Deacon
247b752e4a Update comment note. 2025-02-23 07:41:51 -05:00
Christian Deacon
eae98244b2 Move a couple constants from constants.h to config.h. 2025-02-23 07:38:03 -05:00
Christian Deacon
6b9b101a62 Organize Makefile. 2025-02-23 07:32:59 -05:00
Christian Deacon
6298d7ee17 conf_stat shouldn't be global and organize more code. 2025-02-23 07:26:51 -05:00
Christian Deacon
e5c11bb20c Organize codeand potentially increase performance in XDP program. 2025-02-23 07:15:37 -05:00
Christian Deacon
4e7c563274 Add better error handling to loader. 2025-02-23 07:15:12 -05:00
Christian Deacon
f093bf96c4 Add more error handling when detaching XDP program. 2025-02-23 06:42:37 -05:00
Christian Deacon
28c99fe1ec Check for detach mode before verbose output. 2025-02-23 06:42:16 -05:00
Christian Deacon
ea47a7a435 Cleanup and organize a lot of Loader code. 2025-02-23 06:34:37 -05:00
Christian Deacon
b27558cee7 Update Makefile. 2025-02-23 06:34:06 -05:00
Christian Deacon
3b55e4dded Add Loader XDP source files. 2025-02-23 06:33:56 -05:00
Christian Deacon
b6b43b67c2 Add Loader stats source files. 2025-02-23 06:33:40 -05:00
Christian Deacon
1f1c76854b Improve generic code. 2025-02-22 21:31:45 -05:00
Christian Deacon
2a1dbc6626 Remove unused variables inside of Makefile. 2025-02-22 12:22:21 -05:00
Christian Deacon
422d23e87b Fix build error with LIBBPF_LIBXDP_STATIC=1 due to missing LibBPF and LibXDP object files when linking and simplify build process further. 2025-02-22 12:15:57 -05:00
Christian Deacon
324405ac26 Update XDP Tools submodule. 2025-02-22 12:00:16 -05:00
Christian Deacon
fd765890e9 Rename loader.c to prog.c for organization. 2025-02-22 11:50:13 -05:00
Christian Deacon
e3b1f04c11 Organize cmdline util. 2025-02-22 11:41:48 -05:00
Christian Deacon
060aafbaf5 Add note in README. 2025-02-22 11:41:21 -05:00
Christian Deacon
117ec22632 Oops, remove LibXDP install in run workflow. 2025-02-22 10:59:07 -05:00
Christian Deacon
179cbeab6a Add support for linking LibBPF and LibXDP object files inside of Makefile if LIBBPF_LIBXDP_STATIC is 1. 2025-02-22 10:56:49 -05:00
Christian Deacon
73cf82303e We need to install LibXDP inside of the run workflow. 2025-02-22 10:46:20 -05:00
Christian Deacon
155e263368 Merge branch 'master' of github.com:gamemann/XDP-Firewall 2025-02-22 10:42:53 -05:00
Christian Deacon
0efcdb413a Update build workflow. 2025-02-22 10:42:03 -05:00
Christian Deacon
7bdf5d20e1 Merge pull request #56 from gamemann/20250222-restructure
Project Restructure (Source Code & Build Process)
2025-02-22 10:40:26 -05:00
Christian Deacon
7f59b678cf Update links in README. 2025-02-22 10:29:19 -05:00
Christian Deacon
09491e1462 Add typedefs and organize code. 2025-02-22 10:24:21 -05:00
Christian Deacon
1b9e805207 Organize more code. 2025-02-22 10:06:32 -05:00
Christian Deacon
c7a1822ce5 Rename some config constants. 2025-02-22 10:05:49 -05:00
Christian Deacon
50b0efa58a Add note about linked objects not working with __always_inline functions. 2025-02-22 10:02:35 -05:00
Christian Deacon
8a4ddf5184 We don't need to specifically link LibBPF and LibXDP object files. 2025-02-22 10:02:08 -05:00
Christian Deacon
8756892791 Restructure project and organize code. 2025-02-22 09:50:57 -05:00
Christian Deacon
e3d47fda6f Oops, fix error with USE_FLOW_RL commented. 2025-02-11 08:19:51 -05:00
Christian Deacon
376b39d307 No need to pass ip_stats to function. 2025-02-11 08:17:20 -05:00
Christian Deacon
82d3c50bf3 Add flow-based client stats by default for rate limits and organize/clean code. 2025-02-11 07:51:40 -05:00
Christian Deacon
91138f1116 Add IPv4 CIDR support and clean up code. 2024-08-13 02:55:01 -04:00
Christian Deacon
1ce17ddd77 Update README. 2024-07-15 21:51:41 -04:00
Christian Deacon
62c610f577 Decrease max filters from 80 to 60. 2024-07-15 21:44:13 -04:00
Christian Deacon
110e27d206 Improve documentation. 2024-07-05 18:08:32 -04:00
Christian Deacon
804e5a9670 Update README. 2024-07-05 02:11:31 -04:00
Christian Deacon
b0403b4e96 Improve documentation and README. 2024-07-05 00:50:49 -04:00
Christian Deacon
e22168bb0f Update README. 2024-07-04 23:55:53 -04:00
Christian Deacon
8a7619dbdf Update README. 2024-06-13 20:44:31 -04:00
Christian Deacon
a53e01d0fe Set interface option to NULL by default. 2024-06-13 20:36:23 -04:00
Christian Deacon
f480f06c4b Rename config settings for consistency. 2024-06-13 20:33:09 -04:00
Christian Deacon
a80458efff Uncomment DOSTATSONBLOCKMAP by default. 2024-06-13 20:24:40 -04:00
Christian Deacon
236c25cdfa Update example config. 2024-06-13 20:24:21 -04:00
Christian Deacon
525b9465cf Add std_update_time option. 2024-06-13 20:03:21 -04:00