ebpf-for-windows/tools
Dave Thaler 872999db06
Add netsh capability to unpin programs (#539)
* Add netsh capability to unpin programs

* The netsh "set program id=<id> pinned=" (with no value) will now unpin a
  program from all paths
* The netsh "delete program <id>" will now unpin a program from all
  paths before and releasing any reference held by netsh itself
* Make the "attached=<string>" argument to netsh set programs work
  with a section name like string
* Add libbpf api bpf_obj_get()
* Add ebpf_get_next_pinned_program_name() API to enumerate pinned
  programs

Fixes #190 #373

This is required for #188 which will update the "show programs"
and also add an option to "add program" to pin all programs rather
than just the first one in a file, like bpftool has such an option.

Signed-off-by: Dave Thaler <dthaler@microsoft.com>

* Update mock netsh behavior since PR 540 changed the underlying requirements

PreprocessCommand now correctly matches tags so you can specify a later
optional tag without having to specify earlier optional tags

Signed-off-by: Dave Thaler <dthaler@microsoft.com>
2021-09-15 18:40:44 -07:00
..
dnsflood Switch from MultiThreadedDebug to MultiThreadedDebugDll (#528) 2021-09-14 08:46:01 -06:00
elfhelper Update directory structure (#134) 2021-05-05 14:10:28 -06:00
encode_program_info Add libpf's libbpf_prog_type_by_name() API (#534) 2021-09-15 12:08:18 -07:00
netsh Add libpf's libbpf_prog_type_by_name() API (#534) 2021-09-15 12:08:18 -07:00
port_leak Switch from MultiThreadedDebug to MultiThreadedDebugDll (#528) 2021-09-14 08:46:01 -06:00
port_quota Add netsh capability to unpin programs (#539) 2021-09-15 18:40:44 -07:00