Blame 0004-ISCSID-Passing-more-net-params-from-ibft-to-iface.patch

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