| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Remove a few unused headers.
|
| |
|
|
|
|
|
|
| |
Remove OpenSSL dependency from iscsid(8) and ctld(8).
Sponsored by: The FreeBSD Foundation
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Update most userspace consumers of capability.h to use capsicum.h instead.
auditdistd is not updated as I will make the change upstream and then do a
vendor import sometime in the next week or two.
Note that a significant fraction does not apply, as FreeBSD 10 doesn't
contain a Capsicumised ping, casperd, libcasper, etc. When these features
are merged, the capsicum.h change will need to be merged with them.
Sponsored by: Google, Inc.
|
|
|
|
|
|
|
|
|
|
| |
For both iSCSI initiator and target increase socket buffer sizes before
establishing connection.
This is a workaround for Chelsio TOE driver, that does not update socket
buffer size in hardware after connection established, and unless that is
done beforehand, kernel code will stuck, attempting to send/receive full
PDU at once.
|
|
|
|
|
|
|
|
| |
While we don't support MCS, hole in received sequence numbers may mean
only PDU loss. While we don't support lost PDU recovery, terminate the
connection to avoid stuck commands.
While there, improve handling of sequence numbers wrap after 2^32 PDUs.
|
| |
|
|
|
|
| |
Fix memory leak, reported by Coverity.
|
|
|
|
|
|
|
| |
Make both iSCSI initiator and target support base64 encoded CHAP data.
While all tested initiators and targets use hex-encoded CHAP data, RFC also
allows base64 encoding there, and Microsoft certificaition tool uses it.
|
|
|
|
|
|
| |
Whitespace fixes.
Sponsored by: The FreeBSD Foundation
|
|
|
|
|
|
|
| |
Untangle iSCSI authentication code by splitting off the CHAP
implementation.
Sponsored by: The FreeBSD Foundation
|
|
|
|
|
|
|
|
|
|
| |
Improve markup and language throughout the ctl.conf man page
MFC r271543:
Add the new iscsi(4) man page
Cross reference it from iscsid(8) and iscsictl(8)
Approved by: re (gjb), bcr (mentor)
|
|
|
|
|
|
|
|
|
|
|
| |
Don't blindly assume the target agreed to transition to Full Feature Phase;
if we got a Login Response PDU without the "T" bit set, try again with
an empty request. This fixes interoperability with COMSTAR.
Reviewed by: mav
Tested by: mav
Approved by: re (kib)
Sponsored by: The FreeBSD Foundation
|
|
|
|
|
|
|
|
|
|
| |
Add LIBCRYPTO and LIBSSL to DPADD
This fixes "make checkdpadd"
Phabric: D621
PR: 192761
Approved by: rpaulo (mentor)
|
|
|
|
|
|
| |
Make the iSCSI stack use __FBSDID() properly.
Sponsored by: The FreeBSD Foundation
|
|
|
|
| |
Get rid of unneccessary argument.
|
|
|
|
| |
Improve code a little; no functional changes.
|
|
|
|
| |
Use proper term in debug messages.
|
|
|
|
| |
Remove unused variable.
|
|
|
|
| |
Implement redirection handling in initiator.
|
|
|
|
|
|
|
|
| |
Make iSCSI initiator keep Initiator Session ID (ISID) across reconnects.
Previously ISID was changed every time, that made impossible correct
persistent reservation, because reconnected session was identified as
completely new one.
|
|
|
|
|
|
| |
Remove redundant code.
Sponsored by: The FreeBSD Foundation
|
|
|
|
|
|
|
|
|
| |
Make it possible for the initiator side to operate in both proxy
and normal mode; this makes it possible to compile with the former
by default, but use it only when neccessary. That's especially
important for the userland part.
Sponsored by: The FreeBSD Foundation
|
|
|
|
|
|
|
|
|
| |
So, it turns out SIGCHLD is discarded by default, so we have to set up
a dummy handler to make it interrupt an ioctl(2) or select(2).
This makes those short-lived iscsid(8) zombies disappear.
Sponsored by: The FreeBSD Foundation
|
|
|
|
|
|
|
| |
Empty data segment during Login Phase is rather unlikely, but it's not
a protocol error.
Sponsored by: The FreeBSD Foundation
|
|
|
|
|
|
|
| |
The log_whatever() routines don't accept NULL for format strings,
so mark them as __printflike instead of __printf0like.
Sponsored by: The FreeBSD Foundation
|
|
|
|
|
|
| |
Coverity CID: 1087991
Approved by: re (gjb)
Sponsored by: FreeBSD Foundation
|
|
|
|
|
|
| |
Coverity CID: 1092478
Approved by: re (gjb)
Sponsored by: FreeBSD Foundation
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
fix for LIO (Linux target), removing possibility for the target to avoid mutual
CHAP by choosing to skip authentication altogether, and fixing truncated error
messages in iscsictl(8) output. This also fixes several of the problems found
with Coverity.
Note that this change requires world rebuild.
Coverity CID: 1088038, 1087998, 1087990, 1088004, 1088044, 1088041, 1088040
Approved by: re (blanket)
Sponsored by: FreeBSD Foundation
|
|
|
|
|
|
| |
improve module loading in iscsid(8) and ctld(8).
Approved by: re (delphij)
|
|
|
|
|
|
| |
and error reporting.
Approved by: re (kib)
|
|
|
|
| |
Approved by: re (blanket)
|
|
Reviewed by: ken (parts)
Approved by: re (delphij)
Sponsored by: FreeBSD Foundation
|