wpa_supplicant / hostapd 2.0
Defines | Functions

linux_ioctl.c File Reference

Linux ioctl helper functions for driver wrappers. More...

#include "utils/includes.h"
#include <sys/ioctl.h>
#include <net/if.h>
#include <net/if_arp.h>
#include "utils/common.h"
#include "linux_ioctl.h"

Defines

#define SIOCBRADDBR   0x89a0
#define SIOCBRDELBR   0x89a1
#define SIOCBRADDIF   0x89a2
#define SIOCBRDELIF   0x89a3

Functions

int linux_set_iface_flags (int sock, const char *ifname, int dev_up)
int linux_iface_up (int sock, const char *ifname)
int linux_get_ifhwaddr (int sock, const char *ifname, u8 *addr)
int linux_set_ifhwaddr (int sock, const char *ifname, const u8 *addr)
int linux_br_add (int sock, const char *brname)
int linux_br_del (int sock, const char *brname)
int linux_br_add_if (int sock, const char *brname, const char *ifname)
int linux_br_del_if (int sock, const char *brname, const char *ifname)
int linux_br_get (char *brname, const char *ifname)

Detailed Description

Linux ioctl helper functions for driver wrappers.

Copyright
Copyright (c) 2002-2010, Jouni Malinen <j@w1.fi>

This software may be distributed under the terms of the BSD license. See README for more details.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines