Christian Deacon
|
d9998580f2
|
Split logging logic from XDP program into its own files.
|
2025-02-26 16:31:45 -05:00 |
|
Christian Deacon
|
353aedab42
|
Use filter ID + 1.
|
2025-02-26 16:30:37 -05:00 |
|
Christian Deacon
|
073f656da1
|
Improve stats output.
|
2025-02-26 12:31:16 -05:00 |
|
Christian Deacon
|
e54fb3fe79
|
Add more info to filter logging.
|
2025-02-26 12:16:33 -05:00 |
|
Christian Deacon
|
f27481fb3b
|
Add comment to HandleRbEvent() function.
|
2025-02-26 12:01:10 -05:00 |
|
Christian Deacon
|
53e801be8f
|
Set verbose to 2 by default.
|
2025-02-26 11:59:18 -05:00 |
|
Christian Deacon
|
b3a9693d80
|
Add tool info function.
|
2025-02-26 11:57:48 -05:00 |
|
Christian Deacon
|
24db0f6bda
|
Fix error.
|
2025-02-26 11:49:53 -05:00 |
|
Christian Deacon
|
8b91e59364
|
Set custom LibXDP/LibBPF logging.
|
2025-02-26 11:48:38 -05:00 |
|
Christian Deacon
|
8596997b98
|
Add filter logging.
|
2025-02-26 11:13:59 -05:00 |
|
Christian Deacon
|
bf761af250
|
Implement new logging system.
|
2025-02-26 09:56:28 -05:00 |
|
Christian Deacon
|
e14f980107
|
Improve verbose output.
|
2025-02-24 16:03:37 -05:00 |
|
Christian Deacon
|
d288a78775
|
Restructure includes.
|
2025-02-24 15:35:23 -05:00 |
|
Christian Deacon
|
42738c7670
|
Optimize looping through filters when updating them.
|
2025-02-24 14:58:11 -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
|
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
|
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
|
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
|
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
|
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
|
62c610f577
|
Decrease max filters from 80 to 60.
|
2024-07-15 21:44:13 -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
|
525b9465cf
|
Add std_update_time option.
|
2024-06-13 20:03:21 -04:00 |
|
Christian Deacon
|
bbacda45b3
|
Add pass counter for packets that don't match any rules and are passed to user-space.
|
2024-06-13 19:54:50 -04:00 |
|
Christian Deacon
|
648dbff479
|
Use unlikely() again.
|
2024-06-13 19:30:16 -04:00 |
|
Christian Deacon
|
1dad5509a4
|
Use unlikely with checking layer-4 headers.
|
2024-06-13 19:29:50 -04:00 |
|
Christian Deacon
|
e213b5c231
|
Rework PPS/BPS logic to improve performance.
|
2024-06-13 19:27:56 -04:00 |
|
Christian Deacon
|
1f66f7ab4e
|
Add NANO_TO_SEC constant.
|
2024-06-13 19:23:54 -04:00 |
|
Christian Deacon
|
69f7456423
|
Align filters structure by 8 bytes to per-CPU map.
|
2023-12-12 23:38:57 +00:00 |
|
Christian Deacon
|
b3530e3e68
|
Use per CPU array map for filter rules to increase performance.
|
2023-11-12 21:35:22 +00:00 |
|
Christian Deacon
|
c12496abb6
|
Lower MAX_FILTERS to 80 to fix error related to BPF program too large.
|
2023-10-11 22:05:30 +00:00 |
|