Commit Graph

32 Commits

Author SHA1 Message Date
gamemann
6f7911059f Rename ethernet header variable to eth. 2021-11-12 20:42:34 +00:00
gamemann
0268ab26ee Organize debug code. 2021-11-12 18:19:07 +00:00
gamemann
c2cd1bdfdc Rename uint128_t to __u128 for organization. 2021-11-12 17:36:14 +00:00
gamemann
46cff37907 Remove common BPF defines since we define them in header file now. 2021-11-12 17:34:56 +00:00
gamemann
a521cc1f6f Rename variable and function names, use different integer types, and organize code. 2021-11-12 17:21:30 +00:00
gamemann
3c22649f3e Use different path for libbpf. 2021-11-12 16:22:19 +00:00
gamemann
24a7cf5c0c Rename include paths. 2021-11-12 15:53:01 +00:00
gamemann
ee61f2d783 Change stats map into per CPU map for performance. 2021-11-12 15:49:09 +00:00
gamemann
4420cb2f00 Improve ICMP matching. 2020-12-18 18:53:10 +00:00
gamemann
cf10bd5696 Correct bit shift. 2020-12-18 15:04:35 +00:00
gamemann
e40dece280 Shift correctly with 128-bit integer. 2020-12-18 15:02:28 +00:00
gamemann
499a3e665a Add IPv6 support, rewrite program to improve performance, and update README. 2020-12-18 01:42:58 +00:00
Christian Deacon
9ffc60af00 Allow only layer 3 filtering. 2020-07-25 15:58:30 +00:00
Christian Deacon
4c9c11c6b1 Remove references to payload matching. 2020-07-25 14:24:05 +00:00
Christian Deacon
9c19e1eb8c Add define for incrementing blocked stats when the source IP is on the blocked map. 2020-06-04 18:22:07 +00:00
Christian Deacon
f7a2f0ccfb Move stats map initialization and increase blocked count for source IPs on blocked map. 2020-06-04 18:06:12 +00:00
Christian Deacon
af26940018 Use built-in Atomic functions to increment values on maps. 2020-06-04 17:57:30 +00:00
Christian Deacon
8faf701446 Switch to single LRU maps since we can't reliably read per CPU maps within BPF program. 2020-06-04 17:06:50 +00:00
Christian Deacon
d5d3f02317 Remove filterID and tried new payload matching code (not working). 2020-06-04 17:04:17 +00:00
Christian Deacon
c628afcbb8 Optimized code. 2020-05-07 13:41:37 +00:00
Christian Deacon
d17f5a4f54 Added blocktime filter option and optimized code. 2020-05-07 13:18:43 +00:00
Christian Deacon
f8730a511c Disabled debug. 2020-05-07 04:50:05 +00:00
Christian Deacon
f802267fad Change ip_stats_map's map type to support maximum IPs. 2020-05-07 04:32:53 +00:00
Christian Deacon
4d5eb050bd Cleaned code. 2020-05-07 04:05:54 +00:00
Christian Deacon
5a4cda8d70 Added PPS and BPS options. Cleaned code. 2020-05-07 03:37:32 +00:00
Christian Deacon
9f19b0ee1a Disable debug for release. 2020-05-06 03:30:42 +00:00
Christian Deacon
7f6b5a0ef6 Updated XDP program (not payload matching support). 2020-05-06 03:27:09 +00:00
Christian Deacon
138b3de1cc Checkpoint (close to finished). 2020-05-06 02:11:38 +00:00
Christian Deacon
f20776cc70 Reworked matching logic in XDP. 2020-05-06 00:32:16 +00:00
Christian Deacon
e4632530ed Redid XDP prgoram. 2020-05-05 23:58:48 +00:00
Christian Deacon
5b3458b5a0 Added XDP code (not finished). 2020-05-05 02:51:53 +00:00
Christian Deacon
56c58d9920 Add skeletons of program. 2020-05-04 18:11:01 +00:00