Share a single Linux ioctl helper fo setting interface up/down
Number of Linux driver wrappers included this more or less identical function, so lets add a new helper file to be able to share some more code between the driver wrappers.
This commit is contained in:
parent
9c3a2284de
commit
34f2f814e0
10 changed files with 125 additions and 270 deletions
20
src/drivers/linux_ioctl.h
Normal file
20
src/drivers/linux_ioctl.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* Linux ioctl helper functions for driver wrappers
|
||||
* Copyright (c) 2002-2010, Jouni Malinen <j@w1.fi>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* Alternatively, this software may be distributed under the terms of BSD
|
||||
* license.
|
||||
*
|
||||
* See README and COPYING for more details.
|
||||
*/
|
||||
|
||||
#ifndef LINUX_IOCTL_H
|
||||
#define LINUX_IOCTL_H
|
||||
|
||||
int linux_set_iface_flags(int sock, const char *ifname, int dev_up);
|
||||
|
||||
#endif /* LINUX_IOCTL_H */
|
Loading…
Add table
Add a link
Reference in a new issue