Skip to content

Commit 22b0451

Browse files
committed
test pktmon_notify
1 parent 1eb7a33 commit 22b0451

1 file changed

Lines changed: 23 additions & 4 deletions

File tree

test/e2e/tools/event-writer/event_writer.h

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,25 @@ struct drop_notify {
166166
uint8_t data[128];
167167
};
168168

169+
170+
struct pktmon_notify {
171+
uint8_t type;
172+
uint8_t subtype;
173+
uint16_t source;
174+
uint32_t hash;
175+
uint32_t len_orig;
176+
uint16_t len_cap;
177+
uint16_t version;
178+
uint32_t src_label;
179+
uint32_t dst_label;
180+
uint32_t dst_id; /* 0 for egress */
181+
uint16_t line;
182+
uint8_t file;
183+
int8_t ext_error;
184+
uint32_t ifindex;
185+
uint8_t data[128];
186+
};
187+
169188
struct metrics_key {
170189
uint8_t reason; /* 0: forwarded, >0 dropped */
171190
uint8_t dir:2, /* 1: ingress 2: egress */
@@ -237,10 +256,10 @@ typedef struct _PKTMON_EVT_STREAM_PACKET_HEADER
237256
PKTMON_EVT_STREAM_METADATA Metadata;
238257
} PKTMON_EVT_STREAM_PACKET_HEADER;
239258

240-
typedef struct pktmon_notify {
241-
PKTMON_EVT_STREAM_PACKET_HEADER header;
242-
uint8_t data[128];
243-
} pktmon_notify_t;
259+
// typedef struct pktmon_notify {
260+
// PKTMON_EVT_STREAM_PACKET_HEADER header;
261+
// uint8_t data[128];
262+
// } pktmon_notify_t;
244263

245264
#pragma pack(pop)
246265

0 commit comments

Comments
 (0)