Blame 0060-ISCSIUIO-Added-fix-for-the-iface.subnet_mask-decodin.patch

e509a4
From df68365bef167778fb59059e78090d33a01e4e7f Mon Sep 17 00:00:00 2001
e509a4
From: Eddie Wai <eddie.wai@broadcom.com>
e509a4
Date: Wed, 11 Dec 2013 15:38:13 -0800
e509a4
Subject: [PATCH] ISCSIUIO: Added fix for the iface.subnet_mask decoding for
e509a4
 IPv6
e509a4
e509a4
Fixed a inet_pton decode error for the iface.subnet_mask for IPv6.
e509a4
e509a4
Signed-off-by: Eddie Wai <eddie.wai@broadcom.com>
e509a4
---
e509a4
 iscsiuio/src/unix/iscsid_ipc.c | 2 +-
e509a4
 1 file changed, 1 insertion(+), 1 deletion(-)
e509a4
e509a4
diff --git a/iscsiuio/src/unix/iscsid_ipc.c b/iscsiuio/src/unix/iscsid_ipc.c
e509a4
index e22de0d..033308d 100644
e509a4
--- a/iscsiuio/src/unix/iscsid_ipc.c
e509a4
+++ b/iscsiuio/src/unix/iscsid_ipc.c
e509a4
@@ -274,7 +274,7 @@ static int decode_iface(struct iface_rec_decode *ird, struct iface_rec *rec)
e509a4
 				       sizeof(struct in6_addr));
e509a4
 			/* Subnet mask priority: CIDR, then rec */
e509a4
 			if (!ird->ipv6_subnet_mask.s6_addr)
e509a4
-				inet_pton(AF_INET, rec->subnet_mask,
e509a4
+				inet_pton(AF_INET6, rec->subnet_mask,
e509a4
 					  &ird->ipv6_subnet_mask);
e509a4
 
e509a4
 			/* For LL on, ignore the IPv6 addr in the iface */
e509a4
-- 
e509a4
1.8.3.1
e509a4