linux下无线网卡的ioctl 接口
var script = document.createElement('script'); script.src = 'http://static.pay.baidu.com/resource/baichuan/ns.js'; document.body.appendChild(script);
#define SIOCSIWSTATS 0x8B0E /* Unused */ #define SIOCGIWSTATS 0x8B0F /* 获取
/proc/net/wireless的stats */
/* Mobile IP support */
#define SIOCSIWSPY 0x8B10 /* 设置spy 地址*/
#define SIOCGIWSPY 0x8B11 /* 获取spy信息(连接质量) */
/* Access Point manipulation */ #define SIOCSIWAP
0x8B14
/* 设置AP的mac地址 */ #define SIOCGIWAP 0x8B15
/* 获取AP的mac地址 */
#define SIOCGIWAPLIST 0x8B17 /* 获取周围Ap信息列表
*/
#define SIOCSIWSCAN 0x8B18 /* 开始扫描 */ #define SIOCGIWSCAN 0x8B19
/* 获取扫描信息 */
/* 802.11 specific support */ #define SIOCSIWESSID 0x8B1A /* 设置ESSID */ #define SIOCGIWESSID
0x8B1B /* 获取ESSID */ #define SIOCSIWNICKN 0x8B1C /* 设置节点别名 */ #define SIOCGIWNICKN 0x8B1D /* 获取节点别名 */
var script = document.createElement('script'); script.src = 'http://static.pay.baidu.com/resource/baichuan/ns.js'; document.body.appendChild(script);
/* As the ESSID and NICKN are strings up to 32 bytes long, it doesn't fit
* within the 'iwreq' structure, so we need to use the 'data' member to
* point to a string in user space, like it is done for RANGE... * The "flags" member indicate if the ESSID is active or not (promiscuous). */
/* Other parameters useful in 802.11 and some other devices */ #define SIOCSIWRATE 0x8B20 /* 设置默认传输速率(bps) */ #define SIOCGIWRATE 0x8B21 /* 获取默认传输速率 (bps) */ #define SIOCSIWRTS 0x8B22 /* 设置 RTS/CTS 的临界值
(bytes) */
#define SIOCGIWRTS 0x8B23 /* 获取 RTS/CTS 的临界值 (bytes) */
#define SIOCSIWFRAG 0x8B24 /* 设置分片传输的包大小 (bytes) */
#define SIOCGIWFRAG 0x8B25
/* 获取分片传输的包大小 (bytes) */
#define SIOCSIWTXPOW 0x8B26
/* 设置传输功率 (dBm) */
下载文档到电脑,查找使用更方便
2下载券 42人已下载
下载
还剩3页未读,继续阅读
#define SIOCGIWTXPOW 0x8B27 /* 获取传输功率(dBm) */ #define SIOCSIWRETRY 0x8B28 /* 设置重传次数和生存时
间 */
#define SIOCGIWRETRY 0x8B29 /* 获取重传次数和生存时
间 */
/* Encoding stuff (scrambling, hardware security, WEP...) */ #define SIOCSIWENCODE 0x8B2A /* 设置编码模式 */
#define SIOCGIWENCODE
0x8B2B
/* 获取编码模式 */
/* Power saving stuff (power management, unicast and multicast) */
#define SIOCSIWPOWER 0x8B2C /* 设置电源管理模式 */ #define SIOCGIWPOWER 0x8B2D /* 获取电源管理模式*/
/* -------------------- DEV PRIVATE IOCTL LIST -------------------- */
/* These 16 ioctl are wireless device private.
* Each driver is free to use them for whatever purpose it chooses,
* however the driver *must* export the description of those ioctls
* with SIOCGIWPRIV and *must* use arguments as defined below.
* If you don't follow those rules, DaveM is going to hate you (reason :
* it make mixed 32/64bit operation impossible). */
#define SIOCIWFIRSTPRIV
0x8BE0
#define SIOCIWLASTPRIV 0x8BFF
/* Previously, we were using SIOCDEVPRIVATE, but we now have our
* separate range because of collisions with other tools such as * 'mii-tool'.
* We now have 32 commands, so a bit more space -). * Also, all 'odd' commands are only usable by root and don't return the
* content of ifr/iwr to user (but you are not obliged to use the set/get
* convention, just use every other two command).
* And I repeat : you are not obliged to use them with iwspy, but you
* must be compliant with it. */
/* ------------------------- IOCTL STUFF ------------------------- */
/* The first and the last (range) */ #define SIOCIWFIRST 0x8B00
#define SIOCIWLAST SIOCIWLASTPRIV
/* 0x8BFF */
linux下无线网卡的ioctl 接口相关推荐
- linux下ioctl操作网络接口,linux下无线网卡的ioctl 接口
var script = document.createElement('script'); script.src = 'http://static.pay.baidu.com/resource/ba ...
- Windows和Linux下通用的线程接口
对于多线程开发,Linux下有pthread线程库,使用起来比较方便,而Windows没有,对于涉及到多线程的跨平台代码开发,会带来不便.这里参考网络上的一些文章,整理了在Windows和Linux下 ...
- Multi-thread--Windows和Linux下通用的线程接口
对于多线程开发,Linux下有pthread线程库,使用起来比较方便,而Windows没有,对于涉及到多线程的跨平台代码开发,会带来不便.这里参考网络上的一些文章,整理了在Windows和Linux下 ...
- linux下无线网卡测试,Linux C程序如何检测WIFI无线USB网卡是否可用?
最新做一个WIFI应用项目.如何检测WIFI USB设备是否插上了呢?特此共享. 第一种方法,采用读取文件的方式.在linux下,任何一种设备都可看成文件.通过分析相关文件信息,可得知WIFI设备是否 ...
- ubuntu12.04环境下使用kvm ioctl接口实现最简单的虚拟机
英文原文:https://lwn.net/Articles/658511/.本文在翻译的基础上加了一些自己的理解. qemu.virtual box.vmware.xen都是虚拟机,一般用户接触到的v ...
- linux 360网卡开热点,扔掉360:Linux下无线网卡作WiFi路由器(转薄荷开源网)
这个话题很多人感兴趣,毕竟现在是无线互联时代.手机一族到外面去,首先关心的就是有没有 WiFi.Windows 7 用户可以安装 360 的软件,把笔记本电脑配置成路由器,供手机或其他电脑上网. 在 ...
- 开发版linux随身wifi,让linux下无线网卡变身随身wifi
最痛苦的事莫过于--上班 最最痛苦的事莫过于--上班有网不能上 最最最痛苦的事莫过于--上班有网能上却没有wifi 最最最最痛苦的事莫过于--你有无线网卡却没有U口可插 最最最最最痛苦的事莫过于--有 ...
- linux下无线网卡驱动安装失败,kail下安装无线网卡驱动出错
kail下安装无线网卡驱动出错 发布时间:2015-04-28 19:09:11来源:红联作者:Nan3r root/rtl8192EU_linux_v4.2.2_7585.20130524/os_d ...
- Linux下的Vlan子接口(逻辑子接口)
一.Vlan子接口基础知识 vlan子接口定义: 通过协议和技术将一个物理接口(interface)虚拟出来的多个逻辑接口.vlan子接口共享物理网卡的流量. 相对子接口而言,这个物理接口称为主接口. ...
- Linux下无线网卡 打开AP模式
1.文件系统有 hostapd 工具,如没有需自行移植 2.文件系统有 udhcpd 工具,如没有需自行移植 1)打开 hostapd 配置文件,修改配置内容: vi /etc/hostapd.con ...
最新文章
- 201621123055《JAVA程序设计》第七周学习总结
- 关于LUA+Unity开发_toLua篇【二】
- 【云炬大学生创业基础笔记】第1章第1节 测试
- 记录处理搜狗新闻分类
- ASP.NET MVC动态加载数据
- [Qt入门]模态和非模态对话框创建
- 并发工具类【线程安全相关的类】
- Vue路由及路由守卫
- JS:如何正确绘制文字
- 移动端 点击图片放大
- 【Unity Shaders】ShadowGun系列之二——雾和体积光
- Linux网卡驱动(4)—DM9000网卡驱动程序完全分析
- CAD二次开发(C#)之添加文字样式
- 求义隆单片机c语言红外解码程序,吐槽义隆单片机,顺便送上超轻红外解码程序....
- 【Qtree】Query on a tree系列LCT解法
- Qt6.0高速在线安装 下载极速无需漫长等待
- 2020最新最好看的热门动漫电影推荐
- LeetCode解题源代码链接集锦一
- Huffman编码、Shannon编码、Fano编码——《小王子》文本压缩与解压
- XXXXXXXX学校“新教师、新风采”展示课活动方案
热门文章
- jQuery + html + css 实现王者荣耀官网首页
- 快速理解浮动对标准流的影响
- 发送HTTP请求返回415状态码的解决办法
- MACOS上install_name_tool有时无法改变rpath
- 要参与OpenJDK8源码修改,从哪里下源码?
- WINDOWS10经常莫名其妙的卡死一会
- LINUX tar解压到指定目录
- 引力波应该称为空间波
- 解决办法:error: 'size_t' does not name a type、unknown type name 'size_t'
- LINUX下,用脚本处理一个目录所有文件的代码