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
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>
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>
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.
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>
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.
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>
- adds support to receive opcode based commands from usermode for load/unload/attach/detach
- parses layerdata from wfp classify
- passes in xdp_md like context to usermode code from the classify context
- modified test tool to test these changes
- adds a droppacket.c code with instructions to illustrate xdp and ctx based evaluation for dosp.
Related work items: #9115665