blob: d3971c404abf4e7a7ca1d3caf0297050c802f2ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*
* Copyright (C) IBM Corporation. 2007
* Author: Doug Maxey <dwm@austin.ibm.com>
* "Prasanna Mumbai" <mumbai.prasanna@gmail.com>
*
*/
#ifndef FWPARAM_CONTEXT_H_
#define FWPARAM_CONTEXT_H_
#include <net/if.h>
#include "iscsi_proto.h"
#include "list.h"
#include "auth.h"
struct boot_context {
struct list_head list;
/* target settings */
int target_port;
char targetname[TARGET_NAME_MAXLEN + 1];
char target_ipaddr[32];
char chap_name[AUTH_STR_MAX_LEN];
char chap_password[AUTH_STR_MAX_LEN];
char chap_name_in[AUTH_STR_MAX_LEN];
char chap_password_in[AUTH_STR_MAX_LEN];
/* initiator settings */
char isid[10];
char initiatorname[TARGET_NAME_MAXLEN + 1];
/* network settings */
char dhcp[18];
char iface[IF_NAMESIZE];
char mac[18];
char ipaddr[18];
char gateway[18];
char primary_dns[18];
char secondary_dns[18];
char mask[18];
char lun[17];
char vlan[15];
};
extern int fw_get_entry(struct boot_context *context);
extern void fw_print_entry(struct boot_context *context);
extern int fw_get_targets(struct list_head *list);
extern void fw_free_targets(struct list_head *list);
#endif /* FWPARAM_CONTEXT_H_ */
|