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
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.
9 Signed-off-by: Eddie Wai <eddie.wai@broadcom.com>
12 1 file changed, 5 insertions(+)
14 diff --git a/usr/iface.c b/usr/iface.c
15 index 4f81a76..c86892e 100644
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));