#include <netinet/in.h>
#include <linux/if.h>
#include <sys/msg.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
Go to the source code of this file.
Data Structures | |
struct | ioctl_msg |
Defines | |
#define | VIF_NOTIFY_KEY 1337 |
#define | IOCTL_MSG_SIZE sizeof(ioctl_msg) |
#define | VIF_SIOCSIW 0x10 |
Functions | |
int | vif_notify_ioctl (int ioctl_type, const char *dev_name) |
Variables | |
int(* | vif_debug )(const char *format,...) |
int(* | vif_error )(const char *format,...) |
Definition in file vif_notify.c.
#define IOCTL_MSG_SIZE sizeof(ioctl_msg) |
Definition at line 41 of file vif_notify.c.
#define VIF_NOTIFY_KEY 1337 |
Name of notification message queue
Definition at line 32 of file vif_notify.c.
#define VIF_SIOCSIW 0x10 |
Message type: ioctl() set wireless parameter
Definition at line 42 of file vif_notify.c.
int vif_notify_ioctl | ( | int | ioctl_type, | |
const char * | dev_name | |||
) |
Send notification message for executed ioctl()
ioctl_type | Ioctl() type (see wireless.h) | |
dev_name | Virtual interface device name |
Definition at line 54 of file vif_notify.c.
int(* vif_debug)(const char *format,...) |
Debug output function (ignored by default) can be changed with vif_set_debug_function()
int(* vif_error)(const char *format,...) |
Error output function (default to stdout) can be changed with vif_set_error_function()