From 2e39c68d905380efad58cd19ba982c06147161e3 Mon Sep 17 00:00:00 2001 From: Mike Christie Date: Thu, 14 Jan 2010 04:33:51 -0600 Subject: 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. --- include/iscsi_net_util.h | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 include/iscsi_net_util.h (limited to 'include') 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 -- cgit v1.2.1