Merge pull request #72 from bonzini/master

Ignore padding when an iovector is supplied
Fix incorrect second initiator.
Merge pull request #73 from sitsofe/master

Fix incorrect second initiator
TESTS: Abort READ6 test if lun is bigger than what READ6 can address
TESTS: Fix COMPAREANDWRITE tests to send write data

Previously COMPAREANDWRITE was only sending verify instance data which
can cause targets to generate COMMAND ABORTED/NOT ENOUGH UNSOLICITED
DATA errors due to the buffer being obviously too small to contain
verify AND write instance data.

The buffer size check has been modified and compareandwrite tests
updated to pass a larger buffer with interesting write instance data.
Fix compilation issues under clang

clang defaults to c99 so remove inline statements
(http://clang.llvm.org/compatibility.html#inline ) on functions shared
across different translation units.
clang's linker doesn't like major numbers over 255 so change how SOREL
is generated in Makefile.am.
Fix compilation on OS X

OS X doesn't implement SOL_TCP so workaround this the same way as on
FreeBSD/Solaris.
TESTS: Fix READ6 test

Commit 45a3752d163a2348918690084405293c62f5eebb skips all tests from
read-at-eol onwards when the LUN is large. Fix this by only skipping the
read-at-eol tests in this scenario.

Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
Merge pull request #74 from sitsofe/compareandwrite

TESTS: Fix COMPAREANDWRITE tests to send write data
Merge pull request #75 from sitsofe/clang

Fix compilation issues under clang
Merge pull request #76 from sitsofe/osx

Fix compilation on OS X
TEST: read10invalid  use the reported blocksize instead of a hardcoded value
Merge branch 'master' of github.com:sahlberg/libiscsi
Fix Makefile.am breakage.

Complete the changes made in commit 7692027.
Merge pull request #78 from sitsofe/makefile

Fix Makefile.am breakage.
test-tool/1120_persistent_register_simple.c: Spelling fix

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Merge branch 'master' of github.com:sahlberg/libiscsi
TESTS: Add an initial simple test for COMPARE_AND_WRITE

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
SCSI: Add definitions for some more 0x29xx ASCQs

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Replace alloca.h with stdlib.h; the former doesn't exist on FreeBSD.