diff options
author | mav <mav@FreeBSD.org> | 2014-07-15 16:53:04 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2014-07-15 16:53:04 +0000 |
commit | da977d403200a33558605a0f258a3e6077c11715 (patch) | |
tree | e062ae0acdb1b8c16556219c08351e0f214b2d20 /contrib/diff/lib/error.h | |
parent | a64cd56a0c4811ba51098860f900a27da548caaf (diff) | |
download | FreeBSD-src-da977d403200a33558605a0f258a3e6077c11715.zip FreeBSD-src-da977d403200a33558605a0f258a3e6077c11715.tar.gz |
MFC r268096, r268306, r268361:
Add more formal and strict command parsing and validation.
For every supported command define CDB length and mask of bits that are
allowed to be set. This allows to remove bunch of checks through the code
and still make the validation more strict. To properly do it for commands
supporting multiple service actions, formalize their parsing by adding
subtables for each of such commands.
As visible effect, this change allows to add support for REPORT SUPPORTED
OPERATION CODES command, reporting to client all the data about supported
SCSI commands, except timeouts.
Diffstat (limited to 'contrib/diff/lib/error.h')
0 files changed, 0 insertions, 0 deletions