Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Linux ioctl helper functions for driver wrappers |
| 3 | * Copyright (c) 2002-2010, Jouni Malinen <j@w1.fi> |
| 4 | * |
Dmitry Shmidt | c5ec7f5 | 2012-03-06 16:33:24 -0800 | [diff] [blame] | 5 | * This software may be distributed under the terms of the BSD license. |
| 6 | * See README for more details. |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef LINUX_IOCTL_H |
| 10 | #define LINUX_IOCTL_H |
| 11 | |
| 12 | int linux_set_iface_flags(int sock, const char *ifname, int dev_up); |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 13 | int linux_iface_up(int sock, const char *ifname); |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 14 | int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr); |
| 15 | int linux_set_ifhwaddr(int sock, const char *ifname, const u8 *addr); |
| 16 | int linux_br_add(int sock, const char *brname); |
| 17 | int linux_br_del(int sock, const char *brname); |
| 18 | int linux_br_add_if(int sock, const char *brname, const char *ifname); |
| 19 | int linux_br_del_if(int sock, const char *brname, const char *ifname); |
| 20 | int linux_br_get(char *brname, const char *ifname); |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 21 | int linux_master_get(char *master_ifname, const char *ifname); |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 22 | |
| 23 | #endif /* LINUX_IOCTL_H */ |