ebpf-for-windows/ebpfapi
Dave Thaler 7c12adb067
Prevent mismatched program types in PROG_ARRAY maps (#374)
* Prevent mismatched program types in PROG_ARRAY maps

* Each prog array map has a natural progtype, determined when
  asociating it from a program, or when adding the first program
  to it, if not associated with any program.
* Trying to add a program with mismatching type will fail
* Added libbpf bpf_create_map() API
* Fixed error returns from several libbpf APIs to be negative
* For efficiency, ebpf_program_get_properties now returns a
  pointer rather than copying the data inside the execution
  context, and is renamed to ebpf_program_get_parameters()
  to match what its return type always was.
* Fixed a bug in map size calculation that resulted in a huge
  amount of memory being allocated
* Updated return type of bpf_tail_call to the value meant
  to signal stack unwind needed

Signed-off-by: Dave Thaler <dthaler@microsoft.com>
2021-08-11 12:17:10 -07:00
..
Source.def Prevent mismatched program types in PROG_ARRAY maps (#374) 2021-08-11 12:17:10 -07:00
dllmain.cpp Switch to approved license header format (#268) 2021-06-10 12:02:00 -07:00
ebpfapi.vcxproj Test Extension Part 2 (#361) 2021-08-07 14:19:00 -07:00
ebpfapi.vcxproj.filters Move program load to ebpfsvc (#245) 2021-06-07 15:22:04 -06:00
pch.h Switch to approved license header format (#268) 2021-06-10 12:02:00 -07:00
platform.cpp Integrate verifier with ebpfsvc (#198) 2021-05-20 18:04:36 -07:00
rpc_client.cpp Additional analysis fixes (#315) 2021-06-29 15:51:41 -06:00