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