summaryrefslogtreecommitdiffstats
path: root/isys/iface.h
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2008-08-28 13:37:15 -1000
committerDavid Cantrell <dcantrell@redhat.com>2008-08-28 13:39:47 -1000
commitdebfe5428f1ed5f4464511027cc5077efaca7d5a (patch)
treeb6286319fc7753543655bb375e0696094c3f85d2 /isys/iface.h
parentbcfcd77cf99faacf419448f5b16ca97a70765c51 (diff)
downloadanaconda-debfe5428f1ed5f4464511027cc5077efaca7d5a.tar.gz
anaconda-debfe5428f1ed5f4464511027cc5077efaca7d5a.tar.xz
anaconda-debfe5428f1ed5f4464511027cc5077efaca7d5a.zip
Rewrite iface_ip2str() to talk to NetworkManager over D-Bus
I'm rewriting all of this file eventually, but for today you get the rewrite of iface_ip2str().
Diffstat (limited to 'isys/iface.h')
-rw-r--r--isys/iface.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/isys/iface.h b/isys/iface.h
index 03cffee4e..43b29130a 100644
--- a/isys/iface.h
+++ b/isys/iface.h
@@ -111,14 +111,11 @@ typedef struct _iface_t {
/* Function prototypes */
/*
- * Given an interface name (e.g., eth0), return the IP address in human
- * readable format (i.e., the output from inet_ntop()). Return NULL for
- * no match. NOTE: This function will check for IPv6 and IPv4
- * addresses. In the case where the interface has both, the IPv4 address
- * is returned. The only way you will get an IPv6 address from this function
- * is if that's the only address configured for the interface.
+ * Given an interface name (e.g., eth0) and address family (e.g., AF_INET),
+ * return the IP address in human readable format (i.e., the output from
+ * inet_ntop()). Return NULL for no match or error.
*/
-char *iface_ip2str(char *);
+char *iface_ip2str(char *, int);
/*
* Given an interface name (e.g., eth0), return the MAC address in human