Alan Jowett
a3df5a64d5
Merged PR 4244774: Start of CI/CD pipeline
...
Start of CI/CD pipeline
Build static libs for user mode.
2021-03-15 19:00:32 +00:00
Alan Jowett
5af17b80ad
Merged PR 4244102: Tweak for demo
...
Tweak for demo
2021-03-15 18:46:56 +00:00
Alan Jowett
514b942372
Enable CFG to unblock build
2021-03-15 12:32:48 -06:00
Alan Jowett
1f1b465096
Attemp to restore nuget
2021-03-15 12:22:03 -06:00
Alan Jowett
645a8c656d
Switch to single feed
2021-03-15 11:47:39 -06:00
Alan Jowett
029e4cf0ab
Remove project that depends on clang
2021-03-15 11:04:09 -06:00
Alan Jowett
475f7e4f01
Remove projects that don't build yet
2021-03-15 10:56:42 -06:00
Alan Jowett
cf9f73aada
Fix pipeline definition
2021-03-15 09:51:01 -06:00
Alan Jowett
f12d139a50
Fix multi-feed nuget issue
2021-03-15 09:45:25 -06:00
Alan Jowett
f9d93cffd9
Split user and kernel build sequences
2021-03-15 09:35:44 -06:00
Alan Jowett
39bdb252da
Merged PR 4236890: Add option to dump loaded programs
...
Add option to dump loaded programs
2021-03-15 15:34:33 +00:00
Alan Jowett
ff4aaa51e7
Merged PR 4228032: Fix case where enumerating while key is deleted
...
Fix case where enumerating while key is deleted
2021-03-11 18:00:58 +00:00
Alan Jowett
366e41afdd
Merged PR 4226082: Fix bugs so that portquota demo works
...
Fix bugs so that portquota demo works
2021-03-10 21:02:37 +00:00
Alan Jowett
09bfd2063d
Merged PR 4220809: First drop of port_quota demo
...
First drop of port_quota demo
2021-03-10 02:38:31 +00:00
Dave Thaler
6945db64e0
Fix build by restoring header ordering dependencies and turning off sort
...
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-03-09 16:25:24 -08:00
Dave Thaler
13206372ea
Normalize line endings for VS files
...
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-03-09 15:15:36 -08:00
Dave Thaler
8e7644d459
Merged PR 4208679: Enforce license headers and add code formatting script
...
This PR cherry picks the scripts already in the master branch into the demo branch
And it turns on the gate by creating a project that installs the git pre-commit hook, which gate requires any changed files to have the script run on them before the commit will succeed (and if you try, git will just tell you the command to run to automatically fix up your stuff). A separate PR will show the results of running the script on all files that already exist, so you can see what the style looks like.
This change is so we can get code ready to move to github without it looking bad.
Also in this PR is a fix to ebpfapi.vcxproj that caused build errors
2021-03-09 22:56:40 +00:00
Dave Thaler
0af49d8d15
Merged PR 4208690: Automated code formatting pass
...
All changes in this PR were automatically generated by a code formatting script that is in the master branch.
The style is configurable so if there's something you don't like we can discuss, but today there is not a consistent style across the repo, and often not even consistent within a file.
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-03-09 22:56:31 +00:00
Dave Thaler
6b3c464c38
Automated code formatting pass
...
All changes in this PR were automatically generated by a code formatting
script that is in the master branch.
The style is configurable so if there's something you don't like we can
discuss, but today there is not a consistent style across the repo, and
often not even consistent within a file.
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-03-09 14:54:03 -08:00
Alan Jowett
b2312a4790
Merged PR 4216677: Add test code for bind hook
...
Add test code for bind hook
2021-03-09 17:59:43 +00:00
Alan Jowett
f974145fbc
Merged PR 4209465: Add doxygen documentation to ebpfapi.h and make new code /w4 /wx clean
...
Add doxygen documentation to ebpfapi.h and make new code /w4 /wx clean
2021-03-08 16:37:39 +00:00
Alan Jowett
82bbe5a07f
Merged PR 4207396: Check for hvci at startup and block jit if enabled
...
Check for hvci at startup and block jit if enabled
2021-03-06 18:45:30 +00:00
Dave Thaler
09637441c5
Add setup_build project to install git hook
...
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-03-05 21:46:30 -08:00
Dave Thaler
2557f029b9
Check code formatting and licenses when committing
...
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-03-05 21:15:17 -08:00
Alan Jowett
82700d8608
Fix wrong submodule commit id
2021-03-05 22:05:37 -07:00
Alan Jowett
125c183bee
Merged PR 4205675: Add option to execute eBPF program via JIT or interpreter
...
Add option to execute eBPF program via JIT or interpreter
2021-03-05 22:47:18 +00:00
Alan Jowett
741d04401d
Merged PR 4205230: Move all parsing and verification to ebpfapi from netsh helper
...
Move all parsing and verification to ebpfapi from netsh helper
2021-03-05 18:49:25 +00:00
Alan Jowett
d9f75432fb
Merged PR 4202906: Refactor execution context and ubpf to allow running in either kernel or user...
...
Refactor execution context and ubpf to allow running in either kernel or user mode.
Remove dead code from demo branch.
Create e2e test for droppack.
2021-03-05 17:05:09 +00:00
Dave Thaler
5766cfb6f8
Merged PR 4189708: Use the Prevail master branch
...
Moves Windows platform files into the internal repo.
Also adds ebpf_windows.h file to centralize defines that were previously duplicated in at least three places in this repo, and one ,more previously in the windows branch of prevail, now all unified.
2021-03-03 16:51:26 +00:00
Dave Thaler
6b9fb4b103
Use the Prevail master branch
...
Moves Windows platform files into the internal repo.
Also adds ebpf_windows.h file to centralize defines that were previously
duplicated in at least three places.
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-03-02 20:54:15 -08:00
Dave Thaler
b87da5d4ab
Merged PR 4175621: Update netsh program commands
...
Update to use improved error messages like the other netsh commands.
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-03-03 04:39:52 +00:00
Dave Thaler
344505bbb1
Update netsh program commands
...
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-03-02 20:30:40 -08:00
Alan Jowett
9a475b6170
Merged PR 4181632: Move hook code out of ebpfcore.c
...
Move hook code out of ebpf_core.c
Experiment with making ebpf_l2_hook.c act more like an extension.
2021-03-02 16:28:41 +00:00
Alan Jowett
8892a60a7f
Merged PR 4175508: Add API to query and enumerate maps
...
Add API to query and enumerate maps
2021-03-01 16:10:45 +00:00
Dave Thaler
5acceba2af
Merged PR 4174748: Use latest verifier fixes and error messages
...
Also default to using the first section instead of .text as being easier to use
2021-02-27 00:38:02 +00:00
Dave Thaler
e70a6a0197
Update to use latest verifier fixes and error messages
...
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-02-26 15:36:50 -08:00
Alan Jowett
b69c3ad5c9
Merged PR 4169277: Add support for hook on bind/unbind
...
Add support for hook on bind/unbind
2021-02-26 17:38:11 +00:00
Alan Jowett
6092391a16
Merged PR 4154879: Add support for hash maps in for bind demo
...
Add support for hash maps in for bind demo
2021-02-24 20:27:14 +00:00
Alan Jowett
eefdd638c6
Fix bug in xdp context
2021-02-24 13:04:24 -07:00
Dave Thaler
da8ce260c1
Update verifier to have better error messages
...
This pulls in the latest from the windows prevail branch
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-02-23 17:35:04 -08:00
Alan Jowett
0f753dea28
Merged PR 4147072: First version of changes to comply with new ebpf contract
...
First version of changes to comply with new ebpf contract
Note:
We can't use crt handle -> fd mapping until ebpfcore returns *real* handles.
2021-02-23 17:34:19 +00:00
Alan Jowett
20914bf459
Merged PR 4124049: Work around prevail encoding size into fd
...
Work around prevail encoding size into fd
2021-02-18 21:04:02 +00:00
Alan Jowett
e51d34d287
Fix build break 'identifier' -> 'id'
2021-02-18 13:55:42 -07:00
Alan Jowett
3a73e0f548
Merged PR 4114187: Update code to match coding conventions
...
Update code to match coding conventions
2021-02-16 17:06:14 +00:00
Alan Jowett
93d9783890
Merged PR 4112977: First draft of kernel support for maps
...
First draft of kernel support for maps
1) Refactored all EbpfCore related code into ebpf_core.*
2) Add tests for all EbpfCore functionality
3) Added support for array maps.
2021-02-13 19:20:49 +00:00
Alan Jowett
78438fe793
Merged PR 4108249: Add support for maps to EbpfApi
...
Add support for maps to EbpfApi
2021-02-13 02:14:55 +00:00
Dave Thaler
c3879228d1
Merged PR 4112450: Add prereqs to readme file
...
Rename README_build to README
Add prereqs to readme file (the rest of the file is unchanged, other than the rename)
Add standard LICENSE file
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-02-13 01:15:01 +00:00
Dave Thaler
6f2b089163
Add prereqs to readme file
...
Rename README_build to README
Add standard LICENSE file
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-02-12 16:18:45 -08:00
Alan Jowett
97ca1a3ac4
Add public nuget source
2021-02-12 10:22:56 -07:00
Alan Jowett
24c4ebe304
Fix build break
2021-02-11 13:00:49 -07:00