Some iSCSI targets (observed with stgt) can be configured to reject connections that do not use header or data digests, and will respond with "HeaderDigest=Reject" and/or "DataDigest=Reject", while still allowing the connection to proceed to the full feature phase. According to a strict reading of RFC3720, we are perfectly safe to ignore these "Reject" messages: upon such a rejection "the negotiated key is left at its current value (or default if no value was set)". Since the default value for both HeaderDigest and DataDigest is "None", then the only viable conclusion to be drawn is that the value resulting from "Reject" is still "None". Unfortunately, stgt doesn't seem to agree with this interpretation of events, causing us to eventually report an unhelpful "connection timed out" message to the user when we don't get any response to our first PDU in full feature phase. Fix by detecting any rejected parameters and immediately reporting an error, which at least gives the user some insight as to what the real problem may be. Reported-by: Michal Suchanek <hramrach@centrum.cz> Tested-by: Michal Suchanek <hramrach@centrum.cz> Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
131 |
|
131 |
|
132 |
|
132 |
|
133 |
|
133 |
|
|
134 |
|
|
|
135 |
|
|
|
136 |
|
|
|
137 |
|
|
|
138 |
|
|
|
139 |
|
|
|
140 |
|
|
|
141 |
|
|
134 |
|
142 |
|
135 |
|
143 |
|
136 |
|
144 |
|
|
|
||
1083 |
|
1091 |
|
1084 |
|
1092 |
|
1085 |
|
1093 |
|
1086 |
|
|
|
1087 |
|
|
|
|
1094 |
|
|
|
1095 |
|
|
1088 |
|
1096 |
|
1089 |
|
1097 |
|
1090 |
|
1098 |
|
|
|
||
1098 |
|
1106 |
|
1099 |
|
1107 |
|
1100 |
|
1108 |
|
1101 |
|
|
|
1102 |
|
|
|
1103 |
|
|
|
1104 |
|
|
|
1105 |
|
|
|
1106 |
|
|
|
1107 |
|
|
|
|
1109 |
|
|
|
1110 |
|
|
|
1111 |
|
|
|
1112 |
|
|
|
1113 |
|
|
|
1114 |
|
|
|
1115 |
|
|
1108 |
|
1116 |
|
1109 |
|
1117 |
|
1110 |
|
1118 |
|
|
|
||
1118 |
|
1126 |
|
1119 |
|
1127 |
|
1120 |
|
1128 |
|
|
1129 |
|
|
|
1130 |
|
|
1121 |
|
1131 |
|
1122 |
|
1132 |
|
1123 |
|
1133 |
|
|
1134 |
|
|
|
1135 |
|
|
|
1136 |
|
|
|
1137 |
|
|
|
1138 |
|
|
|
1139 |
|
|
|
1140 |
|
|
|
1141 |
|
|
|
1142 |
|
|
|
1143 |
|
|
|
1144 |
|
|
|
1145 |
|
|
|
1146 |
|
|
|
1147 |
|
|
|
1148 |
|
|
|
1149 |
|
|
|
1150 |
|
|
|
1151 |
|
|
|
1152 |
|
|
1124 |
|
1153 |
|
1125 |
|
|
|
1126 |
|
1154 |
|
1127 |
|
1155 |
|
1128 |
|
1156 |
|
1129 |
|
|
|
1130 |
|
|
|
|
1157 |
|
|
1131 |
|
1158 |
|
1132 |
|
1159 |
|
1133 |
|
1160 |
|