History log of /freebsd-current/usr.sbin/ctld/token.l
Revision Date Author Comments
# b3e76948 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: two-line .h pattern

Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/


# 4d846d26 10-May-2023 Warner Losh <imp@FreeBSD.org>

spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD

The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with: pfg
MFC After: 3 days
Sponsored by: Netflix


# bce7ee9d 28-Oct-2020 Edward Tomasz Napierala <trasz@FreeBSD.org>

Drop "All rights reserved" from all my stuff. This includes
Foundation copyrights, approved by emaste@. It does not include
files which carry other people's copyrights; if you're one
of those people, feel free to make similar change.

Reviewed by: emaste, imp, gbe (manpages)
Differential Revision: https://reviews.freebsd.org/D26980


# ea8f1280 24-Oct-2020 Richard Scheffenegger <rscheff@FreeBSD.org>

Add network QoS support for PCP to iscsi target.

Mak the Ethernet PCP codepoint configurable
for L2 local traffic, to allow lower latency for
iSCSI block IO. This addresses the target
side only.

Reviewed by: mav, trasz, bcr
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D26740


# 64ffe6d4 27-Sep-2020 Richard Scheffenegger <rscheff@FreeBSD.org>

Add DSCP support for network QoS to iscsi target.

In order to prioritize iSCSI traffic across a network,
DSCP can be used. In order not to rely on "ipfw setdscp"
or in-network reclassification, this adds the dscp value
directly to the portal group (where TCP sessions are accepted).

The incoming iSCSI session is first handled by ctld for any
CHAP authentication and the socket is then handed off to the
in-kernel iscsi driver without modification of the socket
parameters. Simply setting up the socket in ctld is sufficient
to keep sending outgoing iSCSI related traffic with the
configured DSCP value.

Reviewed by: mav, trasz
MFC after: 2 weeks
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D26385


# 58aad230 10-Sep-2019 Baptiste Daroussin <bapt@FreeBSD.org>

Stop linking to libl by specifying we do not need yywrap

MFC after: 3 days


# 1de7b4b8 27-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

various: general adoption of SPDX licensing ID tags.

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.


# 91be33dc 27-Sep-2015 Alexander Motin <mav@FreeBSD.org>

Add to CTL initial support for CDROMs and removable devices.

Relnotes: yes


# 3933f7b1 15-Sep-2015 Alexander Motin <mav@FreeBSD.org>

Add ctl-lun config option for consistency in HA setups.


# db7bf2ba 07-Sep-2015 Alexander Motin <mav@FreeBSD.org>

Add two new portal group options "tag" and "foreign".

They are going to be useful in clustered setups.


# a66d51f3 18-Jun-2015 Edward Tomasz Napierala <trasz@FreeBSD.org>

Allow '@' in unquoted strings, such as with the "path" statement. Note
that one can use any character they like by using double quotes.

PR: 200895
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation


# a7c4ad39 14-Apr-2015 Xin LI <delphij@FreeBSD.org>

Eliminate unused headers.


# 057abcb0 07-Feb-2015 Alexander Motin <mav@FreeBSD.org>

Teach ctld(8) to control non-iSCSI CTL ports.

This change introduces new target option "port", that assigns current target
to specified CTL port. On config application ctld(8) will apply LUN mapping
according to target configuration to specified port and bring the port up.
On shutdown cltd(8) will remove the mapping and put the port down.

This change allows to configure both iSCSI and FibreChannel targets in the
same configuration file in alike way.

Kernel side support was added earlier at r278037.

MFC after: 2 weeks
Relnotes: yes
Sponsored by: iXsystems, Inc.


# 07b49a3e 06-Feb-2015 Edward Tomasz Napierala <trasz@FreeBSD.org>

Make it possible to set (via ctl.conf(5)) and query (via ctladm islist -v)
target iSCSI offload. Add mechanism to query maximum receive data segment
size supported by chosen hardware offload module, and use it in ctld(8)
to determine the value to advertise to the other side.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation


# 6dbdbf82 09-Nov-2014 Edward Tomasz Napierala <trasz@FreeBSD.org>

Add support for sending redirections to iSCSI target.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation


# 1cb587dc 28-Oct-2014 Edward Tomasz Napierala <trasz@FreeBSD.org>

Fix iscsictl(8) and ctld(8) to correctly handle Windows newlines
(CRLF) in iscsi.conf and ctl.conf.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation


# f9488580 28-Oct-2014 Edward Tomasz Napierala <trasz@FreeBSD.org>

Make it possible to optionally use semicolon to separate statements.
This makes it possible to format stuff like this:

target xxx {
lun 0 { path /foo/bar; size 4G; }
}

MFC after: 1 month
Sponsored by: The FreeBSD Foundation


# 05374883 29-Oct-2014 Edward Tomasz Napierala <trasz@FreeBSD.org>

Add discovery-filter. This makes it possible to restrict which targets
are returned during discovery based on initiator portal, name, and CHAP
credentials.

Reviewed by: mav@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation


# 4524db57 28-Oct-2014 Edward Tomasz Napierala <trasz@FreeBSD.org>

Remove the distinction between strings and numbers from ctld(8) yacc parser.
This fixes problems with passing strings that look like numbers to clauses
that expect strings; previously it caused syntax errors and had to be worked
by user, using quotes. The workaround introduced in r267833 is no longer
neccessary.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation


# 829603e2 24-Oct-2014 Alexander Motin <mav@FreeBSD.org>

Add basic iSNS client to the iSCSI target.

This makes ctld(8) register its iSCSI targets and portals on configured
iSNS servers to allow initiators find them without active discovery.

Fetching of allowed initiators from iSNS is not implemented now, so target
ACLs still should be configured manually.

Reviewed by: trasz@
MFC after: 1 month
Sponsored by: iXsystems, Inc.


# c9593e36 24-Jun-2014 Josh Paetzel <jpaetzel@FreeBSD.org>

Fix issues in config parser relating to lun serial numbers.

Without this fix some serial numbers needed to be quoted
to avoid the config parser bailing out.

Submitted by: delphij
Sponsored by: iXsystems


# e0fccc98 11-Feb-2014 Edward Tomasz Napierala <trasz@FreeBSD.org>

Make ctld error out on invalid characters in ctl.conf.

Sponsored by: The FreeBSD Foundation


# df9900fb 11-Feb-2014 Edward Tomasz Napierala <trasz@FreeBSD.org>

Add auth-type.

Sponsored by: The FreeBSD Foundation


# 8cb2e958 11-Feb-2014 Edward Tomasz Napierala <trasz@FreeBSD.org>

Implement initiator-name and initiator-portal restrictions.

Sponsored by: The FreeBSD Foundation


# 009ea47e 14-Sep-2013 Edward Tomasz Napierala <trasz@FreeBSD.org>

Bring in the new iSCSI target and initiator.

Reviewed by: ken (parts)
Approved by: re (delphij)
Sponsored by: FreeBSD Foundation