1/* 2 * Linux ioctl helper functions for driver wrappers 3 * Copyright (c) 2002-2010, Jouni Malinen <j@w1.fi> 4 * 5 * This software may be distributed under the terms of the BSD license. 6 * See README for more details. 7 */ 8 9#ifndef LINUX_IOCTL_H 10#define LINUX_IOCTL_H 11 12int linux_set_iface_flags(int sock, const char *ifname, int dev_up); 13int linux_iface_up(int sock, const char *ifname); 14int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr); 15int linux_set_ifhwaddr(int sock, const char *ifname, const u8 *addr); 16int linux_br_add(int sock, const char *brname); 17int linux_br_del(int sock, const char *brname); 18int linux_br_add_if(int sock, const char *brname, const char *ifname); 19int linux_br_del_if(int sock, const char *brname, const char *ifname); 20int linux_br_get(char *brname, const char *ifname); 21 22#endif /* LINUX_IOCTL_H */ 23