ibft.c revision 474eb465d09aa894e5ec02eed423ac868e325855
0N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/Atypedef enum ibft_structure_type {
0N/Atypedef enum _chap_type {
0N/Atypedef struct ibft_entry {
0N/Atypedef struct iSCSI_ibft_tbl_hdr {
0N/Atypedef struct iSCSI_ibft_hdr {
0N/A char Structure_id;
1564N/Atypedef struct iSCSI_ibft_control {
0N/Atypedef struct iSCSI_ibft_initiator {
0N/Atypedef struct iSCSI_ibft_nic {
0N/A char Subnet_Mask_Prefix;
989N/Atypedef struct iSCSI_ibft_target {
1564N/Atypedef enum ibft_status {
1564N/A IBFT_STATUS_OK = 0,
0N/Aextern void iscsi_print_boot_property();
989N/Aint ibft_noprobe = 0;
0N/Astatic ibft_status_t
0N/A return (IBFT_STATUS_BADHDR);
116N/A return (IBFT_STATUS_OK);
116N/A return (IBFT_STATUS_BADCHECKSUM);
0N/Astatic ibft_status_t
0N/A return (IBFT_STATUS_ERR);
0N/Astatic ibft_status_t
0N/A return (IBFT_STATUS_ERR);
0N/A return (IBFT_STATUS_BADCHECKSUM);
116N/A for (i = 0; i < IBFT_OFFSET_BUF_LEN; i++) {
116N/A if (iscsi_offset_buf[i] != 0) {
116N/A iscsi_offset_buf[i]);
0N/Astatic ibft_status_t
0N/A return (IBFT_STATUS_BADHDR);
0N/A return (IBFT_STATUS_BADCID);
1668N/A return (IBFT_STATUS_OK);
1483N/Astatic ibft_status_t
1204N/A return (IBFT_STATUS_ERR);
1204N/A return (IBFT_STATUS_BADHDR);
1682N/A return (IBFT_STATUS_OK);
1483N/Astatic ibft_status_t
0N/A return (IBFT_STATUS_ERR);
0N/A return (IBFT_STATUS_OK);
1564N/Astatic ibft_status_t
1564N/A int sin_family = 0;
0N/A return (IBFT_STATUS_ERR);
1483N/A return (IBFT_STATUS_BADIP);
1483N/A return (IBFT_STATUS_BADAF);
1483N/A return (IBFT_STATUS_OK);
989N/Astatic ibft_status_t
989N/A return (IBFT_STATUS_ERR);
989N/A return (IBFT_STATUS_ERR);
0N/A return (IBFT_STATUS_OK);
0N/Astatic ibft_status_t
0N/A return (IBFT_STATUS_ERR);
0N/A return (IBFT_STATUS_BADHDR);
0N/A return (IBFT_STATUS_ERR);
1155N/A return (IBFT_STATUS_BADCHAPSEC);
0N/A return (IBFT_STATUS_OK);
0N/Astatic ibft_status_t
0N/A ISCSI_IBFT_SIGNATURE_LEN) == 0) {
return (ret);
char *ibft_tbl_buf;
if (ibft_noprobe != 0) {
KM_SLEEP);
if (!ibft_tbl_buf) {