iscsiboot_prop.c revision 6cefaae1e90a413ba01560575bb3998e1a3df40e
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Commmon routines, handling iscsi boot props
*/
#include <sys/bootprops.h>
extern ib_boot_prop_t *iscsiboot_prop;
int iscsi_print_bootprop = 0;
#define ISCSI_BOOTPROP_BUFLEN 256
#ifndef NULL
#define NULL 0
#endif
static void
{
return;
}
if (iscsi_print_bootprop == 1) {
}
}
static void
{
char outbuf[ISCSI_BOOTPROP_BUFLEN] = {0};
return;
}
"Initiator Name : %s\n",
}
"Initiator CHAP Name : %s\n",
}
}
static void
{
char outbuf[ISCSI_BOOTPROP_BUFLEN] = {0};
char ipaddr[50] = {0};
int n = 0;
return;
}
"Local IP addr : %s\n", ipaddr);
"Local gateway : %s\n", ipaddr);
"Local DHCP : %s\n", ipaddr);
"Local MAC : %02x:%02x:%02x:%02x:%02x:%02x\n",
}
static void
{
char outbuf[ISCSI_BOOTPROP_BUFLEN] = {0};
char ipaddr[50] = {0};
return;
}
"Target Name : %s\n",
}
"Target IP : %s\n"
"Target Port : %d\n"
"Boot LUN : %02x%02x-%02x%02x-%02x%02x-%02x%02x\n",
itgtp->tgt_boot_lun[0],
"CHAP Name : %s\n",
}
}
void
{
if (iscsiboot_prop == NULL) {
return;
}
}
void
{
return;
}
}
}
}
}
void
{
return;
}
}
}
}
}
/*
* Free the memory used by boot property.
*/
void
{
if (iscsiboot_prop == NULL) {
return;
}
}
static void
{
unsigned char *p = NULL;
int i = 0;
return;
}
p = (unsigned char *)in;
} else {
for (i = 0; i < 14; i = i + 2) {
}
}
}