Skip to content

Commit e9b5805

Browse files
authored
Merge pull request #52 from LakshK98/test-negative
test negattive
2 parents 6dddeac + ea62ee9 commit e9b5805

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

pkg/utils/metadata_windows.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ enum DropReason {
3131
Drop_NotReady = 4;
3232
Drop_Disconnected = 5;
3333
Drop_NotAccepted = 6;
34-
Drop_Busy = -2147483641;
34+
Drop_Busy = 2147483655;
3535
Drop_Filtered = 8;
3636
Drop_FilteredVLAN = 9;
37-
Drop_UnauthorizedVLAN = 10;
37+
Drop_UnauthorizedVLAN = 2147483658;
3838
Drop_UnauthorizedMAC = 11;
3939
Drop_FailedSecurityPolicy = 12;
4040
Drop_FailedPvlanSetting = 13;

test/e2e/tools/event-writer/bpf_event_writer.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@ event_writer(xdp_md_t* ctx) {
292292
bpf_printk("PKTMON_NOTIFY_DROP event: reason=%d, size_to_copy=%d \n", reason, size_to_copy);
293293
bpf_printk("PKTMON_NOTIFY_DROP sizes : pktmon_struct_size=%llu, drop_struct_size=%llu \n", pktmon_size, drop_size);
294294

295+
bpf_perf_event_output(ctx, &cilium_events, EBPF_MAP_FLAG_CURRENT_CPU , pkt_drp_elm, sizeof(struct pktmon_notify));
296+
pkt_drp_elm->subtype = 10;
295297
bpf_perf_event_output(ctx, &cilium_events, EBPF_MAP_FLAG_CURRENT_CPU , pkt_drp_elm, sizeof(struct pktmon_notify));
296298

297299
// Create Windows specific drop event with hardcoded reason code

0 commit comments

Comments
 (0)