Lines Matching refs:chap_p
2181 iscsi_chap_props_t chap_p;
2189 (void) memset(&chap_p, 0, sizeof (iscsi_chap_props_t));
2190 chap_p.c_vers = ISCSI_INTERFACE_VERSION;
2191 chap_p.c_oid = (uint32_t)lhbaOid.objectSequenceNumber;
2194 if (ioctl(fd, ISCSI_CHAP_GET, &chap_p) != 0) {
2204 (void) memcpy(pParms->chapParms.name, chap_p.c_user,
2205 chap_p.c_user_len);
2206 pParms->chapParms.nameLength = chap_p.c_user_len;
2207 (void) memcpy(pParms->chapParms.challengeSecret, chap_p.c_secret,
2208 chap_p.c_secret_len);
2209 pParms->chapParms.challengeSecretLength = chap_p.c_secret_len;
2236 iscsi_chap_props_t chap_p;
2251 (void) memset(&chap_p, 0, sizeof (iscsi_chap_props_t));
2252 chap_p.c_vers = ISCSI_INTERFACE_VERSION;
2253 chap_p.c_oid = (uint32_t)lhbaOid.objectSequenceNumber;
2255 chap_p.c_user_len = pParms->chapParms.nameLength;
2256 (void) memcpy(chap_p.c_user, pParms->chapParms.name, chap_p.c_user_len);
2258 chap_p.c_secret_len = pParms->chapParms.challengeSecretLength;
2259 (void) memcpy(chap_p.c_secret, pParms->chapParms.challengeSecret,
2260 chap_p.c_secret_len);
2263 if (ioctl(fd, ISCSI_CHAP_SET, &chap_p) != 0) {