[DRAFT] ebpf plugin + parser + component tests (1st Checkin) #1321
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
[DRAFT] - This is a first check in for retina isolated component tests for [ebp-for-windows plugin + retinaebpfapi.dll]
[SCOPE] - 5 tuple validation only
Checklist
Additional Notes
The Product flow
Expectations
Screenshots (if applicable) or Testing Completed
C:\binaries>.\WindowsEbpfPluginTest.exe
/ebpf/global/cilium_events -pinned map found at pin_map
/ebpf/global/cilium_metrics -pinned map found at pin_map
/ebpf/global/five_tuple_map -pinned map found at pin_map
/ebpf/global/filter_map -pinned map found at pin_map
ts=2025-02-06T09:39:17.313-0800 level=info caller=ebpfwindows/ebpf_windows_test.go:213 msg="Event_writer attached to interface" Ifindex=2
attach_program_to_interface - failed to attach to interface with ifindex 1
ts=2025-02-06T09:39:17.329-0800 level=error caller=ebpfwindows/ebpf_windows_test.go:211 msg="SetupEventWriter - failed to attach event_writer" Interface=1 error="The specified driver is invalid."
ts=2025-02-06T09:39:17.333-0800 level=info caller=metrics/metrics.go:162 msg="Metrics initialized"
ts=2025-02-06T09:39:17.335-0800 level=info caller=ebpfwindows/ebpf_windows.go:172 msg="Stop ebpfWindows plugin..."
ts=2025-02-06T09:39:17.346-0800 level=info caller=ebpfwindows/ebpf_windows.go:93 msg="Start ebpfWindows plugin..."
ts=2025-02-06T09:39:17.560-0800 level=info caller=ebpfwindows/ebpf_windows_test.go:145 msg=UDP FlowType=L3_L4 srcIP=10.216.118.81 dstIP=255.255.255.255 srcP=68 dstP=67
ts=2025-02-06T09:39:17.566-0800 level=info caller=ebpfwindows/ebpf_windows_test.go:162 msg="Match found!"
ts=2025-02-06T09:39:17.594-0800 level=info caller=ebpfwindows/ebpf_windows_test.go:145 msg=UDP FlowType=L3_L4 srcIP=10.216.118.81 dstIP=255.255.255.255 srcP=68 dstP=67
ts=2025-02-06T09:39:17.614-0800 level=info caller=ebpfwindows/ebpf_windows_test.go:162 msg="Match found!"
ts=2025-02-06T09:39:17.789-0800 level=info caller=ebpfwindows/ebpf_windows.go:172 msg="Stop ebpfWindows plugin..."
Please add any relevant screenshots or GIFs to showcase the changes made.
Please refer to the CONTRIBUTING.md file for more information on how to contribute to this project.