]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - iscsi-initiator-utils/patches/0004-ISCSID-Passing-more-net-params-from-ibft-to-iface.patch
iscsi-initiator-utils: Various improvements.
[people/ms/ipfire-3.x.git] / iscsi-initiator-utils / patches / 0004-ISCSID-Passing-more-net-params-from-ibft-to-iface.patch
1 From 13d08e79090421fbf67fd727aada487ea23ecc2d Mon Sep 17 00:00:00 2001
2 From: Eddie Wai <eddie.wai@broadcom.com>
3 Date: Thu, 27 Sep 2012 13:57:12 -0700
4 Subject: ISCSID: Passing more net params from ibft to iface
5
6 Added the passing of the vlan_id, subnet_mask, and gateway attributes
7 from the ibft context to the iface struct for the connection request.
8
9 Signed-off-by: Eddie Wai <eddie.wai@broadcom.com>
10 ---
11 usr/iface.c | 5 +++++
12 1 file changed, 5 insertions(+)
13
14 diff --git a/usr/iface.c b/usr/iface.c
15 index 4f81a76..c86892e 100644
16 --- a/usr/iface.c
17 +++ b/usr/iface.c
18 @@ -962,6 +962,11 @@ int iface_setup_from_boot_context(struct iface_rec *iface,
19 sizeof(iface->hwaddress));
20 strlcpy(iface->ipaddress, context->ipaddr,
21 sizeof(iface->ipaddress));
22 + iface->vlan_id = atoi(context->vlan);
23 + strlcpy(iface->subnet_mask, context->mask,
24 + sizeof(iface->subnet_mask));
25 + strlcpy(iface->gateway, context->gateway,
26 + sizeof(iface->gateway));
27 log_debug(1, "iface " iface_fmt "\n", iface_str(iface));
28 return 1;
29 }
30 --
31 1.7.11.7
32