亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? wetctl.c

?? VT665 無線網(wǎng)卡驅(qū)動(dòng) LINUX平臺(tái)下
?? C
?? 第 1 頁 / 共 3 頁
字號(hào):
/* * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc. * All rights reserved. * * This software is copyrighted by and is the sole property of * VIA Networking Technologies, Inc. This software may only be used * in accordance with the corresponding license agreement. Any unauthorized * use, duplication, transmission, distribution, or disclosure of this * software is expressly forbidden. * * This software is provided by VIA Networking Technologies, Inc. "as is" * and any express or implied warranties, including, but not limited to, the * implied warranties of merchantability and fitness for a particular purpose * are disclaimed. In no event shall VIA Networking Technologies, Inc. * be liable for any direct, indirect, incidental, special, exemplary, or * consequential damages.    * * * File: wetctl.c * * Purpose:  * *      Command mode utility for Solomon 802.11a/b/g wireless card * * Author: lyndon chen * * Date: Jan 2, 2003 * * Functions: *      s_cmdBSSJoin- join an existing BSS set via ioctl command *      s_cmdScan- scan all channels via ioctl command *      s_cmdSetWEP- set wep key via ioctl command   *      s_cmdGetLink- get link status via ioctl command *      s_cmdGetList- get scan list via ioctl command *      s_cmdGetMIB- get DOT11 MIB via ioctl command *      s_cmdGetSTAT- get Statistics via ioctl command *      vShowList- print scan list *      vByteToWEP232- byte string to Hex key *      vAddrToStr- print MAC address *      vCmdUsage- command help list * Revision History: * */  #include <stdlib.h>#include <stdio.h>#include <string.h>#include <sys/socket.h>#include <sys/types.h>#include <sys/ioctl.h>#include "wetctl.h"#include "ttype.h"#include "iocmd.h"/*---------------------  Static Definitions -------------------------*//*---------------------  Static Classes  ----------------------------*//*---------------------  Static Variables  --------------------------*/BYTE AppName[20];/*---------------------  Static Functions  --------------------------*/static int s_cmdBSSJoin(int skfd, int argc, char **argv);static int s_cmdAPStart(int skfd, int argc, char **argv);static int s_cmdScan(int skfd, int argc, char **argv);static int s_cmdSetWEP(int skfd, int argc, char **argv);static int s_cmdGetLink(int skfd, int argc, char **argv);static int s_cmdGetList(int skfd, int argc, char **argv);static int s_cmdGetMIB(int skfd, int argc, char **argv);//static int s_cmdGetSTAT(int skfd, int argc, char **argv);static int s_cmdStopMAC(int skfd, int argc, char **argv);static int s_cmdStartMAC(int skfd, int argc, char **argv);static int s_cmdGetNodeList(int skfd, int argc, char **argv);static VOID vShowList(PSBSSIDList pList);static VOID vShowNodeList(PSNodeList pList);static VOID vByteToWEP232(PBYTE abyKey, char *abyStr);static VOID vAddrToStr(PBYTE abyAddr, PBYTE abyStr);static VOID vWEPToStr(PBYTE abyWEP, PBYTE abyStr);static VOID vCmdUsage(void);/*---------------------  Export Variables  --------------------------*//*---------------------  Export Functions  --------------------------*//*+ * * Description: *    Entry of utility  * * Parameters: *  In: *      argc, argv *  Out: *      none * * Return Value: int *-*/int main(int argc, char *argv[]) {    int skfd;	int result = 0;	SCmdRequest	sReq;		strcpy((char*)AppName, APPNAME);		if (argc <= 2) {	    vCmdUsage();	    result = 1;	    return result;	};	            	// get a socket	skfd = socket(AF_INET, SOCK_STREAM, 0);		if (skfd < 0) {	    printf("%s: can't find the socket driver!\n", AppName);	    result = 1;	    return result;	};   	    	strcpy((char *)sReq.name, argv[1]);	sReq.wResult = 0;	sReq.data = NULL;	sReq.wCmdCode = 0;	result = ioctl(skfd, IOCTL_CMD_TEST, &sReq);		if ((result < 0) || (sReq.wResult != MAGIC_CODE)) {		printf("%s: failed in testing interface, '%s'may be not running.",				AppName, argv[1]);        					    result = 1;	    return result;					}	if (strcasecmp(argv[2], PRIVACY) == 0) {	    result = s_cmdSetWEP(skfd, argc, argv);	}	else if (strcasecmp(argv[2], SCAN) == 0) {	    result = s_cmdScan(skfd, argc, argv);	}	else if (strcasecmp(argv[2], JOIN) == 0) {	    result = s_cmdBSSJoin(skfd, argc, argv);	}	else if ( strcasecmp(argv[2], GETLIST) == 0) {	    result = s_cmdGetList(skfd, argc, argv);	}	else if ( strcasecmp(argv[2], GETLINK) == 0) {	    result = s_cmdGetLink(skfd, argc, argv);	}	else if ( strcasecmp(argv[2], GETMIB) == 0) {	    result = s_cmdGetMIB(skfd, argc, argv);	}/*		else if ( strcasecmp(argv[2], GETSTAT) == 0) {	    result = s_cmdGetSTAT(skfd, argc, argv);	}	*/		else if (strcasecmp(argv[2], STOP) == 0) {	    result = s_cmdStopMAC(skfd, argc, argv);	}	else if (strcasecmp(argv[2], START) == 0) {	    result = s_cmdStartMAC(skfd, argc, argv);	}	else if (strcasecmp(argv[2], APSTART) == 0) {	    result = s_cmdAPStart(skfd, argc, argv);	}	else if (strcasecmp(argv[2], GETNODE) == 0) {	    result = s_cmdGetNodeList(skfd, argc, argv);	}		else {		printf("%s: %s is an invalid command\n",AppName, argv[2]);		vCmdUsage();		result = 1;	}		if (result < 0) {	    printf("%s: failed in ioctl sRequest! result= %d\n",				AppName, result);    }	return result;}/*+ * * Description: *     Reformat input string to wep key    * * Parameters: *  In: *      array of string *  Out: *      array of hex char * * Return Value: none *-*/VOID vByteToWEP232(PBYTE abyKey, char *abyStr) {	PBYTE	pChr;	int		ii;	UINT	val;    // i = 29 byte/232 bit	for (ii = 0; ii < 29; ii++) {		pChr = (PBYTE)strchr(abyStr, ':');		if (pChr == NULL) {            break;		}		else {			*pChr = '\0';			sscanf((char *)abyStr, "%x", &val);			abyKey[ii] = (BYTE)val;			abyStr = (char *)(pChr+1);		}	}    sscanf((char *)abyStr, "%x", &val);    abyKey[ii] = (BYTE)val;}/*+ * * Description: *     Print MAC address * * Parameters: *  In: *      MAC address *  Out: *      none * * Return Value: none *-*/VOID vAddrToStr(PBYTE abyAddr, PBYTE abyStr){	sprintf((char *)abyStr, "%02x:%02x:%02x:%02x:%02x:%02x", 		abyAddr[0], abyAddr[1], abyAddr[2], abyAddr[3], abyAddr[4], abyAddr[5]);}/*+ * * Description: *     Print WEP key * * Parameters: *  In: *      array of hex wep key *  Out: *      array of wep key string * * Return Value: none *-*/VOID vWEPToStr(PBYTE abyWEP, PBYTE abyStr){	sprintf((char *)abyStr, "%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x", 		abyWEP[0], abyWEP[1], abyWEP[2], abyWEP[3], abyWEP[4], abyWEP[5],		abyWEP[6], abyWEP[7], abyWEP[8], abyWEP[9], abyWEP[10], abyWEP[11],		abyWEP[12]				);}/*+ * * Description: * *  Called when the user set the 'scan' command at the *	command line to scan all available channels.  *      * * Parameters: *  In: *      skfd, argc, argv *  Out: *      none * * Return Value: '0' if success *-*/int s_cmdScan(int skfd, int argc, char **argv) {	int			result = 0;	SCmdRequest sReq;	SCmdScan	cmd;		strcpy((char *)sReq.name, argv[1]);	cmd.ssid[0] = SSID_ID;	cmd.ssid[1] = 0;	cmd.ssid[2] = 0;	if (argc > 3) {		if ((cmd.ssid[1] = strlen(argv[3])) <= 32 ) {		    if (strcmp(argv[3], "any") != 0 ) {			    memcpy( &(cmd.ssid[2]), argv[3], cmd.ssid[1]);			}    		}	    	}	sReq.wResult = 0;	sReq.data = &cmd;    sReq.wCmdCode = WLAN_CMD_BSS_SCAN;	result = ioctl(skfd, IOCTL_CMD_SET, &sReq);	if (sReq.wResult) {		printf( "%s: fail in scan command !\n",AppName);		result = 1;	}    return result;}/*+ * * Description: * *  Called when the user set the 'stop' command at the *	command line to stop the MAC  * * Parameters: *  In: *      skfd, argc, argv *  Out: *      none * * Return Value: '0' if success *-*/int s_cmdStopMAC( int skfd, int argc, char **argv ) {	int			result = 0;	SCmdRequest	sReq;		strcpy((char *)sReq.name, argv[1]);	sReq.wResult = 0;	sReq.data = NULL;    sReq.wCmdCode = WLAN_CMD_STOP_MAC;	result = ioctl(skfd, IOCTL_CMD_SET, &sReq);	if ( sReq.wResult ) {		printf( "%s: fail in stop command !\n",AppName);		result = 1;	}    return result;}/*+ * * Description: * *	Called when the user set the 'start' command at the *	command line to enable the MAC  * * Parameters: *  In: *      skfd, argc, argv *  Out: *      none * * Return Value: '0' if success *-*/int s_cmdStartMAC( int skfd, int argc, char **argv ) {	int			result = 0;	SCmdRequest	sReq;		strcpy((char *)sReq.name, argv[1]);	sReq.wResult = 0;	sReq.data = NULL;    sReq.wCmdCode = WLAN_CMD_START_MAC;	result = ioctl(skfd, IOCTL_CMD_SET, &sReq);	if ( sReq.wResult ) {		printf( "%s: fail in start command !\n",AppName);		result = 1;	}    return result;}/*+ * * Description: * *	Called when the user set 'join' command at the *	command line to join an existing BSS set * * Parameters: *  In: *      skfd, argc, argv *  Out: *      none * * Return Value: '0' if success *-*/int s_cmdBSSJoin(int skfd, int argc, char **argv) {	int					result = 0;	SCmdRequest	        sReq;	SCmdBSSJoin		    cmd;	if ( argc < 5 ) {		printf("%s: not enough arguments for the 'join' command;\n ", AppName);		vCmdUsage();		result = 1;	}	else {		strcpy((char *)sReq.name, argv[1]);		sReq.wResult = 0;		sReq.data = &cmd;		sReq.wCmdCode = WLAN_CMD_BSS_JOIN;		if ( (strcmp(argv[3], "adhoc") == 0) ||		     (strcmp(argv[3], "ad-hoc") == 0) ) {			cmd.wBSSType = ADHOC;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩电影一区二区三区| 久久综合丝袜日本网| 亚洲精选在线视频| 欧洲视频一区二区| 日韩和欧美一区二区| 欧美电影免费提供在线观看| 国内欧美视频一区二区| 中文字幕av一区二区三区| 高清久久久久久| 亚洲综合另类小说| 欧美一区二区三区性视频| 久久99国产精品免费网站| 日韩精品电影在线| 日韩免费性生活视频播放| 国产成人无遮挡在线视频| 亚洲三级电影网站| 欧美日韩电影在线播放| 国产一区二区三区免费| 亚洲免费大片在线观看| 69久久夜色精品国产69蝌蚪网| 久久国产生活片100| 国产精品久久99| 3751色影院一区二区三区| 国产精品一区二区免费不卡| 亚洲人妖av一区二区| 3d动漫精品啪啪| 成a人片国产精品| 婷婷亚洲久悠悠色悠在线播放| 久久免费精品国产久精品久久久久| 波多野结衣亚洲| 日韩影视精彩在线| 日韩一区中文字幕| 欧美成人性战久久| 色老头久久综合| 国产精华液一区二区三区| 亚洲在线免费播放| 欧美激情在线看| 欧美一级一级性生活免费录像| 成人动漫一区二区在线| 日本v片在线高清不卡在线观看| 国产精品久久久久毛片软件| 欧美一区二区网站| 91国在线观看| 成人综合婷婷国产精品久久| 免费人成黄页网站在线一区二区| 综合欧美一区二区三区| www久久精品| 欧美一区二区免费| 欧美在线制服丝袜| 波多野结衣一区二区三区 | 欧美日韩国产精品成人| 国产999精品久久| 日本不卡不码高清免费观看| 亚洲欧洲无码一区二区三区| 日韩欧美www| 欧美日本免费一区二区三区| 99re成人精品视频| 国产精品综合网| 美女精品自拍一二三四| 午夜精品在线看| 一二三区精品视频| 激情综合色播五月| 日韩精品91亚洲二区在线观看| 国产精品久久午夜夜伦鲁鲁| 精品少妇一区二区三区在线播放| 在线播放国产精品二区一二区四区| 99久久精品国产毛片| 国产精品亚洲午夜一区二区三区| 蜜桃av噜噜一区| 日本一道高清亚洲日美韩| 亚洲一区二区三区中文字幕在线 | 国产精品天天看| 国产女人18毛片水真多成人如厕| 欧美成人精品福利| 欧美www视频| 日韩美女在线视频| 日韩三级免费观看| 欧美xxxxxxxxx| 久久免费国产精品| 国产亚洲综合av| 欧美国产一区视频在线观看| 久久久亚洲精品一区二区三区 | 激情五月婷婷综合网| 精品一二三四在线| 国产一区二区免费视频| 国产精品综合一区二区三区| 国产美女精品一区二区三区| 国产在线播精品第三| 国产成人精品三级| av在线不卡网| 色综合久久久久综合体桃花网| 在线亚洲人成电影网站色www| 欧美综合色免费| 欧美一区永久视频免费观看| 欧美一级片免费看| 欧美成人a在线| 国产欧美va欧美不卡在线| 亚洲色图色小说| 亚洲gay无套男同| 奇米影视一区二区三区小说| 精品一区二区av| 99在线热播精品免费| 欧美日韩亚洲丝袜制服| 欧美r级在线观看| 亚洲欧洲成人自拍| 亚洲成人免费av| 国内精品自线一区二区三区视频| 国产夫妻精品视频| 欧美午夜电影网| 精品人伦一区二区色婷婷| 国产精品乱码久久久久久| 亚洲va韩国va欧美va| 国产专区欧美精品| 色88888久久久久久影院按摩 | 日韩三级电影网址| 久久男人中文字幕资源站| 亚洲欧美日韩久久| 久久电影网电视剧免费观看| www.欧美日韩| 欧美成人一区二区三区| 亚洲色图20p| 国产在线看一区| 欧美在线观看禁18| 国产欧美一区二区精品性| 亚洲高清在线视频| 风间由美一区二区三区在线观看| 精品视频全国免费看| 久久精品视频在线看| 亚洲图片自拍偷拍| 成人福利视频网站| 欧美不卡在线视频| 亚洲va中文字幕| 99这里只有久久精品视频| 日韩欧美视频在线| 亚洲成人福利片| 不卡视频在线看| 久久亚洲一级片| 日本强好片久久久久久aaa| 91污在线观看| 欧美国产欧美亚州国产日韩mv天天看完整| 一个色在线综合| 97aⅴ精品视频一二三区| 26uuu国产一区二区三区| 婷婷综合久久一区二区三区| 91蝌蚪porny九色| 国产精品传媒在线| 国产成人一区二区精品非洲| 日韩亚洲电影在线| 五月天久久比比资源色| 一本久久综合亚洲鲁鲁五月天 | 久久99久久精品欧美| 69堂亚洲精品首页| 性做久久久久久久久| 色婷婷av一区二区三区软件| 中文文精品字幕一区二区| 国产一区在线视频| 精品久久久久香蕉网| 美女一区二区在线观看| 欧美日韩高清在线播放| 亚洲一区二区三区四区在线观看 | 欧美一级片免费看| 亚洲第一福利视频在线| 色婷婷综合视频在线观看| 亚洲天堂网中文字| 99精品视频在线播放观看| 国产精品国产精品国产专区不片 | aa级大片欧美| 国产精品的网站| 99久久99久久综合| 中文字幕一区二区三区在线观看| 福利电影一区二区| 国产精品国产三级国产普通话三级| 丁香亚洲综合激情啪啪综合| 欧美高清在线视频| 99久久精品免费精品国产| 一区在线观看视频| 在线观看不卡一区| 五月天视频一区| 精品国产免费视频| 国产一区二区h| 国产精品国产三级国产aⅴ入口| 99免费精品视频| 亚洲网友自拍偷拍| 日韩欧美黄色影院| 国产91在线观看| 亚洲精品欧美专区| 666欧美在线视频| 激情综合网天天干| 自拍偷拍国产精品| 欧美人妇做爰xxxⅹ性高电影| 日本不卡视频在线观看| 久久亚洲综合色| 色网站国产精品| 老鸭窝一区二区久久精品| 国产精品美女久久久久久久 | 日本一区二区三级电影在线观看| 成人avav影音| 日韩黄色小视频| 欧美国产成人精品| 欧美精品一级二级三级|