wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | 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"

Macros

#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)
 
int linux_master_get (char *master_ifname, const char *ifname)
 

Detailed Description

Linux ioctl helper functions for driver wrappers.