Home | History | Annotate | Download | only in iscsid

Lines Matching defs:portal

88  *    Bind socket to initiator portal.
92 * addr The initiator portal address
131 * Find the Portal with the least number of connections.
133 * Parameter: the portal group
135 * Returns: The pointer to the first free portal (or NULL if none found)
190 portal_t *portal = NULL;
200 /* find the target portal */
212 || (portal = find_portal(&req->portal_id)) == NULL) {
230 /* now get from target to portal - if this is the first connection, */
231 /* just use the first portal group. */
235 /* if it's a second connection, use an available portal in the same */
236 /* portal group */
242 (portal = find_portal_id(conn->portal.sid.id)) == NULL) {
246 group = portal->group;
249 if ((portal = find_free_portal(group)) == NULL) {
253 DEB(1, ("find_free_portal returns pid=%d", portal->entry.sid.id));
255 target = portal->target;
257 addr = &portal->addr;
406 if (portal != NULL) {
407 /* override general target options with portal options (if specified) */
408 if (portal->options.is_present.DataDigest) {
410 loginp.DataDigest = portal->options.DataDigest;
412 if (portal->options.is_present.HeaderDigest) {
414 loginp.HeaderDigest = portal->options.HeaderDigest;
416 if (portal->options.is_present.MaxRecvDataSegmentLength) {
419 portal->options.MaxRecvDataSegmentLength;
464 conn->portal.addr = *addr;
488 Copy important portal information
490 if (portal != NULL) {
491 conn->portal.sid = portal->entry.sid;
492 portal->active_connections++;
515 portal_t *portal;
541 /* If we can't find the portal to connect to, abort. */
543 if ((portal = find_portal_id(conn->portal.sid.id)) == NULL)
547 addr = &portal->addr;
548 conn->portal.addr = *addr;
613 * Handle LOGIN request: Log into given portal. Create session, then
651 * Handle ADD_CONNECTION request: Log secondary connection into given portal.