diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2019-07-06 21:12:39 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2019-07-06 21:12:39 +0000 |
commit | 107d7313ab6e20108311935f6ac411da27c6c8a7 (patch) | |
tree | 2a2546d33ff73b180ed47381349e3c14248c906e /usr.sbin | |
parent | 04de99f49dbd96e4471c23d60c59e374991f29e4 (diff) |
Pad message since newer firmware doesn't like it without padding.
Tested by kn@ and jan@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ldomctl/mdstore.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ldomctl/mdstore.c b/usr.sbin/ldomctl/mdstore.c index 8a8ee47be82..2dc99a90568 100644 --- a/usr.sbin/ldomctl/mdstore.c +++ b/usr.sbin/ldomctl/mdstore.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mdstore.c,v 1.8 2018/09/15 13:20:16 kettenis Exp $ */ +/* $OpenBSD: mdstore.c,v 1.9 2019/07/06 21:12:38 kettenis Exp $ */ /* * Copyright (c) 2012 Mark Kettenis @@ -55,6 +55,7 @@ struct mdstore_msg { uint64_t svc_handle; uint64_t reqnum; uint16_t command; + uint8_t reserved[6]; } __packed; struct mdstore_begin_end_req { @@ -104,7 +105,7 @@ struct mdstore_sel_del_req { uint64_t svc_handle; uint64_t reqnum; uint16_t command; - uint16_t reserved; + uint8_t reserved[2]; uint32_t namelen; char name[1]; } __packed; |