[Pkg-iscsi-maintainers] [open-iscsi] 18/48: iscsi tools: Let default type of iface be ipv4

Ritesh Raj Sarraf rrs at moszumanska.debian.org
Wed Aug 20 13:54:09 UTC 2014

This is an automated email from the git hooks/post-receive script.

rrs pushed a commit to branch upstream-mnc
in repository open-iscsi.

commit 75ee9d0af6e200b34e84b1e7b37971213b2fd629
Author: Adheer Chandravanshi <adheer.chandravanshi at qlogic.com>
Date:   Fri Oct 18 09:29:26 2013 -0400

    iscsi tools: Let default type of iface be ipv4
    While using iface name to determine its type if the name does not
    contain iface type then assume it be to of type ipv4 by default.
    Signed-off-by: Adheer Chandravanshi <adheer.chandravanshi at qlogic.com>
    Signed-off-by: Vikas Chaudhary <vikas.chaudhary at qlogic.com>
 usr/iface.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/usr/iface.c b/usr/iface.c
index 87ac875..870dba0 100644
--- a/usr/iface.c
+++ b/usr/iface.c
@@ -450,8 +450,10 @@ int iface_get_iptype(struct iface_rec *iface)
 		/* try to figure out by name */
 		if (strstr(iface->name, "ipv4"))
-		else
+		else if (strstr(iface->name, "ipv6"))
+		else	/* assume ipv4 by default */
 	} else {
 		if (strcmp(iface->bootproto, "dhcp") &&
 		    !strstr(iface->ipaddress, "."))

Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-iscsi/open-iscsi.git

More information about the Pkg-iscsi-maintainers mailing list