diff options
author | Chris Lumens <clumens@redhat.com> | 2009-05-21 11:26:37 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-05-22 13:11:37 -0400 |
commit | 14e7a456f546b3df2dd67d803436114b517e73ec (patch) | |
tree | eda300558ec2e4cae023d4527c4f0549b7260316 /isys/iface.h | |
parent | fbda3bde2593e1328779d612fb65bdd65e877406 (diff) | |
download | anaconda-14e7a456f546b3df2dd67d803436114b517e73ec.tar.gz anaconda-14e7a456f546b3df2dd67d803436114b517e73ec.tar.xz anaconda-14e7a456f546b3df2dd67d803436114b517e73ec.zip |
Add a function to convert MAC addresses to device names.
Diffstat (limited to 'isys/iface.h')
-rw-r--r-- | isys/iface.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/isys/iface.h b/isys/iface.h index 16257bc89..f67893274 100644 --- a/isys/iface.h +++ b/isys/iface.h @@ -118,6 +118,11 @@ char *iface_ip2str(char *, int); */ char *iface_mac2str(char *); +/* Given an interface's MAC address, return the name (e.g., eth0) in human + * readable format. Return NULL for no match + */ +char *iface_mac2device(char *); + /* * Convert an IPv4 CIDR prefix to a dotted-quad netmask. Return NULL on * failure. |