1 /* 2 * Linux ioctl helper functions for driver wrappers 3 * Copyright (c) 2002-2010, Jouni Malinen <j (at) w1.fi> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License version 2 as 7 * published by the Free Software Foundation. 8 * 9 * Alternatively, this software may be distributed under the terms of BSD 10 * license. 11 * 12 * See README and COPYING for more details. 13 */ 14 15 #ifndef LINUX_IOCTL_H 16 #define LINUX_IOCTL_H 17 18 int linux_set_iface_flags(int sock, const char *ifname, int dev_up); 19 int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr); 20 int linux_set_ifhwaddr(int sock, const char *ifname, const u8 *addr); 21 int linux_br_add(int sock, const char *brname); 22 int linux_br_del(int sock, const char *brname); 23 int linux_br_add_if(int sock, const char *brname, const char *ifname); 24 int linux_br_del_if(int sock, const char *brname, const char *ifname); 25 int linux_br_get(char *brname, const char *ifname); 26 27 #endif /* LINUX_IOCTL_H */ 28