summaryrefslogtreecommitdiff
path: root/include/iscsi_net_util.h
blob: a69af9d88078e7960d5148958fa418171369ba04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef __ISCSI_NET_UTIL_h__
#define __ISCSI_NET_UTIL_h__

#define ISCSI_HWADDRESS_BUF_SIZE 18

#ifndef SBINDIR
#define SBINDIR	"/sbin"
#endif

#define ISCSIUIO_PATH SBINDIR"/iscsiuio"

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 *vlan, char *remote_ip,
			    int needs_bringup);
extern int net_ifup_netdev(char *netdev);

#endif