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:
Jouni Malinen 2010-01-03 22:08:26 +02:00
parent 9c3a2284de
commit 34f2f814e0
10 changed files with 125 additions and 270 deletions

20
src/drivers/linux_ioctl.h Normal file
View 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 */