diff options
author | David Cantrell <dcantrell@redhat.com> | 2008-08-28 13:37:15 -1000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2008-08-28 13:39:47 -1000 |
commit | debfe5428f1ed5f4464511027cc5077efaca7d5a (patch) | |
tree | b6286319fc7753543655bb375e0696094c3f85d2 /isys/iface.h | |
parent | bcfcd77cf99faacf419448f5b16ca97a70765c51 (diff) | |
download | anaconda-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.h | 11 |
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 |