summaryrefslogtreecommitdiffstats
path: root/usr.sbin/iscsid
Commit message (Collapse)AuthorAgeFilesLines
* META MODE: Update dependencies with 'the-lot' and add missing directories.bdrewery2015-12-011-0/+21
| | | | | | | | | | | | | | This is not properly respecting WITHOUT or ARCH dependencies in target/. Doing so requires a massive effort to rework targets/ to do so. A better approach will be to either include the SUBDIR Makefiles directly and map to DIRDEPS or just dynamically lookup the SUBDIR. These lose the benefit of having a userland/lib, userland/libexec, etc, though and results in a massive package. The current implementation of targets/ is very unmaintainable. Currently rescue/rescue and sys/modules are still not connected. Sponsored by: EMC / Isilon Storage Division
* Remove unneeded includes.trasz2015-11-142-2/+0
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Remove a few unused headers.delphij2015-10-062-4/+0
| | | | MFC after: 2 weeks
* Use proper term in the ctld(8) and iscsid(8) man pages.trasz2015-09-031-2/+2
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Remove OpenSSL dependency from iscsid(8) and ctld(8).trasz2015-07-033-28/+15
| | | | | | | | Differential Revision: https://reviews.freebsd.org/D2866 Submitted by: Tony Morlan <tony at scroner.com> (earlier version) Reviewed by: bapt@, delphij@ MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Remove unused code.trasz2015-02-122-21/+0
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* The connection_new() routine was taking an absurd number of parameters; fix it.trasz2015-02-051-15/+7
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Make it possible to set (via iscsi.conf(5)) and query (via iscsictl -v)trasz2015-02-053-5/+13
| | | | | | | | | initiator iSCSI offload. Pass maximum data segment size supported by chosen offload module to iscsid(8), and make iscsid(8) not try to negotiate anything larger than that. MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Slightly polish iSCSI parameters negotiation.mav2014-12-191-2/+7
| | | | MFC after: 1 week
* Make sequence numbers checks more strict.mav2014-12-172-3/+3
| | | | | | | | | | 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. MFC after: 2 weeks
* Convert usr.sbin to LIBADDbapt2014-11-251-2/+1
| | | | Reduce overlinking
* For both iSCSI initiator and target increase socket buffer sizes beforemav2014-11-222-1/+10
| | | | | | | | | | | 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. MFC after: 1 week
* Make both iSCSI initiator and target support base64 encoded CHAP data.mav2014-11-091-1/+50
| | | | | | | | | While all tested initiators and targets use hex-encoded CHAP data, RFC also allows base64 encoding there, and Microsoft certificaition tool uses it. Reviewed by: trasz (earlier version) MFC after: 2 weeks Sponsored by: iXsystems, Inc.
* iscsid does not need to link to libsslbapt2014-11-061-2/+2
|
* Whitespace fixes.trasz2014-10-222-4/+4
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Untangle iSCSI authentication code by splitting off the CHAPtrasz2014-10-224-193/+449
| | | | | | | | implementation. Reviewed by: mav@ MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Add the new iscsi(4) man pageallanjude2014-09-131-5/+7
| | | | | | | | | Cross reference it from iscsid(8) and iscsictl(8) Reviewed by: trasz Approved by: bcr (mentor), wblock (mentor) Sponsored by: ScaleEngine Inc. CR: https://reviews.freebsd.org/D741
* Don't blindly assume the target agreed to transition to Full Feature Phase;trasz2014-09-111-9/+31
| | | | | | | | | 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@ MFC after: 1 week
* Fix memory leak, reported by Coverity.mav2014-09-101-0/+1
| | | | CID: 1229996
* Make the iSCSI stack use __FBSDID() properly.trasz2014-08-216-6/+18
| | | | | MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
* Add LIBCRYPTO and LIBSSL to DPADDngie2014-08-181-1/+1
| | | | | | | | | This fixes "make checkdpadd" Phabric: D621 PR: 192761 Approved by: rpaulo (mentor) MFC after: 2 weeks
* Make iSCSI initiator keep Initiator Session ID (ISID) across reconnects.mav2014-07-063-24/+10
| | | | | | | | | Previously ISID was changed every time, that made impossible correct persistent reservation, because reconnected session was identified as completely new one. Reviewed by: trasz MFC after: 1 week
* use .Mt to mark up email addresses consistently (part2)bapt2014-06-201-1/+1
| | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de>
* Implement redirection handling in initiator.trasz2014-06-182-2/+62
| | | | Sponsored by: The FreeBSD Foundation
* Get rid of unneccessary argument.trasz2014-06-181-5/+8
| | | | Sponsored by: The FreeBSD Foundation
* Improve code a little; no functional changes.trasz2014-06-181-9/+21
| | | | Sponsored by: The FreeBSD Foundation
* Use proper term in debug messages.trasz2014-06-181-5/+5
| | | | | MFC after: 1 month Sponsored by: FreeBSD Foundation
* Remove unused variable.trasz2014-05-151-4/+0
|
* Remove redundant code.trasz2014-04-171-1/+0
| | | | Sponsored by: The FreeBSD Foundation
* Make it possible for the initiator side to operate in both proxytrasz2014-04-163-34/+46
| | | | | | | | 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
* Update most userspace consumers of capability.h to use capsicum.h instead.rwatson2014-03-161-1/+1
| | | | | | | auditdistd is not updated as I will make the change upstream and then do a vendor import sometime in the next week or two. MFC after: 3 weeks
* So, it turns out SIGCHLD is discarded by default, so we have to set uptrasz2014-02-111-0/+28
| | | | | | | | 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 nottrasz2014-02-113-7/+1
| | | | | | a protocol error. Sponsored by: The FreeBSD Foundation
* The log_whatever() routines don't accept NULL for format strings,trasz2014-02-101-4/+4
| | | | | | so mark them as __printflike instead of __printf0like. Sponsored by: The FreeBSD Foundation
* Plug memory leak.trasz2013-10-091-0/+1
| | | | | | Coverity CID: 1087991 Approved by: re (gjb) Sponsored by: FreeBSD Foundation
* Fix memory overrun.trasz2013-10-091-1/+1
| | | | | | Coverity CID: 1092478 Approved by: re (gjb) Sponsored by: FreeBSD Foundation
* Fix several problems in the new iSCSI stack; this includes interoperabilitytrasz2013-09-182-55/+84
| | | | | | | | | | | | | 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
* Make iscsictl(8) automatically try to load the iscsi module. While here,trasz2013-09-181-1/+1
| | | | | | improve module loading in iscsid(8) and ctld(8). Approved by: re (delphij)
* Improve iSCSI address resolution, fixing "InitiatorAddress" handling,trasz2013-09-171-31/+35
| | | | | | and error reporting. Approved by: re (kib)
* Minor mdoc fixes.joel2013-09-141-2/+2
| | | | Approved by: re (blanket)
* Bring in the new iSCSI target and initiator.trasz2013-09-149-0/+2609
Reviewed by: ken (parts) Approved by: re (delphij) Sponsored by: FreeBSD Foundation
OpenPOWER on IntegriCloud