freebsd-nq/usr.sbin/iscsid
Ed Maste fc79cf4fea iscsid: set max_recv_data_segment_length to what we advertise
Previously we updated the conection's conn_max_recv_data_segment_length
only when we received a response containing MaxRecvDataSegmentLength
from the target.  If the target did not send MaxRecvDataSegmentLength
then we left conn_max_recv_data_segment_length at the default (i.e.,
8192).  A target could then send more data than that defult (up to our
advertised maximum), and we would drop the connection.

RFC 7143 specifies that MaxRecvDataSegmentLength is Declarative, not
negotiated.  Just set conn_max_recv_data_segment_length to our
advertised value in login_negotiate().

PR:		259355
Reviewed by:	mav
MFC after:	1 week
Fixes:		a15fbc904a ("Alike to r312190 decouple iSCSI...")
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D32605
2021-10-25 16:25:15 -04:00
..
chap.c Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00
discovery.c Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00
iscsid.8 Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00
iscsid.c iscsid: Disable TCP DDP for connection sockets. 2021-09-13 09:57:54 -07:00
iscsid.h Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00
keys.c Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00
log.c Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00
login.c iscsid: set max_recv_data_segment_length to what we advertise 2021-10-25 16:25:15 -04:00
Makefile Stop hardcoding WARNS in iscsid(8). 2020-04-01 15:09:52 +00:00
Makefile.depend
pdu.c Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00