dyn_wireless.h

Go to the documentation of this file.
00001 /* $Id: dyn_wireless.h,v 1.10 2001/06/18 16:16:25 jm Exp $
00002  * Dynamics wireless module header file
00003  *
00004  * Dynamic hierarchial IP tunnel
00005  * Copyright (C) 1998-2000, Dynamics group
00006  *
00007  * This program is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License version 2 as
00009  * published by the Free Software Foundation. See README and COPYING for
00010  * more details.
00011  */
00012 
00013 #ifndef DYN_WIRELESS_H
00014 #define DYN_WIRELESS_H
00015 
00016 #include <linux/if_ether.h>
00017 
00018 /* Directly from the driver. Keep consistent with it (see the patch)!! */
00019 #define MAX_NUM_QUALS 64
00020 /* Private ioctls */
00021 #define SET_HISTORY SIOCDEVPRIVATE+0xd
00022 #define GET_HISTORY SIOCDEVPRIVATE+0xe
00023 
00024 #define SET_QUALITIES SIOCDEVPRIVATE+0x3
00025 #define GET_QUALITIES SIOCDEVPRIVATE+0x4
00026 #define CHECK_QUALITIES SIOCDEVPRIVATE+0x5
00027 
00028 struct quality_values {
00029         int num_of_quals;             /* how many entries used in this node */
00030         int sim_quals[MAX_NUM_QUALS]; /* every node contains at maximum */
00031         unsigned long sim_timestamps[MAX_NUM_QUALS]; /* timestamp relative 
00032                                                         to the start */
00033         struct quality_values *next;  /* next node, if more quality values */
00034 };
00035 
00036 int dyn_wireless_get_ifname(const char *str, char *ifname);
00037 int dyn_wireless_create_socket(void);
00038 int dyn_wireless_iwspy_get(int sock, char *ifname, char *buffer);
00039 int dyn_wireless_iwspy_set(int sock, char *ifname, char *buffer, 
00040                            int monitored);
00041 int dyn_wireless_his_get(int sock, char *ifname, char *buffer);
00042 int dyn_wireless_his_set(int sock, char *ifname, char *range, int size);
00043 struct quality_values *dyn_wireless_get_quals_node(struct quality_values *q);
00044 struct quality_values *dyn_wireless_get_simulator(int sock, char *ifname, 
00045                                                   char *hw);
00046 int dyn_wireless_set_simulator(int sock, char *ifname, char *hw, 
00047                                struct quality_values *q, int msec_ival,
00048                                int scale);
00049 int dyn_wireless_check_simulator(int sock, char *ifname, char *hw); 
00050 int dyn_wireless_set_channel(int sock, char *ifname, int channel);
00051 int dyn_wireless_get_channel(int sock, char *ifname);
00052 int dyn_wireless_get_name(int sock, char *ifname, char *name, int len);
00053 int dyn_wireless_get_nwid(int sock, char *ifname);
00054 int dyn_wireless_set_nwid(int sock, char *ifname, char *id, int len);
00055 int dyn_wireless_get_range(int sock, char *ifname, struct iw_range *range);
00056 int dyn_wireless_get_ap_address(int sock, const char *ifname, char *hw);
00057 
00058 #endif

Generated on Tue Jan 15 08:50:43 2008 for Virtual foreign agent generator version 0.1 by  doxygen 1.5.1