summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2010-01-15 11:50:16 -0600
committerMike Christie <michaelc@cs.wisc.edu>2010-01-15 11:50:16 -0600
commit65a224afcd13198ce4d881be0ad3647143edb144 (patch)
treec93cfec8b924061b363e05ddd3273dc708307626 /include
parent0c74f070052002cb984cd39146e0090ec930714e (diff)
downloadopen-iscsi-65a224afcd13198ce4d881be0ad3647143edb144.tar.gz
iscsi tools: nic setup cleanup
This just breaks up the network part of the nic setup code to a new function that lives in the net utils code, so it can be used by other callers one day.
Diffstat (limited to 'include')
-rw-r--r--include/iscsi_net_util.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/iscsi_net_util.h b/include/iscsi_net_util.h
index 8d06bd5..222634d 100644
--- a/include/iscsi_net_util.h
+++ b/include/iscsi_net_util.h
@@ -3,7 +3,9 @@
#define ISCSI_HWADDRESS_BUF_SIZE 18
-extern int net_get_transport_name_from_iface(char *iface, char *transport);
-extern int net_get_dev_from_hwaddress(char *hwaddress, char *netdev);
+extern int net_get_transport_name_from_netdev(char *netdev, char *transport);
+extern int net_get_netdev_from_hwaddress(char *hwaddress, char *netdev);
+extern int net_setup_netdev(char *netdev, char *local_ip, char *mask,
+ char *gateway, char *remote_ip, int needs_bringup);
#endif