0e55d5b
From 13d08e79090421fbf67fd727aada487ea23ecc2d Mon Sep 17 00:00:00 2001
0e55d5b
From: Eddie Wai <eddie.wai@broadcom.com>
0e55d5b
Date: Thu, 27 Sep 2012 13:57:12 -0700
0e55d5b
Subject: ISCSID: Passing more net params from ibft to iface
0e55d5b
0e55d5b
Added the passing of the vlan_id, subnet_mask, and gateway attributes
0e55d5b
from the ibft context to the iface struct for the connection request.
0e55d5b
0e55d5b
Signed-off-by: Eddie Wai <eddie.wai@broadcom.com>
0e55d5b
---
0e55d5b
 usr/iface.c | 5 +++++
0e55d5b
 1 file changed, 5 insertions(+)
0e55d5b
0e55d5b
diff --git a/usr/iface.c b/usr/iface.c
0e55d5b
index 4f81a76..c86892e 100644
0e55d5b
--- a/usr/iface.c
0e55d5b
+++ b/usr/iface.c
0e55d5b
@@ -962,6 +962,11 @@ int iface_setup_from_boot_context(struct iface_rec *iface,
0e55d5b
 		sizeof(iface->hwaddress));
0e55d5b
 	strlcpy(iface->ipaddress, context->ipaddr,
0e55d5b
 		sizeof(iface->ipaddress));
0e55d5b
+	iface->vlan_id = atoi(context->vlan);
0e55d5b
+	strlcpy(iface->subnet_mask, context->mask,
0e55d5b
+		sizeof(iface->subnet_mask));
0e55d5b
+	strlcpy(iface->gateway, context->gateway,
0e55d5b
+		sizeof(iface->gateway));
0e55d5b
 	log_debug(1, "iface " iface_fmt "\n", iface_str(iface));
0e55d5b
 	return 1;
0e55d5b
 }
0e55d5b
-- 
0e55d5b
1.7.11.7
0e55d5b