aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/iscsid
Commit message (Collapse)AuthorAgeFilesLines
* The <libutil.h> is an ordinary header file; should sort just like any other.Edward Tomasz Napierala2016-01-241-2/+1
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=294670
* META MODE: Update dependencies with 'the-lot' and add missing directories.Bryan Drewery2015-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 Notes: svn path=/head/; revision=291563
* Remove unneeded includes.Edward Tomasz Napierala2015-11-142-2/+0
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=290822
* Remove a few unused headers.Xin LI2015-10-062-4/+0
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=288959
* Use proper term in the ctld(8) and iscsid(8) man pages.Edward Tomasz Napierala2015-09-031-2/+2
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=287431
* Remove OpenSSL dependency from iscsid(8) and ctld(8).Edward Tomasz Napierala2015-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 Notes: svn path=/head/; revision=285086
* Remove unused code.Edward Tomasz Napierala2015-02-122-21/+0
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=278622
* The connection_new() routine was taking an absurd number of parameters; fix it.Edward Tomasz Napierala2015-02-051-15/+7
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=278236
* Make it possible to set (via iscsi.conf(5)) and query (via iscsictl -v)Edward Tomasz Napierala2015-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 Notes: svn path=/head/; revision=278232
* Slightly polish iSCSI parameters negotiation.Alexander Motin2014-12-191-2/+7
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=275925
* Make sequence numbers checks more strict.Alexander Motin2014-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 Notes: svn path=/head/; revision=275864
* Convert usr.sbin to LIBADDBaptiste Daroussin2014-11-251-2/+1
| | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275054
* For both iSCSI initiator and target increase socket buffer sizes beforeAlexander Motin2014-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 Notes: svn path=/head/; revision=274853
* Make both iSCSI initiator and target support base64 encoded CHAP data.Alexander Motin2014-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. Notes: svn path=/head/; revision=274328
* iscsid does not need to link to libsslBaptiste Daroussin2014-11-061-2/+2
| | | | Notes: svn path=/head/; revision=274171
* Whitespace fixes.Edward Tomasz Napierala2014-10-222-4/+4
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=273464
* Untangle iSCSI authentication code by splitting off the CHAPEdward Tomasz Napierala2014-10-224-193/+449
| | | | | | | | | | | implementation. Reviewed by: mav@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=273459
* Add the new iscsi(4) man pageAllan Jude2014-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 Notes: svn path=/head/; revision=271543
* Don't blindly assume the target agreed to transition to Full Feature Phase;Edward Tomasz Napierala2014-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 Notes: svn path=/head/; revision=271437
* Fix memory leak, reported by Coverity.Alexander Motin2014-09-101-0/+1
| | | | | | | CID: 1229996 Notes: svn path=/head/; revision=271366
* Make the iSCSI stack use __FBSDID() properly.Edward Tomasz Napierala2014-08-216-6/+18
| | | | | | | | MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=270279
* Add LIBCRYPTO and LIBSSL to DPADDEnji Cooper2014-08-181-1/+1
| | | | | | | | | | | | This fixes "make checkdpadd" Phabric: D621 PR: 192761 Approved by: rpaulo (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=270146
* Make iSCSI initiator keep Initiator Session ID (ISID) across reconnects.Alexander Motin2014-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 Notes: svn path=/head/; revision=268326
* use .Mt to mark up email addresses consistently (part2)Baptiste Daroussin2014-06-201-1/+1
| | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de> Notes: svn path=/head/; revision=267668
* Implement redirection handling in initiator.Edward Tomasz Napierala2014-06-182-2/+62
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=267613
* Get rid of unneccessary argument.Edward Tomasz Napierala2014-06-181-5/+8
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=267612
* Improve code a little; no functional changes.Edward Tomasz Napierala2014-06-181-9/+21
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=267609
* Use proper term in debug messages.Edward Tomasz Napierala2014-06-181-5/+5
| | | | | | | | MFC after: 1 month Sponsored by: FreeBSD Foundation Notes: svn path=/head/; revision=267608
* Remove unused variable.Edward Tomasz Napierala2014-05-151-4/+0
| | | | Notes: svn path=/head/; revision=266169
* Remove redundant code.Edward Tomasz Napierala2014-04-171-1/+0
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=264604
* Make it possible for the initiator side to operate in both proxyEdward Tomasz Napierala2014-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 Notes: svn path=/head/; revision=264549
* Update most userspace consumers of capability.h to use capsicum.h instead.Robert Watson2014-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 Notes: svn path=/head/; revision=263234
* So, it turns out SIGCHLD is discarded by default, so we have to set upEdward Tomasz Napierala2014-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 Notes: svn path=/head/; revision=261748
* Empty data segment during Login Phase is rather unlikely, but it's notEdward Tomasz Napierala2014-02-113-7/+1
| | | | | | | | | a protocol error. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=261747
* The log_whatever() routines don't accept NULL for format strings,Edward Tomasz Napierala2014-02-101-4/+4
| | | | | | | | | so mark them as __printflike instead of __printf0like. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=261715
* Plug memory leak.Edward Tomasz Napierala2013-10-091-0/+1
| | | | | | | | | Coverity CID: 1087991 Approved by: re (gjb) Sponsored by: FreeBSD Foundation Notes: svn path=/head/; revision=256194
* Fix memory overrun.Edward Tomasz Napierala2013-10-091-1/+1
| | | | | | | | | Coverity CID: 1092478 Approved by: re (gjb) Sponsored by: FreeBSD Foundation Notes: svn path=/head/; revision=256193
* Fix several problems in the new iSCSI stack; this includes interoperabilityEdward Tomasz Napierala2013-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 Notes: svn path=/head/; revision=255678
* Make iscsictl(8) automatically try to load the iscsi module. While here,Edward Tomasz Napierala2013-09-181-1/+1
| | | | | | | | | improve module loading in iscsid(8) and ctld(8). Approved by: re (delphij) Notes: svn path=/head/; revision=255665
* Improve iSCSI address resolution, fixing "InitiatorAddress" handling,Edward Tomasz Napierala2013-09-171-31/+35
| | | | | | | | | and error reporting. Approved by: re (kib) Notes: svn path=/head/; revision=255636
* Minor mdoc fixes.Joel Dahl2013-09-141-2/+2
| | | | | | | Approved by: re (blanket) Notes: svn path=/head/; revision=255575
* Bring in the new iSCSI target and initiator.Edward Tomasz Napierala2013-09-149-0/+2609
Reviewed by: ken (parts) Approved by: re (delphij) Sponsored by: FreeBSD Foundation Notes: svn path=/head/; revision=255570