2010-01-03 21:08:26 +01:00
|
|
|
/*
|
|
|
|
* Linux ioctl helper functions for driver wrappers
|
|
|
|
* Copyright (c) 2002-2010, Jouni Malinen <j@w1.fi>
|
|
|
|
*
|
2012-02-11 15:46:35 +01:00
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
2010-01-03 21:08:26 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LINUX_IOCTL_H
|
|
|
|
#define LINUX_IOCTL_H
|
|
|
|
|
|
|
|
int linux_set_iface_flags(int sock, const char *ifname, int dev_up);
|
2011-10-28 20:08:15 +02:00
|
|
|
int linux_iface_up(int sock, const char *ifname);
|
2010-01-03 21:17:08 +01:00
|
|
|
int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr);
|
|
|
|
int linux_set_ifhwaddr(int sock, const char *ifname, const u8 *addr);
|
2010-01-16 14:19:58 +01:00
|
|
|
int linux_br_add(int sock, const char *brname);
|
|
|
|
int linux_br_del(int sock, const char *brname);
|
|
|
|
int linux_br_add_if(int sock, const char *brname, const char *ifname);
|
|
|
|
int linux_br_del_if(int sock, const char *brname, const char *ifname);
|
|
|
|
int linux_br_get(char *brname, const char *ifname);
|
2015-03-04 11:12:36 +01:00
|
|
|
int linux_master_get(char *master_ifname, const char *ifname);
|
2010-01-03 21:08:26 +01:00
|
|
|
|
|
|
|
#endif /* LINUX_IOCTL_H */
|