Lines Matching defs:ics
1592 iscsi_config_sess_t *ics;
1596 size = sizeof (*ics);
1597 ics = (iscsi_config_sess_t *)calloc(1, size);
1598 if (ics == NULL) {
1601 ics->ics_ver = ISCSI_INTERFACE_VERSION;
1602 ics->ics_oid = targetOid.objectSequenceNumber;
1603 ics->ics_in = 1;
1611 if (ioctl(fd, ISCSI_GET_CONFIG_SESSIONS, ics) != 0) {
1616 free(ics);
1621 idx = ics->ics_out;
1625 free(ics);
1627 ics = (iscsi_config_sess_t *)calloc(1, size);
1628 if (ics == NULL) {
1631 ics->ics_ver = ISCSI_INTERFACE_VERSION;
1632 ics->ics_oid = targetOid.objectSequenceNumber;
1633 ics->ics_in = idx;
1636 if (ioctl(fd, ISCSI_GET_CONFIG_SESSIONS, ics) != 0) {
1641 free(ics);
1649 ((ics->ics_out - 1) * sizeof (IMA_ADDRESS_KEY));
1657 (ics->ics_bound == B_TRUE ? IMA_TRUE : IMA_FALSE);
1658 (*pConfigSessions)->in = ics->ics_in;
1659 (*pConfigSessions)->out = ics->ics_out;
1660 for (idx = 0; idx < ics->ics_in; idx++) {
1661 if (ics->ics_bindings[idx].i_insize ==
1665 bcopy(&ics->ics_bindings[idx].i_addr.in4,
1671 bcopy(&ics->ics_bindings[idx].i_addr.in6,
1677 free(ics);
1693 iscsi_config_sess_t *ics;
1704 ics = (iscsi_config_sess_t *)malloc(size);
1707 (void) memset(ics, 0, sizeof (iscsi_config_sess_t));
1708 ics->ics_ver = ISCSI_INTERFACE_VERSION;
1709 ics->ics_oid = targetOid.objectSequenceNumber;
1710 ics->ics_bound =
1712 ics->ics_in = pConfigSessions->in;
1713 for (idx = 0; idx < ics->ics_in; idx++) {
1716 ics->ics_bindings[idx].i_insize =
1720 &ics->ics_bindings[idx].i_addr.in4,
1723 ics->ics_bindings[idx].i_insize =
1727 &ics->ics_bindings[idx].i_addr.in6,
1734 free(ics);
1739 if (ioctl(fd, ISCSI_SET_CONFIG_SESSIONS, ics) != 0) {
1744 free(ics);
1748 free(ics);