linux_ioctl.h revision 8d520ff1dc2da35cdca849e982051b86468016d8
1/*
2 * Linux ioctl helper functions for driver wrappers
3 * Copyright (c) 2002-2010, Jouni Malinen <j@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
18int linux_set_iface_flags(int sock, const char *ifname, int dev_up);
19int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr);
20int linux_set_ifhwaddr(int sock, const char *ifname, const u8 *addr);
21int linux_br_add(int sock, const char *brname);
22int linux_br_del(int sock, const char *brname);
23int linux_br_add_if(int sock, const char *brname, const char *ifname);
24int linux_br_del_if(int sock, const char *brname, const char *ifname);
25int linux_br_get(char *brname, const char *ifname);
26
27#endif /* LINUX_IOCTL_H */
28