History log of /openbsd-current/usr.sbin/iscsid/pdu.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.13 12-Apr-2021 claudio

Spaces, no functional change


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.12 03-Jul-2019 deraadt

snprintf/vsnprintf return < 0 on error, rather than -1.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.11 05-Dec-2015 mmcc

strings.h -> string.h as necessary to prevent implicit declaration
warnings


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.10 23-Nov-2014 claudio

Clear the work in progress PDU before calling the task handler.
This ensures that we don't have multiple pointers pointing to the same PDU.


Revision tags: OPENBSD_5_6_BASE
# 1.9 21-Apr-2014 claudio

Handle EAGAIN, ENOBUFS and EINTR a bit better. Ignore them one layer above
and do not fail and tear down the world when they happen.


# 1.8 20-Apr-2014 claudio

Use only one style for "return foo;"


# 1.7 19-Apr-2014 claudio

COnveret the bcopy() to memcpy()


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.6 04-May-2011 claudio

Massive diff to handle logins more correctly. iscsid will now do
better operational parameter negotiation but more is needed.
Tested by todd@ and myself.


# 1.5 27-Apr-2011 claudio

Start implementing the FSM. Introduce a session FSM that is run via a
callback and implement some of the connection FSM actions. Implement
logouts so that discovery sessions do a nice login -> query -> logout.
Fix the task scheduling especially for immediate and connection specific
tasks. The session will now only schedule tasks to a session that is
in LOGGED_IN state.
looks good dlg@


Revision tags: OPENBSD_4_9_BASE
# 1.4 04-Jan-2011 claudio

Reset the resid before issuing the task callback so that the pdu can
be reused for sending out a message. This will be used soon for NOP
handling.


# 1.3 04-Jan-2011 claudio

When translating a PDU to text strip all trailing \0 but one.
Fixes parsing of login responses that had additional padding.


# 1.2 25-Sep-2010 sobrado

spacing, no binary changes.


# 1.1 24-Sep-2010 claudio

iSCSI Initiatior daemon using vscsi(4).
Currently implements the absolute minimum of the protocol to make
it work against targets. Many things still in flux but we're annoyed
to work outside of the tree. Commited from a source tree on an iSCSI
disk served via iscsid but it is not yet production ready.
OK dlg@, matthew@, deraadt@


# 1.12 03-Jul-2019 deraadt

snprintf/vsnprintf return < 0 on error, rather than -1.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.11 05-Dec-2015 mmcc

strings.h -> string.h as necessary to prevent implicit declaration
warnings


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.10 23-Nov-2014 claudio

Clear the work in progress PDU before calling the task handler.
This ensures that we don't have multiple pointers pointing to the same PDU.


Revision tags: OPENBSD_5_6_BASE
# 1.9 21-Apr-2014 claudio

Handle EAGAIN, ENOBUFS and EINTR a bit better. Ignore them one layer above
and do not fail and tear down the world when they happen.


# 1.8 20-Apr-2014 claudio

Use only one style for "return foo;"


# 1.7 19-Apr-2014 claudio

COnveret the bcopy() to memcpy()


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.6 04-May-2011 claudio

Massive diff to handle logins more correctly. iscsid will now do
better operational parameter negotiation but more is needed.
Tested by todd@ and myself.


# 1.5 27-Apr-2011 claudio

Start implementing the FSM. Introduce a session FSM that is run via a
callback and implement some of the connection FSM actions. Implement
logouts so that discovery sessions do a nice login -> query -> logout.
Fix the task scheduling especially for immediate and connection specific
tasks. The session will now only schedule tasks to a session that is
in LOGGED_IN state.
looks good dlg@


Revision tags: OPENBSD_4_9_BASE
# 1.4 04-Jan-2011 claudio

Reset the resid before issuing the task callback so that the pdu can
be reused for sending out a message. This will be used soon for NOP
handling.


# 1.3 04-Jan-2011 claudio

When translating a PDU to text strip all trailing \0 but one.
Fixes parsing of login responses that had additional padding.


# 1.2 25-Sep-2010 sobrado

spacing, no binary changes.


# 1.1 24-Sep-2010 claudio

iSCSI Initiatior daemon using vscsi(4).
Currently implements the absolute minimum of the protocol to make
it work against targets. Many things still in flux but we're annoyed
to work outside of the tree. Commited from a source tree on an iSCSI
disk served via iscsid but it is not yet production ready.
OK dlg@, matthew@, deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.11 05-Dec-2015 mmcc

strings.h -> string.h as necessary to prevent implicit declaration
warnings


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.10 23-Nov-2014 claudio

Clear the work in progress PDU before calling the task handler.
This ensures that we don't have multiple pointers pointing to the same PDU.


Revision tags: OPENBSD_5_6_BASE
# 1.9 21-Apr-2014 claudio

Handle EAGAIN, ENOBUFS and EINTR a bit better. Ignore them one layer above
and do not fail and tear down the world when they happen.


# 1.8 20-Apr-2014 claudio

Use only one style for "return foo;"


# 1.7 19-Apr-2014 claudio

COnveret the bcopy() to memcpy()


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.6 04-May-2011 claudio

Massive diff to handle logins more correctly. iscsid will now do
better operational parameter negotiation but more is needed.
Tested by todd@ and myself.


# 1.5 27-Apr-2011 claudio

Start implementing the FSM. Introduce a session FSM that is run via a
callback and implement some of the connection FSM actions. Implement
logouts so that discovery sessions do a nice login -> query -> logout.
Fix the task scheduling especially for immediate and connection specific
tasks. The session will now only schedule tasks to a session that is
in LOGGED_IN state.
looks good dlg@


Revision tags: OPENBSD_4_9_BASE
# 1.4 04-Jan-2011 claudio

Reset the resid before issuing the task callback so that the pdu can
be reused for sending out a message. This will be used soon for NOP
handling.


# 1.3 04-Jan-2011 claudio

When translating a PDU to text strip all trailing \0 but one.
Fixes parsing of login responses that had additional padding.


# 1.2 25-Sep-2010 sobrado

spacing, no binary changes.


# 1.1 24-Sep-2010 claudio

iSCSI Initiatior daemon using vscsi(4).
Currently implements the absolute minimum of the protocol to make
it work against targets. Many things still in flux but we're annoyed
to work outside of the tree. Commited from a source tree on an iSCSI
disk served via iscsid but it is not yet production ready.
OK dlg@, matthew@, deraadt@