Linux ÎÞÏßÍøÂç¼¼Êõ: WLAN
µ±½ñ£¬²»¿¼ÂÇ Linux ºÍÎÞÏßÍøÂç¼¼ÊõµÄ»°£¬¾ÍÎÞ·¨Ì¸µ½¼ÆËã»úºÍÍøÂç¡£ÔÚÕâƪÎÄÕÂÖУ¬Sreekrishnan Venkateswaran ÓÃ
Linux ¹Ûµã²ûÊÍÁËͨ¹ý WLAN¡¢Bluetooth¡¢GPRS¡¢GSM ÒÔ¼° IrDA
ʵÏÖÎÞÏßÁªÍø¡£ËûʹÓø÷ÖÖ²»Í¬µÄÎÞÏßÉ豸ºÍÏàÓ¦µÄÄں˲㣬ÒÔ¼°Óû§¿Õ¼ä¹¤¾ßÀ´Ê¾·¶ËüÃÇÔÚ Linux ÏÂÈçºÎ¹¤×÷¡£
ÎÞÏß¼¼Êõ£¬ÀýÈç
WLAN (Wireless Local Area Network)¡¢Bluetooth¡¢GPRS (General Packet Radio
Service)¡¢GSM (Global System for Mobile communications) ÒÔ¼° IrDa
(Infrared Data)£¬ÔÚ²»Í¬µÄ»·¾³ÏÂÌṩ·þÎñ¡£ËäÈ» WLAN Ö§³Ö±È Bluetooth
¸ü¸ßµÄËٶȺ͸ü³¤µÄ´«²¥¾àÀ룬µ«ÊÇËüÒ²ÐèÒª¸ü¶àµÄ·ÑÓò¢ÇҺĵçÁ¿¸ü´ó¡£GPRS ËäÈ»±È Bluetooth ºÍ WLAN
Âý£¬µ«ÊÇ¿ÉÓÃÓÚÒƶ¯¼¼Êõ¡£¾¡¹ÜËüÃÇ´æÔÚ²îÒ죬»òÕßÊÇÆäËûÔÒò£¬µ«ÊǾßÓжàÖÖÎÞÏß¹¦ÄܵÄÉ豸¿ÉÒÔ×ÛºÏÀûÓÃËüÃÇ¡£ÀýÈ磬¸ù¾Ý GPS
Ä£¿éµÄ¶¨Î»ÊäÈ룬É豸¿ÉÒÔ͸Ã÷µØ½«ÍøÂçÁ¬½Ó´Ó·É쵀 GPRS Çл»µ½Íø°ÉÖиü±ãÒ赀 WLAN¡£Òƶ¯µç»°¿ÉÒÔͨ¹ý Bluetooth
ÓëÐÄÂɼàÊÓÆ÷ͨÐÅ£¬µ±²¡ÈËÐÄÂɳ¬³öij¸ö¼«ÏÞʱ£¬¾Í¿ÉÒÔͨ¹ý GSM ÏòÒ½Éú·¢Ë;¯±¨¡£
Ä¿Ç°£¬ÎÞÏß¼¼ÊõÒѾÒÔ
PCMCIA¡¢Compact Flash (CF) ¿¨µÄÐÎʽ¹ã·ºÓ¦Ó㬻òÕßÓÃÓÚ USB É豸¡£´ó¶àÊý¼ÆËã»úϵͳ£¬°üÀ¨Ç¶ÈëʽÉ豸£¬¶¼ÓÐ
PCMCIA¡¢CF »òÕß USB
½Ó¿Ú£¬¼´Ê¹²»º¬¶ÔÎÞÏß¼¼ÊõµÄÄÚÖÃÖ§³Ö£¬Ò²Äܹ»Á¢¿ÌʹÓÃÕâЩ¼¼Êõ¡£ÕâƪÎÄÕ·ÖÎöÁËÎÞÏßÉ豸µÄһЩʾÀý£¬²¢ÇÒÑо¿ÁËÉ豸Çý¶¯³ÌÐòµÄ Linux
ʵÏÖ¡¢×ÜÏß¼¼ÊõÒÔ¼°¸÷ÖÖÐÒé¡£
Ê×ÏÈ£¬Í¨¹ý¸ú×Ù WLAN Ñù¿¨µÄ´úÂëÁ÷£¬Äú½«Á˽⵽ WLAN É豸ÊÇÈçºÎÔÚ Linux
Ϲ¤×÷µÄ£¬È»ºó»¹¿ÉÒÔ¿´µ½¼¸¸ö Bluetooth É豸ÈçºÎÓë Linux Bluetooth Õ»ºÍÆäËûÄں˲ãÁ¬½Ó¡£½ÓÏÂÀ´£¬Äú½«Á˽⵽ÈçºÎʹ
GPRS ºÍ GSM É豸ÔÚ Linux Ϲ¤×÷¡£ÎÄÕÂ×îºó·ÖÎöÁË Linux É쵀 IrDa Ö§³Ö²¢¼òÒª½éÉÜÁËÓйØÎÞÏßÍøÂçÉ豸µÄÐÔÄÜÎÊÌâ¡£
×¢Ò⣺±¾ÎÄÉæ¼°µ½µÄÄÚºËÊý¾Ý½á¹¹ºÍÎļþÃûÊǵ±Ç° Linux °æ±¾ÖÐËùʹÓõġ£ÎļþÃûÏà¶ÔÓÚ Linux ÄÚºËÔ´³ÌÐòÊ÷µÄ¸ù¡£
Linux 802.11 WLAN
WLAN
ͨÐÅϵͳ×÷ΪÓÐÏß LAN ÒÔÍâµÄÁíÒ»ÖÖÑ¡ÔñÒ»°ãÓÃÔÚͬһ×ù½¨ÖþÄÚ¡£WLAN ʹÓà ISM
(Industrial¡¢Scientific¡¢Medical) ÎÞÏßµç¹ã²¥Æµ¶ÎͨÐÅ¡£WLAN µÄ 802.11a ±ê׼ʹÓà 5 GHz
Ƶ¶Î£¬Ö§³ÖµÄ×î´óËÙ¶ÈΪ 54 Mbps£¬¶ø 802.11b ºÍ 802.11g ±ê׼ʹÓà 2.4 GHz Ƶ¶Î£¬·Ö±ðÖ§³Ö×î´ó 11 Mbps
ºÍ 54 Mbps µÄËٶȡ£
WLAN ÀàËÆÓÚÓÐÏßÒÔÌ«Íø£¬ËüÃǶ¼ÊÇ´ÓͬһµØÖ·³Ø·ÖÅä MAC (Media Access
Control) µØÖ·£¬²¢ÇÒ¶
Ïà¹ØÎĵµ£º
ÔÚÒ»¸ö³ÌÐò±ÀÀ£Ê±£¬Ä¬ÈÏÇé¿öÏÂÊDz»²úÉúcoreÎļþ¡£
ÏÂÃæµÄÃüÁî¿ÉÒÔ¼ì²éÉú³ÉcoreÎļþµÄÑ¡ÏîÊÇ·ñ´ò¿ª:
$ulimit -a¸ÃÃüÁÏÔʾËùÓеÄÓû§¶¨ÖÆ£¬ÆäÖÐÑ¡Ïî-a´ú±í“all”¡£
$ulimit -c unlimitedÀ´ÈÃÌض¨µÄÓû§¿ÉÒÔ²úÉúcoreÎļþ
coreÎļþ½ö½öÊÇÒ»¸öÄÚ´æÓ³Ïó(ͬʱ¼ÓÉϵ÷ÊÔÐÅÏ¢)£¬Ö÷ÒªÊÇÓÃÀ´µ÷ÊԵġ£Èç¹ûÄú¸ù±¾¾Í²»Ïë ......
¡¡¡¡ls
¡¡¡¡ls ÃüÁî¿ÉÒÔ˵ÊÇlinuxÏÂ×î³£ÓõÄÃüÁîÖ®Ò»¡£ËüÓÐÖÚ¶àµÄÑ¡ÏÆäÖÐÓкܶàÊǺÜÓÐÓõģ¬ÄãÊÇ·ñÊìϤÄØ£¿ÏÂÃæÁгöÁË ls ÃüÁîµÄ¾ø´ó¶àÊýÑ¡Ïî¡£
¡¡¡¡-a ÁгöĿ¼ÏµÄËùÓÐÎļþ£¬°üÀ¨ÒÔ . ¿ªÍ·µÄÒþº¬Îļþ¡£
¡¡¡¡-b °ÑÎļþÃûÖв»¿ÉÊä³öµÄ×Ö·ûÓ÷´Ð±¸Ü¼Ó×Ö·û±àºÅ(¾ÍÏóÔÚCÓïÑÔÀïÒ»Ñù)µÄÐÎʽÁгö¡£
¡¡¡¡-c Êä³öÎļþµÄ i ½Ú ......
#ifndef __KERNEL__
#define __KERNEL__
#endif
#ifndef MODULE
#define MODULE
#endif
#include<linux/config.h>
#include<linux/module.h>
#include<linux/version.h>
#include<linux/init.h>
#include<linux/kernel.h>
#include<linux/errno.h>
#include<linux/sche ......
from:http://blog.chinaunix.net/u2/62281/showart_1096746.html
sock_rawÔʼÌ×½Ó×Ö±à³Ì¿ÉÒÔ½ÓÊÕµ½±¾»úÍø¿¨ÉϵÄÊý¾ÝÖ¡»òÕßÊý¾Ý°ü,¶ÔÓë¼àÌýÍøÂçµÄÁ÷Á¿ºÍ·ÖÎöÊǺÜÓÐ×÷ÓõÄ.Ò»¹²¿ÉÒÔÓÐ3ÖÖ·½Ê½´´½¨ÕâÖÖsocket
1.socket(AF_INET, SOCK_RAW, IPPROTO_TCP|IPPROTO_UDP|IPPROTO_ICMP)·¢ËͽÓÊÕipÊý¾Ý°ü
2.socket(PF_PACK ......
-------------------------------------------------------------------------------------------------------
By:yuyongbao
QQ:673360056
£±¡¢ linuxϹ²ÏíÎļþ¡£°²×°smbserver¡£È»ºóÔÚ¡¶ÏµÍ³ÉèÖá·Öдò¿ª¡¶·þÎñÆ÷ÉèÖ᷵ġ¶smb¡¡server¡··þÎñÆ÷£¬ÊäÈëÏà¹Ø·¾¶¼´¿É¡£È»ºóÔÚwindowÖУ¬Ê¹ÓÃÍøÂçÁÚ¾Ó²éÕÒlinux¡££¨×¢ ......