vif_notify.c File Reference

Functions for sending notification about parameter changes to a IPC message queue. More...

#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,...)


Detailed Description

Functions for sending notification about parameter changes to a IPC message queue.

Definition in file vif_notify.c.


Define Documentation

#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.


Function Documentation

int vif_notify_ioctl ( int  ioctl_type,
const char *  dev_name 
)

Send notification message for executed ioctl()

Parameters:
ioctl_type Ioctl() type (see wireless.h)
dev_name Virtual interface device name
Returns:
0 on success, -1 else

Definition at line 54 of file vif_notify.c.


Variable Documentation

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()


Generated on Mon Feb 8 14:55:05 2010 for Virtual Interface Tools by  doxygen 1.5.8