01 2016 档案
摘要:802.11帧主要有三种:数据帧(data frame)、控制帧(control frame)和管理帧(management frame)。 数据帧:负责在工作站之间搬运数据。会将上层协议的数据置于帧主题中加以传递。 控制帧:通常与数据帧搭配使用负责区域的清空、信道的取得一级载波监听的维护,并于收到
阅读全文
摘要:root@hbg:/tmp# cat /proc/mtddev: size erasesize namemtd0: 00040000 00010000 "u-boot"mtd1: 00010000 00010000 "u-boot-env"mtd2: 00e30000 00010000 "rootf...
阅读全文
摘要:802.11基本规范涵盖了802.11 MAC以及两种物理层(physical layer):一种是跳频扩频(frequenccy-hopping spread-spectrum,简称FHSS)物理层,另一种是直接序列扩频(direct-sequence spread-spectrum,简称DSSS...
阅读全文
摘要:opkg是个安装器,小巧,功能全。 root@hbg:/# opkg files opkgPackage opkg (9c97d5ecd795709c8584e972bfdf3aee3a5b846d-7) is installed on root and has the following file
阅读全文
摘要:生成备份文件时所使用的脚本中调用的命令为sysgrade local image_tmp = "/tmp/firmware.img"local backup_cmd = "sysupgrade --create-backup - 2>/dev/null"local fsysup = "openwrt...
阅读全文
摘要:os.date() 返回 XX/XX/XX XX:XX:XX 月/日/年 时:分:秒os.time() 返回的是从1970年1月1日到现在的经过的秒数。例如:print(os.date())print(os.time())结果:01/19/16 09:09:461453165786
阅读全文
摘要:LuCI使用controller目录下的lua脚本中的index函数来构造了一个dispatch树。cgi环境变量PATH_INFO会被用在dispatch树种,例如cgi-bin/luci/foo/bar/baz 会被解析为 foo.bar.baz(在index函数中应该写为function in...
阅读全文
摘要:创建虚拟的vlan设备例如:vconfig add eth0 10就创建了一个eth0.10的设备vconfig的使用说明如下:root@hbg:/# vconfigBusyBox v1.22.1 (2015-12-18 15:33:52 CST) multi-call binary.Usage: ...
阅读全文
摘要:lua支持的所有字符类. 任意字符%a 字母%c 控制字符%d 数字%l 小写字母%p 标点字符%s 空白符%u 大写字母%w 字母和数字%x 十六进制数字%z 代表0的字符上面字符类的大写形式标识小写所代表的集合的补集,例如:%A代表非字母的字符。print(...
阅读全文
摘要:root@hbg:/# tftpBusyBox v1.22.1 (2015-12-18 15:33:52 CST) multi-call binary.Usage: tftp [OPTIONS] HOST [PORT]Transfer a file from/to tftp server -l FI...
阅读全文
摘要:卸载了包 :opkg remove kmod-ath9k - 3.10.49+2014-05-22-1重新进行安装时出现如下错误:root@hbg:/tmp# opkg install /tmp/kmod-cfg80211_3.10.49+2014-05-22-1_ar71xx.ipk Instal...
阅读全文
摘要:修改了snmp里面的包Makefile,出现了如下问题:Makefile:130: *** missing separator (did you mean TAB instead of 8 spaces?). Stop.源代码如下:tunnel \ucd-snmp/disk \ucd-snmp/dl...
阅读全文
摘要:位结构 位结构是一种特殊的结构, 在需按位访问一个字节或字的多个位时, 位结构比按位运算符更加方便。 位结构定义的一般形式为: struct位结构名{ 数据类型 变量名: 整型常数; 数据类型 变量名: 整型常数; } 位结构变量; 其中: 数据类型必须是int(unsigned或signed)。 ...
阅读全文