microsoft / ntosebpfext

eBPF-For-Windows extension to provide access to Windows kernel functionality
MIT License
15 stars 11 forks source link

Derive device name from PROVIDER_NAME #27

Closed Alan-Jowett closed 6 months ago

Alan-Jowett commented 6 months ago

Description

This pull request includes a change in the libs/ebpf_ext/ebpf_ext_drv.c file that modifies the definition of EBPF_EXT_DEVICE_NAME. Previously, this macro was defined as a static string. The change introduces a new macro, EBPF_EXT_DEVICE_NAME_TEMPLATE, which takes a provider name as a parameter and constructs the device name string. This allows for more flexibility in naming devices. The EBPF_EXT_DEVICE_NAME macro now uses this template macro to define its value.

Testing

CI/CD

Documentation

No.

Installation

No.