aboutsummaryrefslogtreecommitdiff
path: root/sbin/iscontrol
Commit message (Collapse)AuthorAgeFilesLines
* iscontrol: move definition of vflag/iscsidev to iscontrol.cKyle Evans2020-03-292-2/+5
| | | | | | | | | | Mark the declaration extern as these are used elsewhere; this fixes the build with -fno-common. MFC after: 3 days Notes: svn path=/head/; revision=359414
* Fix formatting.Mark Johnston2019-08-081-1/+1
| | | | | | | | | PR: 239726 Submitted by: Gordon Bergling <gbergling@gmail.com> MFC after: 3 days Notes: svn path=/head/; revision=350779
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-278-1/+17
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Notes: svn path=/head/; revision=326276
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* sbin: normalize paths using SRCTOP-relative paths or :H when possibleEnji Cooper2017-03-041-1/+1
| | | | | | | | | | This simplifies make logic/output MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314656
* Add missing history sections to a number of storage related man pagesAllan Jude2016-09-161-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gmultipath.8: Add HISTORY Adjust sentences with bad phrases picked up by igor ggatec.8: Add HISTORY ggated.8: Add HISTORY ggatel.8: Add HISTORY Seperate out sentence as advised by igor. hastctl.8: Add HISTORY hastd.8: Add HISTORY Fix sentence highlighted by igor. iscontrol.8: Add HISTORY mdmfs.8: Add HISTORY Address issues raised by igor mount_nfs.8: Add HISTORY Not sure where mount_nfs first showed up, but the verison used in the BSD's originates from 4.4BSD according to CSRG archive. Though commercial offerings from Sun and others covers older systems, eg https://groups.google.com/forum/#!topic/net.unix-wizards/lMe7aQikqJI nandfs.8: Add HISTORY Adjust sentence in description to address bad phrase highlighted by igor. nvmecontrol.8: Add HISTORY PR: 212491 PR: 212498 PR: 212499 PR: 212500 PR: 212501 PR: 212502 PR: 212505 PR: 212508 PR: 212540 PR: 212543 PR: 212546 Submitted by: Sevan Janiyan <venture37@geeklan.co.uk> Notes: svn path=/head/; revision=305861
* Fix multiple Coverity Out-of-bounds access false postive issues in CAMDon Lewis2016-05-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The currently used idiom for clearing the part of a ccb after its header generates one or two Coverity errors for each time it is used. All instances generate an Out-of-bounds access (ARRAY_VS_SINGLETON) error because of the treatment of the header as a two element array, with a pointer to the non-existent second element being passed as the starting address to bzero(). Some instances also alsp generate Out-of-bounds access (OVERRUN) errors, probably because the space being cleared is larger than the sizeofstruct ccb_hdr). In addition, this idiom is difficult for humans to understand and it is error prone. The user has to chose the proper struct ccb_* type (which does not appear in the surrounding code) for the sizeof() in the length calculation. I found several instances where the length was incorrect, which could cause either an actual out of bounds write, or incompletely clear the ccb. A better way is to write the code to clear the ccb itself starting at sizeof(ccb_hdr) bytes from the start of the ccb, and calculate the length based on the specific type of struct ccb_* being cleared as specified by the union ccb member being used. The latter can normally be seen in the nearby code. This is friendlier for Coverity and other static analysis tools because they will see that the intent is to clear the trailing part of the ccb. Wrap all of the boilerplate code in a convenient macro that only requires a pointer to the desired union ccb member (or a pointer to the union ccb itself) as an argument. Reported by: Coverity CID: 1007578, 1008684, 1009724, 1009773, 1011304, 1011306 CID: 1011307, 1011308, 1011309, 1011310, 1011311, 1011312 CID: 1011313, 1011314, 1011315, 1011316, 1011317, 1011318 CID: 1011319, 1011320, 1011321, 1011322, 1011324, 1011325 CID: 1011326, 1011327, 1011328, 1011329, 1011330, 1011374 CID: 1011390, 1011391, 1011392, 1011393, 1011394, 1011395 CID: 1011396, 1011397, 1011398, 1011399, 1011400, 1011401 CID: 1011402, 1011403, 1011404, 1011405, 1011406, 1011408 CID: 1011409, 1011410, 1011411, 1011412, 1011413, 1011414 CID: 1017461, 1018387, 1086860, 1086874, 1194257, 1229897 CID: 1229968, 1306229, 1306234, 1331282, 1331283, 1331294 CID: 1331295, 1331535, 1331536, 1331539, 1331540, 1341623 CID: 1341624, 1341637, 1341638, 1355264, 1355324 Reviewed by: scottl, ken, delphij, imp MFH: 1 month Differential Revision: https://reviews.freebsd.org/D6496 Notes: svn path=/head/; revision=300547
* Rename getline with get_line to avoid collision with getline(3)Baptiste Daroussin2016-05-101-2/+2
| | | | | | | | When getline(3) in 2009 was added a _WITH_GETLINE guard has also been added. This rename is made in preparation for the removal of this guard Notes: svn path=/head/; revision=299362
* Include correct is*ct*l program in iscsi package, and package theGlen Barber2016-02-161-1/+1
| | | | | | | | | | legacy version separately. Submitted by: trasz Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295640
* 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
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+22
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-273-194/+5
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge from head@274682Simon J. Gerraty2014-11-191-1/+10
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=274683
| * | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | Merge headSimon J. Gerraty2014-04-282-5/+5
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * \ \ Merge head@256284Simon J. Gerraty2013-10-132-31/+8
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=256424
| * | | | Updated dependenciesSimon J. Gerraty2013-10-131-0/+1
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=256419
| * | | | Merge from headSimon J. Gerraty2013-09-058-20/+10
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * | | | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | | mdoc: remove EOL whitespace.Joel Dahl2014-12-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=276360
* | | | | | mdoc: improvements to SEE ALSO.Joel Dahl2014-12-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=276293
* | | | | | Move iscsi.conf.5 from sbin/iscontrol/ to usr.bin/iscsictl/, as theEdward Tomasz Napierala2014-12-052-189/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | former is obsolete. MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=275510
* | | | | | Convert sbin/ to LIBADDBaptiste Daroussin2014-11-251-2/+1
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275030
* | | | | Mark iscontrol(8) and iscsi_initiator(4) obsolete.Edward Tomasz Napierala2014-10-111-1/+10
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Differential Revision: https://reviews.freebsd.org/D931 Reviewed by: wblock@ MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=272932
* | | | Reword the part about mutual CHAP.Edward Tomasz Napierala2013-12-171-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=259502
* | | | Check for EHOSTUNREACH when establishing a connection.Kevin Lo2013-10-171-0/+1
| |_|/ |/| | | | | | | | | | | | | | | | | Reviewed by: trasz Notes: svn path=/head/; revision=256659
* | | Remove unimplemented options from iscsi.conf(5) manual page, mentionEdward Tomasz Napierala2013-10-101-31/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | that it's being used by both initiators, and change the title to make it more easily searchable. Approved by: re (glebius) Sponsored by: FreeBSD Foundation Notes: svn path=/head/; revision=256261
* | | Bring in the new iSCSI target and initiator.Edward Tomasz Napierala2013-09-142-0/+2
| |/ |/| | | | | | | | | | | | | | | Reviewed by: ken (parts) Approved by: re (delphij) Sponsored by: FreeBSD Foundation Notes: svn path=/head/; revision=255570
* | Move the old iSCSI initiator source to a more appropriate placeEdward Tomasz Napierala2013-08-227-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | (sys/dev/iscsi_initiator/ instead of sys/dev/iscsi/initiator/), to make room for the new one. This is also more logical location (kernel module being named iscsi_initiator.ko, for example). There is no ongoing work on this I know of, so it shouldn't make life harder for anyone. There are no functional changes, apart from "svn mv" and adjusting paths. Notes: svn path=/head/; revision=254657
* | mdoc sweep.Joel Dahl2013-05-121-1/+3
| | | | | | | | Notes: svn path=/head/; revision=250582
* | Remove includes for old versions of FreeBSD.Eitan Adler2013-05-064-12/+0
|/ | | | | | | | | Reviewed by: stass Obtained From: DragonFlyBSD MFC After: 1 week Notes: svn path=/head/; revision=250303
* General mdoc(7) and typo fixes.Glen Barber2012-05-121-2/+2
| | | | | | | | | PR: 167804 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org) MFC after: 3 days Notes: svn path=/head/; revision=235337
* Unbreak tinderbox.Josh Paetzel2012-04-182-27/+35
| | | | | | | | | | Fix FreeBSD paradigms in the upstream code. PR: bin/166933 Submitted by: Garrett Cooper <yanegomi@gmail.com> Notes: svn path=/head/; revision=234425
* Update to version 2.3.1.0Josh Paetzel2012-04-134-4/+22
| | | | | | | Obtained from: Daniel Braniss <danny@cs.huji.ac.il> Notes: svn path=/head/; revision=234233
* Whitespace cleanup:Glen Barber2012-02-251-4/+4
| | | | | | | | | | | | o Wrap sentences on to new lines o Cleanup trailing whitespace Found with: textproc/igor MFC after: 1 week X-MFC-With: r232157 Notes: svn path=/head/; revision=232158
* Fix various typos in manual pages.Glen Barber2012-02-251-2/+2
| | | | | | | | | Submitted by: amdmi3 PR: 165431 MFC after: 1 week Notes: svn path=/head/; revision=232157
* Fix compilation with debug on.Martin Cracauer2011-01-252-3/+3
| | | | | | | Fix segfault when TargetAddress is missing or mis-spelled in config file. Notes: svn path=/head/; revision=217859
* - Add full support for header / data digests.Dag-Erling Smørgrav2010-08-0912-243/+142
| | | | | | | | | | | | | | | | - Increase target limit from 4 to 64; this limit will be removed entirely at a later time. - Improve recovery from lost network connections. - Fix some potential deadlocks and a serious memory leak. - Fix incorrect use of MH_ALIGN (instead of M_ALIGN), which makes no practical difference, but triggers a KASSERT with INVARIANTS. - Fix some warnings in iscontrol(8) and improve the man page somewhat. Submitted by: Daniel Braniss <danny@cs.huji.ac.il> Sponsored by: Dansk Scanning A/S, Data Robotics Inc. Notes: svn path=/head/; revision=211095
* Spelling fixes.Joel Dahl2010-07-311-1/+1
| | | | Notes: svn path=/head/; revision=210702
* o Restore missed flag in the synopsis.Maxim Konovalov2010-07-131-1/+1
| | | | | | | | | PR: docs/148534 Submitted by: Warren Block MFC after: 1 week Notes: svn path=/head/; revision=209972
* Remove dead variable assignmentsUlrich Spörlein2010-06-111-1/+0
| | | | | | | | Found by: clang static analyzer Verified by: md5(1) Notes: svn path=/head/; revision=209052
* mdoc: order prologue macros consistently by Dd/Dt/OsUlrich Spörlein2010-04-141-1/+1
| | | | | | | | | | | Although groff_mdoc(7) gives another impression, this is the ordering most widely used and also required by mdocml/mandoc. Reviewed by: ru Approved by: philip, ed (mentors) Notes: svn path=/head/; revision=206622
* pukeText is an internal function so define it as static rather thanXin LI2010-02-032-2/+3
| | | | | | | | | exporting it. MFC after: 1 month Notes: svn path=/head/; revision=203460
* Switch the default WARNS level for sbin/ to 6.Ruslan Ermilov2009-10-191-0/+1
| | | | | | | Submitted by: Ulrich Spörlein Notes: svn path=/head/; revision=198236
* Big update to the iSCSI initiator code. Highlights include IPv6 support,Scott Long2008-11-2510-59/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | many bugs fixes, many more performance improvements. Submitted by: Danny Braniss M sbin/iscontrol/iscsi.conf.5 M sbin/iscontrol/iscontrol.8 M sbin/iscontrol/iscontrol.h M sbin/iscontrol/config.c M sbin/iscontrol/fsm.c M sbin/iscontrol/login.c M sbin/iscontrol/pdu.c M sbin/iscontrol/misc.c M sbin/iscontrol/auth_subr.c M sbin/iscontrol/iscontrol.c M sys/dev/iscsi/initiator/isc_cam.c M sys/dev/iscsi/initiator/iscsi.h M sys/dev/iscsi/initiator/isc_soc.c M sys/dev/iscsi/initiator/iscsi_subr.c M sys/dev/iscsi/initiator/iscsivar.h M sys/dev/iscsi/initiator/isc_subr.c M sys/dev/iscsi/initiator/iscsi.c M sys/dev/iscsi/initiator/isc_sm.c Notes: svn path=/head/; revision=185289
* Fix typo.Pierre Beyssac2008-02-061-1/+1
| | | | | | | Submitted by: danny at cs.huji.ac.il (author) Notes: svn path=/head/; revision=176034