Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/utils/metadata_windows.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ enum DropReason {
Drop_NotReady = 4;
Drop_Disconnected = 5;
Drop_NotAccepted = 6;
Drop_Busy = -2147483641;
Drop_Busy = 2147483655;
Drop_Filtered = 8;
Drop_FilteredVLAN = 9;
Drop_UnauthorizedVLAN = 10;
Drop_UnauthorizedVLAN = 2147483658;
Drop_UnauthorizedMAC = 11;
Drop_FailedSecurityPolicy = 12;
Drop_FailedPvlanSetting = 13;
Expand Down
2 changes: 2 additions & 0 deletions test/e2e/tools/event-writer/bpf_event_writer.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ event_writer(xdp_md_t* ctx) {
bpf_printk("PKTMON_NOTIFY_DROP event: reason=%d, size_to_copy=%d \n", reason, size_to_copy);
bpf_printk("PKTMON_NOTIFY_DROP sizes : pktmon_struct_size=%llu, drop_struct_size=%llu \n", pktmon_size, drop_size);

bpf_perf_event_output(ctx, &cilium_events, EBPF_MAP_FLAG_CURRENT_CPU , pkt_drp_elm, sizeof(struct pktmon_notify));
pkt_drp_elm->subtype = 10;
bpf_perf_event_output(ctx, &cilium_events, EBPF_MAP_FLAG_CURRENT_CPU , pkt_drp_elm, sizeof(struct pktmon_notify));

// Create Windows specific drop event with hardcoded reason code
Expand Down
Loading