aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/iscsid
Commit message (Collapse)AuthorAgeFilesLines
* Remove ISCSI_MAX_DATA_SEGMENT_LENGTH, using negotiated value.Alexander Motin2017-01-201-23/+27
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=312543
* Alike to r312190 decouple iSCSI connection limits from defaults.Alexander Motin2017-01-143-24/+24
| | | | | | | | | | | Connection parameters should remain at defaults until negotiated. While there, remove sythetic limits, applied if kernel provided none. iscsid has no own limitations, no configuration and no any idea what values are good. Assume kernel knows what it requests. Notes: svn path=/head/; revision=312195
* Make the iSCSI parameter negotiation more flexible.Navdeep Parhar2016-08-253-38/+86
| | | | | | | | | | | | | | | | | | | | | | Decouple the send and receive limits on the amount of data in a single iSCSI PDU. MaxRecvDataSegmentLength is declarative, not negotiated, and is direction-specific so there is no reason for both ends to limit themselves to the same min(initiator, target) value in both directions. Allow iSCSI drivers to report their send, receive, first burst, and max burst limits explicitly instead of using hardcoded values or trying to derive all of them from the receive limit (which was the only limit reported by the drivers prior to this change). Display the send and receive limits separately in the userspace iSCSI utilities. Reviewed by: jpaetzel@ (earlier version), trasz@ Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D7279 Notes: svn path=/head/; revision=304787
* Fix calloc(3) argument order.Marcelo Araujo2016-08-223-5/+5
| | | | | | | | | Reviewed by: trasz MFC after: 4 weeks. Differential Revision: https://reviews.freebsd.org/D7532 Notes: svn path=/head/; revision=304605
* Decouple MaxBurstLength and FirstBurstLength from MaxRecvDataSegmentLengthEdward Tomasz Napierala2016-06-092-10/+18
| | | | | | | | | | reported by the ICL module in iscsid(8). This harmed performance and was just wrong. MFC after: 1 month Notes: svn path=/head/; revision=301721
* Build iscsid(8) with ICL_KERNEL_PROXY defined by default, as requiredEdward Tomasz Napierala2016-05-231-1/+1
| | | | | | | | | | | for iSER. Obtained from: Mellanox Technologies MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=300504
* When iscsid(8) is running in ICL proxy mode, don't try to send Logout PDUs.Edward Tomasz Napierala2016-05-191-0/+12
| | | | | | | | | | The kernel already does this for us when we ask it to terminate the session. MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=300212
* Add initial support for negotiating iSER parameters to iscsid(8). SomeEdward Tomasz Napierala2016-05-171-2/+42
| | | | | | | | | | | | rework might be needed to support asymetrical limits, but this should be ok for now. Obtained from: Mellanox Technologies (earlier version) MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=300022
* MFHGlen Barber2016-04-042-7/+14
|\ | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=297567
| * Make fail() preserve the errno.Edward Tomasz Napierala2016-03-151-1/+5
| | | | | | | | | | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=296898
| * Use the log_errno value passed to the function instead of the errno globalEdward Tomasz Napierala2016-03-151-6/+9
| | | | | | | | | | | | | | | | | | | | | | variable. Suggested by: Daniel Braniss MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=296897
* | Create packages for atm, ccdconfig, devd, ipf, ipfw,Glen Barber2016-02-091-0/+1
|/ | | | | | | | | | | iscsi, natd, nandfs, pf, quotacheck, and routed. Add ping6 and rtsol to the runtime package. Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295448
* Improve reporting of connection problems in iscsid(8).Edward Tomasz Napierala2016-01-271-7/+14
| | | | | | | | | Obtained from: Mellanox Technologies MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=294932
* 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