Skip to content

Commit 7642cae

Browse files
committed
mctp-bench: Fix missing vendor prefix for send
Fixes: ecaa1b0 ("mctp-bench: Use MCTP vendor defined message type") Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
1 parent 7a37d50 commit 7642cae

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/mctp-bench.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ static int mctp_bench_send(struct mctp_bench_send_args send_args)
323323
buf[i] = i & 0xff;
324324

325325
hdr = (struct msg_header *)buf;
326+
memcpy(hdr->vendor_prefix, VENDOR_TYPE_BENCH, sizeof(VENDOR_TYPE_BENCH));
326327
hdr->magic = MAGIC_VAL;
327328

328329
/* will not match a sensible sendto() return value */

0 commit comments

Comments
 (0)