Commit Graph

199 Commits

Author SHA1 Message Date
Christian Deacon
123a48311b Run file as root. 2021-12-06 01:39:41 -06:00
Christian Deacon
e680661a95 Update README. 2021-12-06 01:38:38 -06:00
Christian Deacon
067ce603f7 Run correct file. 2021-12-06 01:37:54 -06:00
Christian Deacon
2dc604343d Try listing files. 2021-12-06 01:36:08 -06:00
Christian Deacon
1afe43d18c Use renamed artifact. 2021-12-06 01:33:34 -06:00
Christian Deacon
2fa1c8a9b3 Rename artifact. 2021-12-06 01:33:02 -06:00
Christian Deacon
525f11cb74 Download artifact from Build workflow in Run. 2021-12-06 01:27:57 -06:00
Christian Deacon
4e578b0c38 Store artifact from Build workflow. 2021-12-06 01:25:17 -06:00
Christian Deacon
79f884b96c Require Build workflow. 2021-12-06 01:14:56 -06:00
Christian Deacon
c7745d2a30 Attempt to make Build workflow reusable.
I'm new to GitHub actions/workflows!
2021-12-06 01:06:21 -06:00
Christian Deacon
59f707507e Use master branch. 2021-12-06 01:03:17 -06:00
Christian Deacon
1c695bca20 Attempt to fix Run workflow. 2021-12-06 01:02:37 -06:00
Christian Deacon
d0a2322e76 Update Run workflow again. 2021-12-06 00:59:26 -06:00
Christian Deacon
aaef1a8268 Update Run workflow. 2021-12-06 00:57:06 -06:00
Christian Deacon
8243d187bb Create Run workflow. 2021-12-06 00:56:03 -06:00
Christian Deacon
7f44988d46 Update README. 2021-12-06 00:45:02 -06:00
Christian Deacon
265637deff Add Build workflow. 2021-12-06 00:42:31 -06:00
gamemann
0dac160065 Remove stdint.h include since it's not needed inside of BPF program. 2021-11-16 00:35:57 +00:00
gamemann
7964f8986a Move defines to header file for XDP program. 2021-11-16 00:33:30 +00:00
gamemann
e56a8e64ec Remove linux/types.h include from BPF program. 2021-11-16 00:32:25 +00:00
Christian Deacon
5e53d30f86 Merge pull request #7 from OpenSource03/master
Update README.md
2021-11-15 18:30:46 -06:00
OpenSource
bfaa78ff7a Update README.md 2021-11-15 21:37:40 +01:00
gamemann
8b49ba87e0 Use LLVM to compile XDP program. 2021-11-13 01:39:43 +00:00
gamemann
7c061a2570 Include Linux types in XDP program. 2021-11-13 01:14:17 +00:00
gamemann
8eee71d366 Organize Makefile further. 2021-11-12 21:34:00 +00:00
gamemann
1e11016bdf Organize Makefile. 2021-11-12 21:33:20 +00:00
gamemann
55f19dd192 Adjust Makefile for libbpf. 2021-11-12 21:25:19 +00:00
gamemann
f8f1e48901 Set libbpf to commit 7fc4d50 since latest doesn't work. 2021-11-12 21:25:12 +00:00
gamemann
ed89cfed28 Only set ifindex in attributes if hardware offload is set. 2021-11-12 21:23:44 +00:00
gamemann
d9d6167b4b Add one more check. 2021-11-12 21:14:20 +00:00
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
d787114a9f Use Clang to compile BPF object/program. 2021-11-12 20:30: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