diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-04-28 11:59:35 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-04-28 16:14:09 -0700 |
commit | 64c584c4a80f46fcb2ad5fc318572fe400b31535 (patch) | |
tree | 87a10b95a17b8fac6e71b711bbc82ca06ceb5ec8 /include | |
parent | b0b96c4b16c98aa81f392221528ad6c668c305b6 (diff) |
Allow tests to repeat a data packet a specified number of times
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/xhiv.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/xhiv.h b/include/xhiv.h index 26b0036..867258e 100644 --- a/include/xhiv.h +++ b/include/xhiv.h @@ -46,10 +46,11 @@ typedef struct xhiv_response { uint32_t sequence; /* Sequence number, or XHIV_SEQ_IGNORE */ const void *match_data; /* Additional data for matching requests */ uint32_t length; /* Total length of reply packet, in 4-byte words */ + uint32_t repeat; /* Number of times to repeat this packet in reply */ const void *response_data; /* Data to return */ uint32_t response_datalen; /* Length of response_data, in bytes */ /* Response will be filled with random data to fill the difference - between response_datalen & length */ + between (response_datalen * (1 + repeat)) & length */ uint32_t flags; /* flags controlling various options */ } xhiv_response; |