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