xref: /dflybsd-src/contrib/wpa_supplicant/src/drivers/linux_ioctl.h (revision 3a84a4273475ed07d0ab1c2dfeffdfedef35d9cd)
13ff40c12SJohn Marino /*
23ff40c12SJohn Marino  * Linux ioctl helper functions for driver wrappers
33ff40c12SJohn Marino  * Copyright (c) 2002-2010, Jouni Malinen <j@w1.fi>
43ff40c12SJohn Marino  *
53ff40c12SJohn Marino  * This software may be distributed under the terms of the BSD license.
63ff40c12SJohn Marino  * See README for more details.
73ff40c12SJohn Marino  */
83ff40c12SJohn Marino 
93ff40c12SJohn Marino #ifndef LINUX_IOCTL_H
103ff40c12SJohn Marino #define LINUX_IOCTL_H
113ff40c12SJohn Marino 
123ff40c12SJohn Marino int linux_set_iface_flags(int sock, const char *ifname, int dev_up);
133ff40c12SJohn Marino int linux_iface_up(int sock, const char *ifname);
143ff40c12SJohn Marino int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr);
153ff40c12SJohn Marino int linux_set_ifhwaddr(int sock, const char *ifname, const u8 *addr);
163ff40c12SJohn Marino int linux_br_add(int sock, const char *brname);
173ff40c12SJohn Marino int linux_br_del(int sock, const char *brname);
183ff40c12SJohn Marino int linux_br_add_if(int sock, const char *brname, const char *ifname);
193ff40c12SJohn Marino int linux_br_del_if(int sock, const char *brname, const char *ifname);
203ff40c12SJohn Marino int linux_br_get(char *brname, const char *ifname);
21*a1157835SDaniel Fojt int linux_master_get(char *master_ifname, const char *ifname);
223ff40c12SJohn Marino 
233ff40c12SJohn Marino #endif /* LINUX_IOCTL_H */
24