fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * CDDL HEADER START
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * The contents of this file are subject to the terms of the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Common Development and Distribution License (the "License").
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * You may not use this file except in compliance with the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * See the License for the specific language governing permissions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * and limitations under the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * When distributing Covered Code, include this CDDL HEADER in each
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * If applicable, add the following below this CDDL HEADER, with the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * fields enclosed by brackets "[]" replaced with your own identifying
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * information: Portions Copyright [yyyy] [name of copyright owner]
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * CDDL HEADER END
1a1a84a324206b6b1f5f704ab166c4ebf78aed76Peter Dunlap * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Use is subject to license terms.
aff4bce51ecc47df7e5a6351b7cee6bc20408c63yi zhang - Sun Microsystems - Beijing China#define RECV_LOGIN_RSP_TIMEOUT 0x0f
aff4bce51ecc47df7e5a6351b7cee6bc20408c63yi zhang - Sun Microsystems - Beijing China#define CONN_LOGIN_MAX 0x10
aff4bce51ecc47df7e5a6351b7cee6bc20408c63yi zhang - Sun Microsystems - Beijing China#define POLLING_LOGIN_DELAY 0x11
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * This object type is not defined by IMA.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define SUN_IMA_OBJECT_TYPE_CONN 13 /* Currently not defined in IMA */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define MAKE_IMA_ERROR(x) ((IMA_STATUS)(IMA_STATUS_ERROR | (x)))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define SUN_IMA_SYSTEM_ERROR(status) (((IMA_STATUS)(status) & \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte (IMA_STATUS)SUN_IMA_ERROR_SYSTEM_ERROR) == 0x8FFF0000 \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define SUN_GET_SYSTEM_ERROR(x) (((IMA_STATUS)(x) & 0x0000FFFF))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define SUN_IMA_ERROR_SYSTEM_ERROR MAKE_IMA_ERROR(0x0fff0000)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * The following interfaces are not defined in IMA 1.1. Some of them
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * are requirement candidates for the next IMA release.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define SUN_IMA_MAX_DIGEST_ALGORITHMS 2 /* NONE and CRC 32 */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Currently not defined in IMA_TARGET_DISCOVERY_METHOD enum */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte SUN_IMA_DIGEST_ALGORITHM defaultAlgorithms[SUN_IMA_MAX_DIGEST_ALGORITHMS];
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte SUN_IMA_DIGEST_ALGORITHM currentAlgorithms[SUN_IMA_MAX_DIGEST_ALGORITHMS];
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte negotiatedAlgorithms[SUN_IMA_MAX_DIGEST_ALGORITHMS];
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte char hostnameIpAddress[SUN_IMA_IP_ADDRESS_PORT_LEN];
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte IMA_BYTE sharedSecret[SUN_IMA_MAX_RADIUS_SECRET_LEN];
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortetypedef struct _SUN_IMA_DISC_ADDRESS_KEY_PROPERTIES
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte IMA_BOOL defaultTpgt; /* If true, tpgt becomes irrelvant */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortetypedef struct _SUN_IMA_STATIC_DISCOVERY_TARGET_PROPERTIES
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define SUN_IMA_LU_VENDOR_ID_LEN ISCSI_INQ_VID_BUF_LEN
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define SUN_IMA_LU_PRODUCT_ID_LEN ISCSI_INQ_PID_BUF_LEN
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte IMA_BOOL defaultTpgtConf; /* If true, tpgtConf is irrelevant */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte IMA_BOOL defaultTpgtNego; /* If true, tpgtNego is not connected */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte /* True if sessions are bound to an interface */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Memory allocated from caller. In addition
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * on a Set this is the number of configured
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte /* Number of Configured sessions on Get */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif /* _ISCSIADM_H */