summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2010-01-14 04:33:51 -0600
committerMike Christie <michaelc@cs.wisc.edu>2010-01-15 02:24:01 -0600
commit2e39c68d905380efad58cd19ba982c06147161e3 (patch)
tree18bb63ae514ee6b0bc1b6a17edcc02ba1fbd51b2 /include
parent29a1a1d624c12d2db0645c69cd672d54a5bdc549 (diff)
downloadopen-iscsi-2e39c68d905380efad58cd19ba982c06147161e3.tar.gz
iscsi tools: merge functions to get net iface name from mac address
There are 3 functions to get the net iface name from the mac address. This merges them into one function and moves it to a new file.
Diffstat (limited to 'include')
-rw-r--r--include/iscsi_net_util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/iscsi_net_util.h b/include/iscsi_net_util.h
new file mode 100644
index 0000000..304214d
--- /dev/null
+++ b/include/iscsi_net_util.h
@@ -0,0 +1,8 @@
+#ifndef __ISCSI_NET_UTIL_h__
+#define __ISCSI_NET_UTIL_h__
+
+#define ISCSI_HWADDRESS_BUF_SIZE 18
+
+extern int net_get_dev_from_hwaddress(char *hwaddress, char *netdev);
+
+#endif