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
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
a180aa3dc9
Add demo GIF.
2024-04-22 22:11:04 -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
8930d8f7ed
Add note regarding performance with for loop.
2023-11-28 04:55:29 +00:00
Christian Deacon
3640c6a840
Elf object is included in later LibBPF libraries.
2023-11-22 20:00:02 +00:00
Christian Deacon
512b4393ff
Add comment to Makefile.
2023-11-22 19:55:23 +00:00
Christian Deacon
907408be7a
Link new static LibBPF objects in our loader.
2023-11-22 19:53:43 +00:00
Christian Deacon
a5f72f7edc
Update xdp-tools and libbpf.
2023-11-22 19:52:12 +00:00
Christian Deacon
810bc6b3c7
Only build LibXDP from xdp-tools.
2023-11-22 19:49:45 +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
03d38b55e1
Update README.
2023-10-12 00:06:06 +00:00
Christian Deacon
0601364233
Revert "fix linker issue ( #42 )"
...
This reverts commit cc1e033a7f .
2023-10-11 23:04:53 +00:00
pettai
cc1e033a7f
fix linker issue ( #42 )
...
fix linker issue
"undefined reference to `zip_archive_open'" ...
2023-10-11 18:47:52 -04:00
Christian Deacon
c089d82aed
Make LibXDP in workflow.
2023-10-11 22:44:07 +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
Christian Deacon
d5fe99c69a
XDP tools already defines bpf_printk() now.
2023-06-19 19:12:38 +00:00
Christian Deacon
c27398ecec
Indent code properly for neatness.
2023-06-19 19:11:42 +00:00
Christian Deacon
f94354685b
Remove old LibBPF.
2023-06-09 09:11:53 +00:00
Christian Deacon
78e8bcdc76
Oops.
2023-06-06 21:50:11 +00:00
Christian Deacon
0c2ddd4349
Add more details to README.
2023-06-06 21:46:35 +00:00
Christian Deacon
32e316adda
Update README; Prepend sudo to apt commands.
2023-06-06 21:44:04 +00:00
Christian Deacon
91d9cf814f
Update GitHub workflow with new depedencies.
2023-06-06 21:35:28 +00:00
Christian Deacon
0583b0f8f2
Add comment to Makefile regarding using shared objects over static for LibXDP.
2023-06-06 21:30:03 +00:00
Christian Deacon
a85d91eed8
Add notes about move to LibXDP.
2023-06-06 21:28:58 +00:00
Christian Deacon
9e4375dbec
Update README with more information since LibXDP move.
2023-06-06 21:20:57 +00:00
Christian Deacon
3d79c20479
Use LibXDP to build the projects instead.
2023-06-06 21:20:41 +00:00
Christian Deacon
d088b4b157
Implement support for LibXDP and improve code.
2023-06-06 21:20:19 +00:00
Christian Deacon
b77246c7ad
Remove LibBPF sub-module in root.
2023-06-06 21:19:14 +00:00
Christian Deacon
b54c46638d
Update README; Add information on error related to toolchain hardening (thanks G00g1\!).
2023-05-15 18:59:03 +00:00
Christian Deacon
75f5e8b33a
Update README.
2023-05-15 18:51:52 +00:00
Christian Deacon
8fbab9bf82
Decrease max filters to 90 due to stricter kernel limitations.
2023-05-15 18:27:56 +00:00
Christian Deacon
fdc66c31fa
Update README.md
2023-04-12 14:38:54 -04:00
Phil
7b577e9548
Optimizing main loop ( #35 )
...
* Mem leak fix
Memleak fix for strdup()
* Typo fix
forgot ;
* Optimizing Main Loop
Filtersmap will only be updated if there is a newer version of our config.
* Include sys/stat.h
* Added myself in the credits
Thanks for the trust
2023-01-21 17:18:11 -05:00