gamemann
|
fe09dece3a
|
Check IP header validity everywhere else.
|
2021-11-12 21:12:50 +00:00 |
|
gamemann
|
437a3eb45b
|
Check IP header validity instead of ethernet protocol.
|
2021-11-12 21:09:53 +00:00 |
|
gamemann
|
c81987ceeb
|
Initialize headers as NULL.
|
2021-11-12 21:07:30 +00:00 |
|
gamemann
|
83e801f36c
|
Check for IPv6 header validity itself and remove unneeded check.
|
2021-11-12 21:07:12 +00:00 |
|
gamemann
|
6f7911059f
|
Rename ethernet header variable to eth.
|
2021-11-12 20:42:34 +00:00 |
|
gamemann
|
56831eed67
|
Set interface index in BPF attributes.
|
2021-11-12 19:55:25 +00:00 |
|
gamemann
|
ccd4f921bf
|
Add comments.
|
2021-11-12 19:54:55 +00:00 |
|
gamemann
|
a6db73d335
|
Rework BPF object loading logic.
|
2021-11-12 19:54:04 +00:00 |
|
gamemann
|
54b0e9cb9b
|
Simplify filters increment code in config.
|
2021-11-12 18:21:04 +00:00 |
|
gamemann
|
0268ab26ee
|
Organize debug code.
|
2021-11-12 18:19:07 +00:00 |
|
gamemann
|
8527ed163c
|
We no longer need to free config structure.
|
2021-11-12 18:05:47 +00:00 |
|
gamemann
|
bee4377a80
|
Use bpf_prog_load_xattr() function for loading BPF object file instead.
|
2021-11-12 17:55:49 +00:00 |
|
gamemann
|
8089cfff0e
|
Rename variables.
|
2021-11-12 17:46:12 +00:00 |
|
gamemann
|
99daa2d6f5
|
Change filename variable to const.
|
2021-11-12 17:40:13 +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
|
37ebcb1252
|
Move common BPF includes to top of header file.
|
2021-11-12 17:34:36 +00:00 |
|
gamemann
|
177c48adcc
|
Move common BPF includes to header file.
|
2021-11-12 17:34:13 +00:00 |
|
gamemann
|
f0a1d6e98d
|
Reorder cmdline structure for organization.
|
2021-11-12 17:31:50 +00:00 |
|
gamemann
|
bcfaccb71e
|
Add comments to functions.
|
2021-11-12 17:30:35 +00:00 |
|
gamemann
|
becaeb4b34
|
Add SKB flag to help output.
|
2021-11-12 17:22:19 +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
|
2d9138b8d9
|
Rename variable and structure names.
|
2021-11-12 16:58:14 +00:00 |
|
gamemann
|
aa85496ced
|
Rename config functions.
|
2021-11-12 16:51:29 +00:00 |
|
gamemann
|
b0f60b05db
|
Rename function names.
|
2021-11-12 16:48:26 +00:00 |
|
gamemann
|
ad588f74d5
|
Implement new command line and XDP attach functionality.
|
2021-11-12 16:46:49 +00:00 |
|
gamemann
|
04ba803b11
|
Add SKB command line option.
|
2021-11-12 16:39:36 +00:00 |
|
gamemann
|
ad48c3c7f7
|
Add command line source/header files.
|
2021-11-12 16:38:10 +00:00 |
|
gamemann
|
d4d361d9a5
|
Use #pragma once in header files.
|
2021-11-12 16:30:26 +00:00 |
|
gamemann
|
3c22649f3e
|
Use different path for libbpf.
|
2021-11-12 16:22:19 +00:00 |
|
gamemann
|
637eea978d
|
Use different paths for libbpf.
|
2021-11-12 16:21:49 +00:00 |
|
gamemann
|
5c604026d0
|
Rename config includes.
|
2021-11-12 15:53:41 +00:00 |
|
gamemann
|
24a7cf5c0c
|
Rename include paths.
|
2021-11-12 15:53:01 +00:00 |
|
gamemann
|
b66d43b8cb
|
Rename main program.
|
2021-11-12 15:52:14 +00:00 |
|
gamemann
|
21e2904896
|
Move header files into main source directory.
|
2021-11-12 15:51:02 +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
|
457b2e394d
|
Update help text.
|
2020-12-18 02:36:31 +00:00 |
|
gamemann
|
95c771c825
|
Increase max filters from 55 to 100.
|
2020-12-18 02:16:15 +00:00 |
|
gamemann
|
0e80306f0f
|
Change config syntax for L4 protocols and update README.
|
2020-12-18 02:12:05 +00:00 |
|
gamemann
|
f30f992468
|
Add support for offload/hardware mode.
|
2020-12-18 01:51:35 +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
|
9993e64fb6
|
Increase max filters to 55.
|
2020-07-25 14:25:37 +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 |
|