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